]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/e2e/src/po/anonymous-settings.po.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / client / e2e / src / po / anonymous-settings.po.ts
CommitLineData
a9bfa85d
C
1import { getCheckbox } from '../utils'
2
3export 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 () {
3c065fe3 16 const p2p = await getCheckbox('p2pEnabled')
a9bfa85d
C
17 await p2p.waitForClickable()
18
19 await p2p.click()
20 }
21}