Make tests language independent

This commit is contained in:
Johannes Zellner 2024-04-04 15:52:18 +02:00
parent a54fd42ce9
commit 0bd51a6143

View file

@ -88,12 +88,10 @@ describe('Application life cycle test', function () {
await browser.sleep(2000); await browser.sleep(2000);
if (!athenticated_by_oidc) { if (!athenticated_by_oidc) {
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.sleep(2000); await browser.findElement(By.id('loginSubmitButton')).click();
await browser.findElement(By.xpath('//button[@type="submit" and contains(text(), "Sign in")]')).click();
await browser.sleep(2000);
athenticated_by_oidc = true; athenticated_by_oidc = true;
} }