fix(kanban): honor theme and keyboard moves
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { expect, test, type Page } from "@playwright/test";
|
||||
import path from "node:path";
|
||||
|
||||
const updateAuditEvidence = process.env.UPDATE_AUDIT_EVIDENCE === "1";
|
||||
|
||||
async function login(page: Page) {
|
||||
await page.goto("/login");
|
||||
await page.getByLabel("Email").fill("e2e@example.test");
|
||||
@@ -62,7 +64,7 @@ test("discovery remains usable across widths and opens the reviewed import", asy
|
||||
await expect(page.getByText("Work arrangement not provided by this source").first()).toBeVisible();
|
||||
await expect(page.getByText(/Application deadline:/)).toBeVisible();
|
||||
expect(await page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth)).toBe(true);
|
||||
await page.screenshot({ path: path.resolve("..", "docs", "audits", "evidence", "jobs-001-discovery-375-light.png"), fullPage: true });
|
||||
if (updateAuditEvidence) await page.screenshot({ path: path.resolve("..", "docs", "audits", "evidence", "jobs-001-discovery-375-light.png"), fullPage: true });
|
||||
|
||||
await page.getByLabel("Sort results").click();
|
||||
await page.getByRole("option", { name: "Title A–Z" }).click();
|
||||
@@ -82,7 +84,7 @@ test("discovery remains usable across widths and opens the reviewed import", asy
|
||||
await expect(page.locator("html")).toHaveAttribute("data-color-scheme", "dark");
|
||||
await page.getByRole("button", { name: "Search NAV" }).click();
|
||||
await expect(page.getByText("2 vacancies found")).toBeVisible();
|
||||
await page.screenshot({ path: path.resolve("..", "docs", "audits", "evidence", "jobs-001-discovery-1440-dark.png"), fullPage: true });
|
||||
if (updateAuditEvidence) await page.screenshot({ path: path.resolve("..", "docs", "audits", "evidence", "jobs-001-discovery-1440-dark.png"), fullPage: true });
|
||||
|
||||
await page.getByRole("button", { name: "Save to tracker" }).first().click();
|
||||
await expect(page.getByRole("dialog")).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user