We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2d328 commit 1f6f395Copy full SHA for 1f6f395
1 file changed
packages/internal-playwright-helpers/src/pages/cognito.ts
@@ -42,6 +42,10 @@ export class CognitoPage {
42
.getByRole("textbox", { name: "Username" })
43
.fill(username, options);
44
await this.page.getByRole("textbox", { name: "Password" }).fill(password);
45
- return this.page.getByRole("button", { name: "submit" }).click();
+ // Depending on the target instance, the cognito button changes aria name.
46
+ return this.page
47
+ .getByRole("button", { name: "Sign in" })
48
+ .or(this.page.getByRole("button", { name: "submit" }))
49
+ .click();
50
}
51
0 commit comments