mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2024-11-24 09:21:00 +00:00
Fix login
This commit is contained in:
parent
de1564514e
commit
01ba918473
1 changed files with 5 additions and 5 deletions
10
test/test.js
10
test/test.js
|
@ -57,11 +57,11 @@ describe('Application life cycle test', function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function login() {
|
async function login() {
|
||||||
await browser.get(`https://${app.fqdn}/login`);
|
await browser.get(`https://${app.fqdn}`);
|
||||||
await waitForElement(By.xpath('//input[@name="username"]'));
|
await waitForElement(By.id('inputUsername'));
|
||||||
await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username);
|
await browser.findElement(By.id('inputUsername')).sendKeys(username);
|
||||||
await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password);
|
await browser.findElement(By.id('inputPassword')).sendKeys(password);
|
||||||
await browser.findElement(By.id('login')).click();
|
await browser.findElement(By.id('loginSubmitButton')).click();
|
||||||
await waitForElement(By.xpath('//a[text()="Alerts"]'));
|
await waitForElement(By.xpath('//a[text()="Alerts"]'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue