aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-10 13:56:26 +0200
committerChocobozzz <me@florianbigard.com>2021-05-10 13:58:09 +0200
commit3ec535f72be4fea5c6afa129d40b81b74431f1d2 (patch)
tree9baf40c35a1a125fea0c751d28afd7750d8703c2 /client
parent649e812947b1afa1f025f2f3dc833a8cfb772e9c (diff)
downloadPeerTube-3ec535f72be4fea5c6afa129d40b81b74431f1d2.tar.gz
PeerTube-3ec535f72be4fea5c6afa129d40b81b74431f1d2.tar.zst
PeerTube-3ec535f72be4fea5c6afa129d40b81b74431f1d2.zip
Fix E2E tests
Diffstat (limited to 'client')
-rw-r--r--client/e2e/src/po/video-upload.po.ts7
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) {