better xpath

This commit is contained in:
Girish Ramakrishnan 2023-02-11 09:42:44 +01:00
parent 07b6993803
commit 97e71fc637

View file

@ -55,7 +55,7 @@ describe('Application life cycle test', function () {
if (mode === 'none') {
await browser.get('https://' + app.fqdn);
await browser.sleep(2000);
await browser.findElement(By.xpath('//button/span[contains(text(), "Create account")]')).click();
await browser.findElement(By.xpath('//div[@class="sign-in-banner"]/descendant::button/span[contains(text(), "Create account")]')).click();
await visible(By.xpath('//span[contains(text()[2], "is currently not possible")]'));
} else if (mode === 'open') {
await browser.get('https://' + app.fqdn + '/auth/sign_up');