diff --git a/e2e/tests/auth.spec.ts b/e2e/tests/auth.spec.ts index c85e4c6..85992cf 100644 --- a/e2e/tests/auth.spec.ts +++ b/e2e/tests/auth.spec.ts @@ -26,9 +26,10 @@ test('register, log in, then log out', async ({ page }) => { await page.getByLabel(/password/i).fill(password) await page.getByRole('button', { name: /log in/i }).click() - // Lands on the authenticated app (the scenarios placeholder + the logout - // control in the authed layout). - await expect(page.getByText(/emergency fund/i)).toBeVisible() + // Lands on the authenticated app: the scenarios list. A brand-new account + // owns nothing, so this is the empty state — not seed data (the stack ships + // no fixtures, so a fresh user genuinely has zero scenarios). + await expect(page.getByText(/you don.t have any scenarios yet/i)).toBeVisible() await expect(page.getByRole('button', { name: /log out/i })).toBeVisible() // --- Log out ------------------------------------------------------------ @@ -36,5 +37,5 @@ test('register, log in, then log out', async ({ page }) => { // Back to the login screen; the authed content is gone. await expect(page).toHaveURL(/\/login$/) - await expect(page.getByText(/emergency fund/i)).toHaveCount(0) + await expect(page.getByText(/you don.t have any scenarios yet/i)).toHaveCount(0) })