Skip to content

Commit 1ba0fe0

Browse files
committed
Change SSO user locator
Hopefully, this will be more reliable
1 parent 8af1af0 commit 1ba0fe0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

e2e/pages/alcs/alcs-login-page.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export class ALCSLoginPage {
1212
this.page = page;
1313
this.baseUrl = baseUrl;
1414
this.idirLink = page.getByRole('link', { name: 'Basic or Business BCeID' });
15-
// There is an error with the username label on BCeID page
16-
this.userIdTextbox = page.getByRole('textbox').nth(0);
15+
this.userIdTextbox = page.locator('#user');
1716
this.passwordTextbox = page.getByLabel('Password');
1817
this.continueButton = page.getByRole('button', { name: 'Continue' });
1918
}

e2e/pages/portal/portal-login-page.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export class PortalLoginPage {
1212
this.page = page;
1313
this.baseUrl = baseUrl;
1414
this.loginButton = page.getByRole('button', { name: 'Portal Login' });
15-
// There is an error with the username label on BCeID page
16-
this.userIdTextbox = page.getByRole('textbox').nth(0);
15+
this.userIdTextbox = page.locator('#user');
1716
this.passwordTextbox = page.getByLabel('Password');
1817
this.continueButton = page.getByRole('button', { name: 'Continue' });
1918
}

0 commit comments

Comments
 (0)