aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/src')
-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
-rw-r--r--client/e2e/src/videos.e2e-spec.ts2
4 files changed, 6 insertions, 6 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
diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.ts
index bcc810297..fc816d1bf 100644
--- a/client/e2e/src/videos.e2e-spec.ts
+++ b/client/e2e/src/videos.e2e-spec.ts
@@ -85,7 +85,7 @@ describe('Videos workflow', () => {
85 let videoNameToExcept = videoName 85 let videoNameToExcept = videoName
86 86
87 if (await isMobileDevice() || await isSafari()) { 87 if (await isMobileDevice() || await isSafari()) {
88 await browser.get('https://peertube2.cpy.re/videos/watch/122d093a-1ede-43bd-bd34-59d2931ffc5e') 88 await browser.get('https://peertube2.cpy.re/w/122d093a-1ede-43bd-bd34-59d2931ffc5e')
89 videoNameToExcept = 'E2E tests' 89 videoNameToExcept = 'E2E tests'
90 } else { 90 } else {
91 await videoWatchPage.clickOnVideo(videoName) 91 await videoWatchPage.clickOnVideo(videoName)