aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/video-watch.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-28 11:36:33 +0200
committerChocobozzz <me@florianbigard.com>2021-05-28 11:38:08 +0200
commita1eda903a497857017495f37a1fd3593ba7ab23c (patch)
treea109f34af8b18c087caf6d5a7264267550f0416d /client/e2e/src/po/video-watch.po.ts
parent012580d98f489e599d44a9a2a0bdc892b9455a90 (diff)
downloadPeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.tar.gz
PeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.tar.zst
PeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.zip
Support '/w/' and '/w/p/' for watch page
And use them as default in client
Diffstat (limited to 'client/e2e/src/po/video-watch.po.ts')
-rw-r--r--client/e2e/src/po/video-watch.po.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts
index b41fe0882..6d91d241e 100644
--- a/client/e2e/src/po/video-watch.po.ts
+++ b/client/e2e/src/po/video-watch.po.ts
@@ -43,7 +43,7 @@ export class VideoWatchPage {
43 43
44 async goOnAssociatedEmbed () { 44 async goOnAssociatedEmbed () {
45 let url = await browser.getCurrentUrl() 45 let url = await browser.getCurrentUrl()
46 url = url.replace('/watch/', '/embed/') 46 url = url.replace('/w/', '/embed/')
47 url = url.replace(':3333', ':9001') 47 url = url.replace(':3333', ':9001')
48 48
49 return browser.get(url) 49 return browser.get(url)
@@ -65,7 +65,7 @@ export class VideoWatchPage {
65 await browser.wait(browser.ExpectedConditions.elementToBeClickable(video)) 65 await browser.wait(browser.ExpectedConditions.elementToBeClickable(video))
66 await video.click() 66 await video.click()
67 67
68 await browser.wait(browser.ExpectedConditions.urlContains('/watch/')) 68 await browser.wait(browser.ExpectedConditions.urlContains('/w/'))
69 } 69 }
70 70
71 async clickOnFirstVideo () { 71 async clickOnFirstVideo () {
@@ -78,7 +78,7 @@ export class VideoWatchPage {
78 const textToReturn = videoName.getText() 78 const textToReturn = videoName.getText()
79 await video.click() 79 await video.click()
80 80
81 await browser.wait(browser.ExpectedConditions.urlContains('/watch/')) 81 await browser.wait(browser.ExpectedConditions.urlContains('/w/'))
82 return textToReturn 82 return textToReturn
83 } 83 }
84 84