rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61)
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61) Co-authored-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com> Co-committed-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
This commit was merged in pull request #61.
This commit is contained in:
@@ -2,14 +2,16 @@ import { expect, test, type Page } from "@playwright/test";
|
||||
|
||||
async function signInAsAdmin(page: Page) {
|
||||
await page.goto("/auth/signin");
|
||||
await page.fill('input[type="email"]', "admin@capakraken.dev");
|
||||
await page.fill('input[type="email"]', "admin@nexus.dev");
|
||||
await page.fill('input[type="password"]', "admin123");
|
||||
await page.click('button[type="submit"]');
|
||||
await expect(page).toHaveURL(/\/(dashboard|resources)/);
|
||||
}
|
||||
|
||||
test.describe("Holiday Calendar Editor", () => {
|
||||
test("creates a city calendar, previews a holiday, blocks duplicates and confirms deletion", async ({ page }) => {
|
||||
test("creates a city calendar, previews a holiday, blocks duplicates and confirms deletion", async ({
|
||||
page,
|
||||
}) => {
|
||||
const suffix = Date.now().toString();
|
||||
const calendarName = `E2E City Calendar ${suffix}`;
|
||||
const holidayName = `E2E Local Holiday ${suffix}`;
|
||||
@@ -21,11 +23,18 @@ test.describe("Holiday Calendar Editor", () => {
|
||||
|
||||
await page.getByTestId("holiday-calendar-name-input").fill(calendarName);
|
||||
await page.getByTestId("holiday-calendar-scope-select").selectOption("CITY");
|
||||
await page.getByTestId("holiday-calendar-country-select").selectOption({ label: "Germany (DE)" });
|
||||
await page
|
||||
.getByTestId("holiday-calendar-country-select")
|
||||
.selectOption({ label: "Germany (DE)" });
|
||||
await page.getByTestId("holiday-calendar-city-select").selectOption({ label: "Muenchen" });
|
||||
await page.getByTestId("holiday-calendar-create-button").click();
|
||||
|
||||
await expect(page.getByTestId(/holiday-calendar-row-/).filter({ hasText: calendarName }).first()).toBeVisible();
|
||||
await expect(
|
||||
page
|
||||
.getByTestId(/holiday-calendar-row-/)
|
||||
.filter({ hasText: calendarName })
|
||||
.first(),
|
||||
).toBeVisible();
|
||||
await expect(page.getByRole("heading", { name: calendarName })).toBeVisible();
|
||||
await expect(page.getByTestId("holiday-entry-create-button")).toBeVisible();
|
||||
|
||||
@@ -44,10 +53,15 @@ test.describe("Holiday Calendar Editor", () => {
|
||||
await page.getByTestId("holiday-entry-name-input").fill(`${holidayName} Duplicate`);
|
||||
await page.getByTestId("holiday-entry-create-button").click();
|
||||
|
||||
await expect(page.getByText("A holiday entry for this calendar and date already exists")).toBeVisible();
|
||||
await expect(
|
||||
page.getByText("A holiday entry for this calendar and date already exists"),
|
||||
).toBeVisible();
|
||||
|
||||
page.once("dialog", (dialog) => dialog.accept());
|
||||
await page.getByTestId(/holiday-entry-delete-/).first().click();
|
||||
await page
|
||||
.getByTestId(/holiday-entry-delete-/)
|
||||
.first()
|
||||
.click();
|
||||
await expect(page.getByText(holidayName).first()).not.toBeVisible();
|
||||
|
||||
page.once("dialog", (dialog) => dialog.accept());
|
||||
|
||||
Reference in New Issue
Block a user