X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fe2e%2Fsrc%2Fpo%2Fvideo-upload.po.ts;h=942025b6b2abf8269f0c755791a41c32b47327f3;hb=1ef7f3230473c8a74032d269e027201c3a51974d;hp=1978707e3a5cb55f79ecb8048f25d87811cc362b;hpb=d1bd87e066633b8a66266b280327ec828980916b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/e2e/src/po/video-upload.po.ts b/client/e2e/src/po/video-upload.po.ts index 1978707e3..942025b6b 100644 --- a/client/e2e/src/po/video-upload.po.ts +++ b/client/e2e/src/po/video-upload.po.ts @@ -4,7 +4,7 @@ import { join } from 'path' export class VideoUploadPage { async navigateTo () { - await element(by.css('.header .upload-button')).click() + await element(by.css('.header .publish-button')).click() return browser.wait(browser.ExpectedConditions.visibilityOf(element(by.css('.upload-video-container')))) } @@ -14,13 +14,14 @@ export class VideoUploadPage { const fileToUpload = join(__dirname, '../../fixtures/video.mp4') const fileInputSelector = '.upload-video-container input[type=file]' - const parentFileInput = '.upload-video .button-file' + const parentFileInput = '.upload-video-container .button-file' // Avoid sending keys on non visible element await browser.executeScript(`document.querySelector('${fileInputSelector}').style.opacity = 1`) - // await browser.executeScript(`document.querySelector('${fileInputSelector}').style.opacity = 1`) await browser.executeScript(`document.querySelector('${parentFileInput}').style.overflow = 'initial'`) + await browser.sleep(1000) + const elem = element(by.css(fileInputSelector)) await elem.sendKeys(fileToUpload) @@ -39,6 +40,6 @@ export class VideoUploadPage { } private getSecondStepSubmitButton () { - return element(by.css('.submit-button:not(.disabled) input')) + return element(by.css('.submit-container my-button')) } }