diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-17 16:33:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-17 16:33:20 +0200 |
commit | 2e8e97f313683bdf8a7448f3d1ba1f1c27f6ad50 (patch) | |
tree | e45869b9fab36ac394d23fc3c4cb6310de146a17 /client/e2e/src/po/video-upload.po.ts | |
parent | 4b4f22fc30063bb715230b1e0f76ac25050c5a55 (diff) | |
download | PeerTube-2e8e97f313683bdf8a7448f3d1ba1f1c27f6ad50.tar.gz PeerTube-2e8e97f313683bdf8a7448f3d1ba1f1c27f6ad50.tar.zst PeerTube-2e8e97f313683bdf8a7448f3d1ba1f1c27f6ad50.zip |
Add compatibility with browser stack
Diffstat (limited to 'client/e2e/src/po/video-upload.po.ts')
-rw-r--r-- | client/e2e/src/po/video-upload.po.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/e2e/src/po/video-upload.po.ts b/client/e2e/src/po/video-upload.po.ts index 4f09bb2fa..741914d2d 100644 --- a/client/e2e/src/po/video-upload.po.ts +++ b/client/e2e/src/po/video-upload.po.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { browser, element, by } from 'protractor' | 1 | import { browser, element, by } from 'protractor' |
2 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | import { FileDetector } from 'selenium-webdriver/remote' | ||
3 | 4 | ||
4 | export class VideoUploadPage { | 5 | export class VideoUploadPage { |
5 | navigateTo () { | 6 | navigateTo () { |
@@ -7,6 +8,8 @@ export class VideoUploadPage { | |||
7 | } | 8 | } |
8 | 9 | ||
9 | async uploadVideo () { | 10 | async uploadVideo () { |
11 | browser.setFileDetector(new FileDetector()) | ||
12 | |||
10 | const fileToUpload = join(__dirname, '../../fixtures/video.mp4') | 13 | const fileToUpload = join(__dirname, '../../fixtures/video.mp4') |
11 | 14 | ||
12 | await element(by.css('.upload-video-container input[type=file]')).sendKeys(fileToUpload) | 15 | await element(by.css('.upload-video-container input[type=file]')).sendKeys(fileToUpload) |