diff --git a/test/specs/account.spec.ts b/test/specs/account.spec.ts index 78030c5..9a31831 100644 --- a/test/specs/account.spec.ts +++ b/test/specs/account.spec.ts @@ -228,7 +228,16 @@ test.describe('Account security (#91)', () => { await expect(page.getByText('Set up Authenticator application').first()).toBeVisible(); health.assertHealthy(); await closeSidebarNavIfOpen(page); - await expect(page).toHaveScreenshot('account-signing-in.png'); + // The password credential's own "Created " line + // (data-testrole="created-at") is real server state, not fixture data + // -- it reflects whenever this realm/user was actually provisioned, + // which differs release to release and CI run to CI run. Baked + // straight into a screenshot baseline this flakes forever (found live: + // failed in CI at both mobile-390 and iphone-393 with an ~8000-pixel + // diff, entirely the timestamp string's own length/wrap shifting + // everything after it). Masked, not asserted on, since its exact value + // was never what this screenshot exists to verify. + await expect(page).toHaveScreenshot('account-signing-in.png', { mask: [page.locator('[data-testrole="created-at"]')] }); }); test('Device activity lists the current session and offers sign-out', async ({ page, baseURL }) => { diff --git a/test/specs/account.spec.ts-snapshots/account-signing-in-desktop-1440-linux.png b/test/specs/account.spec.ts-snapshots/account-signing-in-desktop-1440-linux.png index 6bda54f..5afbf80 100644 Binary files a/test/specs/account.spec.ts-snapshots/account-signing-in-desktop-1440-linux.png and b/test/specs/account.spec.ts-snapshots/account-signing-in-desktop-1440-linux.png differ diff --git a/test/specs/account.spec.ts-snapshots/account-signing-in-iphone-393-linux.png b/test/specs/account.spec.ts-snapshots/account-signing-in-iphone-393-linux.png index be35df7..852a7b5 100644 Binary files a/test/specs/account.spec.ts-snapshots/account-signing-in-iphone-393-linux.png and b/test/specs/account.spec.ts-snapshots/account-signing-in-iphone-393-linux.png differ diff --git a/test/specs/account.spec.ts-snapshots/account-signing-in-mobile-390-linux.png b/test/specs/account.spec.ts-snapshots/account-signing-in-mobile-390-linux.png index 0e672d7..d41f8e2 100644 Binary files a/test/specs/account.spec.ts-snapshots/account-signing-in-mobile-390-linux.png and b/test/specs/account.spec.ts-snapshots/account-signing-in-mobile-390-linux.png differ diff --git a/test/specs/account.spec.ts-snapshots/account-signing-in-tablet-820-linux.png b/test/specs/account.spec.ts-snapshots/account-signing-in-tablet-820-linux.png index 54a0451..9dad0fd 100644 Binary files a/test/specs/account.spec.ts-snapshots/account-signing-in-tablet-820-linux.png and b/test/specs/account.spec.ts-snapshots/account-signing-in-tablet-820-linux.png differ diff --git a/test/specs/account.spec.ts-snapshots/account-signing-in-uhd-3840-linux.png b/test/specs/account.spec.ts-snapshots/account-signing-in-uhd-3840-linux.png index 42be41e..1171cbc 100644 Binary files a/test/specs/account.spec.ts-snapshots/account-signing-in-uhd-3840-linux.png and b/test/specs/account.spec.ts-snapshots/account-signing-in-uhd-3840-linux.png differ diff --git a/test/specs/account.spec.ts-snapshots/account-signing-in-uhq-1920-linux.png b/test/specs/account.spec.ts-snapshots/account-signing-in-uhq-1920-linux.png index 568dd57..b44d706 100644 Binary files a/test/specs/account.spec.ts-snapshots/account-signing-in-uhq-1920-linux.png and b/test/specs/account.spec.ts-snapshots/account-signing-in-uhq-1920-linux.png differ