diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-10 13:56:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-10 13:58:09 +0200 |
commit | 3ec535f72be4fea5c6afa129d40b81b74431f1d2 (patch) | |
tree | 9baf40c35a1a125fea0c751d28afd7750d8703c2 /client/e2e | |
parent | 649e812947b1afa1f025f2f3dc833a8cfb772e9c (diff) | |
download | PeerTube-3ec535f72be4fea5c6afa129d40b81b74431f1d2.tar.gz PeerTube-3ec535f72be4fea5c6afa129d40b81b74431f1d2.tar.zst PeerTube-3ec535f72be4fea5c6afa129d40b81b74431f1d2.zip |
Fix E2E tests
Diffstat (limited to 'client/e2e')
-rw-r--r-- | client/e2e/src/po/video-upload.po.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/e2e/src/po/video-upload.po.ts b/client/e2e/src/po/video-upload.po.ts index 942025b6b..ad2acee7f 100644 --- a/client/e2e/src/po/video-upload.po.ts +++ b/client/e2e/src/po/video-upload.po.ts | |||
@@ -26,7 +26,12 @@ export class VideoUploadPage { | |||
26 | await elem.sendKeys(fileToUpload) | 26 | await elem.sendKeys(fileToUpload) |
27 | 27 | ||
28 | // Wait for the upload to finish | 28 | // Wait for the upload to finish |
29 | await browser.wait(browser.ExpectedConditions.elementToBeClickable(this.getSecondStepSubmitButton())) | 29 | await browser.wait(async () => { |
30 | const actionButton = this.getSecondStepSubmitButton().element(by.css('.action-button')) | ||
31 | |||
32 | const klass = await actionButton.getAttribute('class') | ||
33 | return !klass.includes('disabled') | ||
34 | }) | ||
30 | } | 35 | } |
31 | 36 | ||
32 | async validSecondUploadStep (videoName: string) { | 37 | async validSecondUploadStep (videoName: string) { |