]>
Commit | Line | Data |
---|---|---|
1 | import { getCheckbox } from '../utils' | |
2 | ||
3 | export class AnonymousSettingsPage { | |
4 | ||
5 | async openSettings () { | |
6 | const link = await $$('.menu-link').filter(async i => { | |
7 | return await i.getText() === 'My settings' | |
8 | }).then(links => links[0]) | |
9 | ||
10 | await link.click() | |
11 | ||
12 | await $('my-user-video-settings').waitForDisplayed() | |
13 | } | |
14 | ||
15 | async clickOnP2PCheckbox () { | |
16 | const p2p = getCheckbox('p2pEnabled') | |
17 | await p2p.waitForClickable() | |
18 | ||
19 | await p2p.click() | |
20 | } | |
21 | } |