This commit is contained in:
Girish Ramakrishnan 2022-11-17 13:38:43 +01:00
parent 205a2721dd
commit 7dc76ff44d

View file

@ -102,8 +102,12 @@ describe('Application life cycle test', function () {
await browser.sleep(2000); await browser.sleep(2000);
await browser.findElement(By.xpath('//input[@id="videofile" and @type="file"]')).sendKeys(path.resolve(__dirname, './Cloudron Test Video.mp4')); await browser.findElement(By.xpath('//input[@id="videofile" and @type="file"]')).sendKeys(path.resolve(__dirname, './Cloudron Test Video.mp4'));
await browser.sleep(10000); // wait for upload await browser.sleep(10000); // wait for upload
await waitForElement(By.xpath('//div[@class="submit-container"]//span[text()="Publish"]')); await waitForElement(By.xpath('//div[@class="submit-container"]//span[text()="Publish"]'));
await browser.findElement(By.xpath('//div[@class="submit-container"]//span[text()="Publish"]')).click(); let button = browser.findElement(By.xpath('//div[@class="submit-container"]//span[text()="Publish"]'));
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
await browser.sleep(2000);
await button.click();
await browser.sleep(2000); await browser.sleep(2000);
} }