diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-15 15:58:10 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-16 10:08:55 +0100 |
commit | a9bfa85d2cdf13670aaced740da5b493fbeddfce (patch) | |
tree | 3781c9218d4cc7786b6589365c0efbed2151703d /client/e2e/src/po/anonymous-settings.po.ts | |
parent | c77fdc605b3ccc1ab6890f889d8200fbe9372949 (diff) | |
download | PeerTube-a9bfa85d2cdf13670aaced740da5b493fbeddfce.tar.gz PeerTube-a9bfa85d2cdf13670aaced740da5b493fbeddfce.tar.zst PeerTube-a9bfa85d2cdf13670aaced740da5b493fbeddfce.zip |
Add ability for admins to set default p2p policy
Diffstat (limited to 'client/e2e/src/po/anonymous-settings.po.ts')
-rw-r--r-- | client/e2e/src/po/anonymous-settings.po.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/client/e2e/src/po/anonymous-settings.po.ts b/client/e2e/src/po/anonymous-settings.po.ts new file mode 100644 index 000000000..180d371fa --- /dev/null +++ b/client/e2e/src/po/anonymous-settings.po.ts | |||
@@ -0,0 +1,21 @@ | |||
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 | } | ||