diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-30 09:11:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-30 09:11:12 +0100 |
commit | 6b88559babc1e0490119a6b52411b10910d9da9d (patch) | |
tree | 5a82afdc92899e921f8631f2e6b07b889b794278 /client/e2e/src/po/my-account.ts | |
parent | 4a7f90248b546803cab07188521ac97e175b31e6 (diff) | |
download | PeerTube-6b88559babc1e0490119a6b52411b10910d9da9d.tar.gz PeerTube-6b88559babc1e0490119a6b52411b10910d9da9d.tar.zst PeerTube-6b88559babc1e0490119a6b52411b10910d9da9d.zip |
Fix local e2e tests
Diffstat (limited to 'client/e2e/src/po/my-account.ts')
-rw-r--r-- | client/e2e/src/po/my-account.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.ts index a39e5cc58..0255cee16 100644 --- a/client/e2e/src/po/my-account.ts +++ b/client/e2e/src/po/my-account.ts | |||
@@ -16,8 +16,15 @@ export class MyAccountPage { | |||
16 | 16 | ||
17 | // My account Videos | 17 | // My account Videos |
18 | 18 | ||
19 | removeVideo (name: string) { | 19 | async removeVideo (name: string) { |
20 | return this.getVideoElement(name).element(by.css('my-delete-button')).click() | 20 | const container = this.getVideoElement(name) |
21 | |||
22 | await container.element(by.css('.dropdown-toggle')).click() | ||
23 | |||
24 | const dropdownMenu = container.element(by.css('.dropdown-menu .dropdown-item:nth-child(2)')) | ||
25 | await browser.wait(browser.ExpectedConditions.presenceOf(dropdownMenu)) | ||
26 | |||
27 | return dropdownMenu.click() | ||
21 | } | 28 | } |
22 | 29 | ||
23 | validRemove () { | 30 | validRemove () { |