aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po
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
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')
-rw-r--r--client/e2e/src/po/my-account.ts2
-rw-r--r--client/e2e/src/po/video-upload.po.ts2
-rw-r--r--client/e2e/src/po/video-watch.po.ts6
3 files changed, 5 insertions, 5 deletions
diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.ts
index 61d42214d..9866953e9 100644
--- a/client/e2e/src/po/my-account.ts
+++ b/client/e2e/src/po/my-account.ts
@@ -61,7 +61,7 @@ export class MyAccountPage {
61 61
62 async goOnAssociatedPlaylistEmbed () { 62 async goOnAssociatedPlaylistEmbed () {
63 let url = await browser.getCurrentUrl() 63 let url = await browser.getCurrentUrl()
64 url = url.replace('/videos/watch/playlist/', '/video-playlists/embed/') 64 url = url.replace('/w/p/', '/video-playlists/embed/')
65 url = url.replace(':3333', ':9001') 65 url = url.replace(':3333', ':9001')
66 66
67 return browser.get(url) 67 return browser.get(url)
diff --git a/client/e2e/src/po/video-upload.po.ts b/client/e2e/src/po/video-upload.po.ts
index ad2acee7f..a248912ed 100644
--- a/client/e2e/src/po/video-upload.po.ts
+++ b/client/e2e/src/po/video-upload.po.ts
@@ -41,7 +41,7 @@ export class VideoUploadPage {
41 41
42 await this.getSecondStepSubmitButton().click() 42 await this.getSecondStepSubmitButton().click()
43 43
44 return browser.wait(browser.ExpectedConditions.urlContains('/watch/')) 44 return browser.wait(browser.ExpectedConditions.urlContains('/w/'))
45 } 45 }
46 46
47 private getSecondStepSubmitButton () { 47 private getSecondStepSubmitButton () {
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