aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/e2e/src/po/anonymous-settings.po.ts
blob: 180d371fa0aa1b80048ca8270e95d767bf45b6af (plain) (tree)




















                                                           
import { getCheckbox } from '../utils'

export class AnonymousSettingsPage {

  async openSettings () {
    const link = await $$('.menu-link').filter(async i => {
      return await i.getText() === 'My settings'
    }).then(links => links[0])

    await link.click()

    await $('my-user-video-settings').waitForDisplayed()
  }

  async clickOnP2PCheckbox () {
    const p2p = getCheckbox('p2pEnabled')
    await p2p.waitForClickable()

    await p2p.click()
  }
}