Skip to content

Commit c9deff9

Browse files
committed
fix bootstrap: use placeholder for password inputs
1 parent 85657d6 commit c9deff9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

frontend/src/core/tests/live-setup/bootstrap.setup.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ test.describe("Live-suite bootstrap", () => {
7272
page.getByText(/must change your password|set your password/i).first(),
7373
).toBeVisible({ timeout: 15_000 });
7474

75-
const newPasswordInput = page.getByLabel(/^new password$/i);
76-
const confirmPasswordInput = page.getByLabel(/confirm new password/i);
77-
await newPasswordInput.fill(DEFAULT_TEST_PASSWORD);
78-
await confirmPasswordInput.fill(DEFAULT_TEST_PASSWORD);
75+
// Mantine's PasswordInput label association doesn't match getByLabel
76+
// cleanly across builds — use the placeholder which is stable.
77+
await page
78+
.getByPlaceholder(/enter new password.*characters/i)
79+
.fill(DEFAULT_TEST_PASSWORD);
80+
await page
81+
.getByPlaceholder(/re-enter new password/i)
82+
.fill(DEFAULT_TEST_PASSWORD);
7983

8084
const submitBtn = page.getByRole("button", { name: /change password/i });
8185
await expect(submitBtn).toBeEnabled();

0 commit comments

Comments
 (0)