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

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:
2026-05-21 16:28:40 +02:00
committed by Hartmut
parent d9a7ec0338
commit b41c1d2501
943 changed files with 24548 additions and 16832 deletions
+26 -17
View File
@@ -10,22 +10,26 @@ async function signIn(page: Page, email: string, password: string) {
test.describe("Estimates", () => {
test.beforeEach(async ({ page }) => {
await signIn(page, "admin@capakraken.dev", "admin123");
await signIn(page, "admin@nexus.dev", "admin123");
await page.goto("/estimates");
});
test("estimate list loads", async ({ page }) => {
await page.waitForLoadState("networkidle");
await expect(page.getByRole("heading", { name: /estimate workspace/i })).toBeVisible({
timeout: 10000,
});
await expect(page.getByPlaceholder("Search by estimate or opportunity")).toBeVisible({
timeout: 10000,
});
await expect(
page.getByRole("heading", { name: /estimate workspace/i }),
).toBeVisible({ timeout: 10000 });
await expect(
page.getByPlaceholder("Search by estimate or opportunity"),
).toBeVisible({ timeout: 10000 });
await expect(
page.locator("text=No estimates yet").or(
page.locator("text=Select an estimate to inspect the current version, demand lines, and summary metrics."),
),
page
.locator("text=No estimates yet")
.or(
page.locator(
"text=Select an estimate to inspect the current version, demand lines, and summary metrics.",
),
),
).toBeVisible({ timeout: 10000 });
});
@@ -44,8 +48,13 @@ test.describe("Estimates", () => {
await page.locator("button", { hasText: /New Estimate/i }).click();
// Step 1: Setup — fill a name
await expect(page.getByRole("button", { name: /Step 1 Setup/i })).toBeVisible({ timeout: 5000 });
const nameInput = page.locator('input[placeholder*="name"]').or(page.locator('input[name="name"]')).first();
await expect(page.getByRole("button", { name: /Step 1 Setup/i })).toBeVisible({
timeout: 5000,
});
const nameInput = page
.locator('input[placeholder*="name"]')
.or(page.locator('input[name="name"]'))
.first();
if ((await nameInput.count()) > 0) {
await nameInput.fill(`E2E Estimate ${Date.now()}`);
}
@@ -90,9 +99,7 @@ test.describe("Estimates", () => {
test("shows the empty-state fallback when no estimates exist", async ({ page }) => {
await page.waitForLoadState("networkidle");
await expect(
page.locator("text=No estimates yet"),
).toBeVisible({ timeout: 10000 });
await expect(page.locator("text=No estimates yet")).toBeVisible({ timeout: 10000 });
});
test("shows an estimate-not-found fallback for unknown workspaces", async ({ page }) => {
@@ -103,12 +110,14 @@ test.describe("Estimates", () => {
test("shows the restricted workspace fallback for viewers", async ({ browser }) => {
const page = await browser.newPage();
await signIn(page, "viewer@capakraken.dev", "viewer123");
await signIn(page, "viewer@nexus.dev", "viewer123");
await page.goto("/estimates/missing-estimate");
await page.waitForLoadState("networkidle");
await expect(
page.locator("text=Your role can access the estimate list, but not the detailed financial workspace."),
page.locator(
"text=Your role can access the estimate list, but not the detailed financial workspace.",
),
).toBeVisible({ timeout: 10000 });
await page.close();