diff options
Diffstat (limited to 'client/e2e/src/videos.e2e-spec.ts')
-rw-r--r-- | client/e2e/src/videos.e2e-spec.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.ts index 27706a506..075add531 100644 --- a/client/e2e/src/videos.e2e-spec.ts +++ b/client/e2e/src/videos.e2e-spec.ts | |||
@@ -4,6 +4,7 @@ import { LoginPage } from './po/login.po' | |||
4 | import { browser } from 'protractor' | 4 | import { browser } from 'protractor' |
5 | import { VideoUpdatePage } from './po/video-update.po' | 5 | import { VideoUpdatePage } from './po/video-update.po' |
6 | import { MyAccountPage } from './po/my-account' | 6 | import { MyAccountPage } from './po/my-account' |
7 | import { AppPage } from './po/app.po' | ||
7 | 8 | ||
8 | async function skipIfUploadNotSupported () { | 9 | async function skipIfUploadNotSupported () { |
9 | if (await isMobileDevice() || await isSafari()) { | 10 | if (await isMobileDevice() || await isSafari()) { |
@@ -30,6 +31,7 @@ describe('Videos workflow', () => { | |||
30 | let videoUpdatePage: VideoUpdatePage | 31 | let videoUpdatePage: VideoUpdatePage |
31 | let myAccountPage: MyAccountPage | 32 | let myAccountPage: MyAccountPage |
32 | let loginPage: LoginPage | 33 | let loginPage: LoginPage |
34 | let appPage: AppPage | ||
33 | 35 | ||
34 | let videoName = new Date().getTime() + ' video' | 36 | let videoName = new Date().getTime() + ' video' |
35 | const video2Name = new Date().getTime() + ' second video' | 37 | const video2Name = new Date().getTime() + ' second video' |
@@ -42,6 +44,7 @@ describe('Videos workflow', () => { | |||
42 | videoUpdatePage = new VideoUpdatePage() | 44 | videoUpdatePage = new VideoUpdatePage() |
43 | myAccountPage = new MyAccountPage() | 45 | myAccountPage = new MyAccountPage() |
44 | loginPage = new LoginPage() | 46 | loginPage = new LoginPage() |
47 | appPage = new AppPage() | ||
45 | 48 | ||
46 | if (await isMobileDevice()) { | 49 | if (await isMobileDevice()) { |
47 | console.log('Mobile device detected.') | 50 | console.log('Mobile device detected.') |
@@ -61,6 +64,12 @@ describe('Videos workflow', () => { | |||
61 | return loginPage.loginAsRootUser() | 64 | return loginPage.loginAsRootUser() |
62 | }) | 65 | }) |
63 | 66 | ||
67 | it('Should close the welcome modal', async () => { | ||
68 | if (await skipIfUploadNotSupported()) return | ||
69 | |||
70 | await appPage.closeWelcomeModal() | ||
71 | }) | ||
72 | |||
64 | it('Should upload a video', async () => { | 73 | it('Should upload a video', async () => { |
65 | if (await skipIfUploadNotSupported()) return | 74 | if (await skipIfUploadNotSupported()) return |
66 | 75 | ||