Files
Reactive-Resume/tests/e2e/specs/auth.spec.ts
T
Cursor Agent 3c222660c1 test: add core e2e fixtures and specs
Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
2026-06-20 04:08:57 +00:00

14 lines
568 B
TypeScript

import { loginViaUi, logoutViaUi, registerViaUi } from "../fixtures/auth";
import { expect, test } from "../fixtures/test";
test("registers and logs in with email credentials", async ({ page, account }) => {
await registerViaUi(page, account);
await expect(page.getByRole("heading", { name: "Resumes" })).toBeVisible();
await logoutViaUi(page, account);
await expect(page.getByRole("heading", { name: "Sign in to your account" })).toBeVisible();
await loginViaUi(page, account);
await expect(page.getByRole("heading", { name: "Resumes" })).toBeVisible();
});