fix tests

This commit is contained in:
KingKDot
2026-07-21 13:57:44 -05:00
parent ff337bc36b
commit 3a05497aa3
6 changed files with 57 additions and 4 deletions
+1
View File
@@ -83,6 +83,7 @@ test("admin can generate passwords and inspect combined permission sources", asy
await page.goto("/users");
await page.locator("#add-user-btn").click();
await expect(page.locator("#must-change-password")).toBeChecked();
await page.locator("#generate-password-btn").click();
const generatedPassword = await page.locator("#password").inputValue();
expect(generatedPassword.length).toBeGreaterThanOrEqual(20);
+1 -1
View File
@@ -51,7 +51,7 @@ async function seedBrowserUsers(): Promise<void> {
for (const account of [ONBOARDING_USER, OPERATOR, VIEWER]) {
const response = await authenticatedRequest("/api/users", adminCookie, {
method: "POST",
body: JSON.stringify(account),
body: JSON.stringify({ ...account, mustChangePassword: false }),
});
if (!response.ok) {
throw new Error(`Could not seed ${account.username}: ${response.status}`);