Skip to content

Commit ab56219

Browse files
authored
fix: Find username fields labelled 'user name' (#60)
Part of github/continuous-ai-for-accessibility#80 (Hubber access only)
2 parents 0541bcc + 5f7a22d commit ab56219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/auth/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default async function () {
4747
// If no login form is found, then either HTTP Basic auth succeeded, or the page does not require authentication.
4848
core.info("Checking for login form");
4949
const [usernameField, passwordField] = await Promise.all([
50-
page.getByLabel(/username/i).first(),
50+
page.getByLabel(/user ?name/i).first(),
5151
page.getByLabel(/password/i).first(),
5252
]);
5353
const [usernameFieldExists, passwordFieldExists] = await Promise.all([

0 commit comments

Comments
 (0)