mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-04 02:33:47 +10:00
The shared fixture creates its sample resume through the API and opens it; documents-new covers Start blank (named after the headline) and Copy for a job (linked and searchable by the application). dashboard-lifecycle renames inline, duplicates, trashes with undo, restores and deletes now; the letter, lock, view, import, auth and direction specs follow the new library and menus.
14 lines
592 B
TypeScript
14 lines
592 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: "Documents", level: 1 })).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: "Documents", level: 1 })).toBeVisible();
|
|
});
|