diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-07 14:01:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-07 14:01:11 +0200 |
commit | d5cefc1fa5b961b9c6f0efb60baf876b3f453658 (patch) | |
tree | c4595d75e2840e112f2ae13dac6a309d960dfab9 /client/e2e/src/po/my-account.ts | |
parent | 3efa3f4d3552719ceda0b5f243a8f3dc87b29535 (diff) | |
parent | 7f90579c04383ca883083548f40782352605d778 (diff) | |
download | PeerTube-d5cefc1fa5b961b9c6f0efb60baf876b3f453658.tar.gz PeerTube-d5cefc1fa5b961b9c6f0efb60baf876b3f453658.tar.zst PeerTube-d5cefc1fa5b961b9c6f0efb60baf876b3f453658.zip |
Merge branch 'feature/e2e' into develop
Diffstat (limited to 'client/e2e/src/po/my-account.ts')
-rw-r--r-- | client/e2e/src/po/my-account.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.ts index 49db789fb..6d0d8d61e 100644 --- a/client/e2e/src/po/my-account.ts +++ b/client/e2e/src/po/my-account.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { by, element } from 'protractor' | 1 | import { by, element, browser } from 'protractor' |
2 | 2 | ||
3 | export class MyAccountPage { | 3 | export class MyAccountPage { |
4 | 4 | ||
@@ -52,6 +52,14 @@ export class MyAccountPage { | |||
52 | return element(by.css('.playlist-info .miniature-thumbnail')).click() | 52 | return element(by.css('.playlist-info .miniature-thumbnail')).click() |
53 | } | 53 | } |
54 | 54 | ||
55 | async goOnAssociatedPlaylistEmbed () { | ||
56 | let url = await browser.getCurrentUrl() | ||
57 | url = url.replace('/videos/watch/playlist/', '/video-playlists/embed/') | ||
58 | url = url.replace(':3333', ':9001') | ||
59 | |||
60 | return browser.get(url) | ||
61 | } | ||
62 | |||
55 | // My account Videos | 63 | // My account Videos |
56 | 64 | ||
57 | private getVideoElement (name: string) { | 65 | private getVideoElement (name: string) { |