diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-23 14:23:19 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-23 14:59:44 +0100 |
commit | 44d4ee4fcb7cf8beebac73f85693c09919b91e66 (patch) | |
tree | 24b9867f2e0a5480cda3653ba00702779913fc88 /client/e2e/src/po/app.po.ts | |
parent | 89566f77fd938cf8b0a617d5d2df4ca718242372 (diff) | |
download | PeerTube-44d4ee4fcb7cf8beebac73f85693c09919b91e66.tar.gz PeerTube-44d4ee4fcb7cf8beebac73f85693c09919b91e66.tar.zst PeerTube-44d4ee4fcb7cf8beebac73f85693c09919b91e66.zip |
Fix e2e tests
Diffstat (limited to 'client/e2e/src/po/app.po.ts')
-rw-r--r-- | client/e2e/src/po/app.po.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/client/e2e/src/po/app.po.ts b/client/e2e/src/po/app.po.ts new file mode 100644 index 000000000..a636e825f --- /dev/null +++ b/client/e2e/src/po/app.po.ts | |||
@@ -0,0 +1,21 @@ | |||
1 | import { browser, by, element } from 'protractor' | ||
2 | |||
3 | export class AppPage { | ||
4 | |||
5 | async closeWelcomeModal () { | ||
6 | const firstHandle = await browser.getWindowHandle() | ||
7 | |||
8 | if (await element(by.css('.configure-instance-button')).isPresent() === false) return | ||
9 | |||
10 | await element(by.css('.configure-instance-button')).click() | ||
11 | |||
12 | await browser.switchTo().window(firstHandle) | ||
13 | |||
14 | await browser.refresh() | ||
15 | |||
16 | await element(by.css('.form-group-checkbox')).click() | ||
17 | await element(by.css('.action-button-cancel')).click() | ||
18 | |||
19 | await browser.switchTo().window(firstHandle) | ||
20 | } | ||
21 | } | ||