mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-09-15 09:29:14 +00:00
fix test
This commit is contained in:
@@ -116,7 +116,7 @@ describe('Application life cycle test', function () {
|
|||||||
await browser.findElement(By.id('ssh-key-content')).sendKeys(publicKey.trim()); // #3480
|
await browser.findElement(By.id('ssh-key-content')).sendKeys(publicKey.trim()); // #3480
|
||||||
var button = browser.findElement(By.xpath('//button[contains(text(), "Add Key")]'));
|
var button = browser.findElement(By.xpath('//button[contains(text(), "Add Key")]'));
|
||||||
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
||||||
await browser.findElement(By.xpath('//button[contains(text(), "Add Key")]')).click();
|
await browser.findElement(By.xpath('//button[contains(text(), "Add Key") and contains(@class, "green")]')).click();
|
||||||
|
|
||||||
await browser.wait(until.elementLocated(By.xpath('//p[contains(text(), "has been added.")]')), TIMEOUT);
|
await browser.wait(until.elementLocated(By.xpath('//p[contains(text(), "has been added.")]')), TIMEOUT);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user