diff options
Diffstat (limited to 'client/e2e/src/po/video-upload.po.ts')
-rw-r--r-- | client/e2e/src/po/video-upload.po.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/e2e/src/po/video-upload.po.ts b/client/e2e/src/po/video-upload.po.ts index dd437c390..2206b56c3 100644 --- a/client/e2e/src/po/video-upload.po.ts +++ b/client/e2e/src/po/video-upload.po.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { join } from 'path' | 1 | import { join } from 'path' |
2 | import { clickOnCheckbox } from '../utils' | 2 | import { getCheckbox, selectCustomSelect } from '../utils' |
3 | 3 | ||
4 | export class VideoUploadPage { | 4 | export class VideoUploadPage { |
5 | async navigateTo () { | 5 | async navigateTo () { |
@@ -32,7 +32,7 @@ export class VideoUploadPage { | |||
32 | } | 32 | } |
33 | 33 | ||
34 | setAsNSFW () { | 34 | setAsNSFW () { |
35 | return clickOnCheckbox('nsfw') | 35 | return getCheckbox('nsfw').click() |
36 | } | 36 | } |
37 | 37 | ||
38 | async validSecondUploadStep (videoName: string) { | 38 | async validSecondUploadStep (videoName: string) { |
@@ -47,6 +47,10 @@ export class VideoUploadPage { | |||
47 | }) | 47 | }) |
48 | } | 48 | } |
49 | 49 | ||
50 | setAsPublic () { | ||
51 | return selectCustomSelect('privacy', 'Public') | ||
52 | } | ||
53 | |||
50 | private getSecondStepSubmitButton () { | 54 | private getSecondStepSubmitButton () { |
51 | return $('.submit-container my-button') | 55 | return $('.submit-container my-button') |
52 | } | 56 | } |