forked from cloudron-apps/peertube-app
scroll
This commit is contained in:
parent
205a2721dd
commit
7dc76ff44d
1 changed files with 5 additions and 1 deletions
|
@ -102,8 +102,12 @@ describe('Application life cycle test', function () {
|
|||
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.sleep(10000); // wait for upload
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue