cd78f72f33
Complete rename of all technical identifiers across the codebase: Package names (11 packages): - @planarchy/* → @capakraken/* in all package.json, tsconfig, imports Import statements: 277 files, 548 occurrences replaced Database & Docker: - PostgreSQL user/db: planarchy → capakraken - Docker volumes: planarchy_pgdata → capakraken_pgdata - Connection strings updated in docker-compose, .env, CI CI/CD: - GitHub Actions workflow: all filter commands updated - Test database credentials updated Infrastructure: - Redis channel: planarchy:sse → capakraken:sse - Logger service name: planarchy-api → capakraken-api - Anonymization seed updated - Start/stop/restart scripts updated Test data: - Seed emails: @planarchy.dev → @capakraken.dev - E2E test credentials: all 11 spec files updated - Email defaults: @planarchy.app → @capakraken.app - localStorage keys: planarchy_* → capakraken_* Documentation: 30+ .md files updated Verification: - pnpm install: workspace resolution works - TypeScript: only pre-existing TS2589 (no new errors) - Engine: 310/310 tests pass - Staffing: 37/37 tests pass Co-Authored-By: claude-flow <ruv@ruv.net>
25 lines
871 B
TypeScript
25 lines
871 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
test.describe("Resources", () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto("/auth/signin");
|
|
await page.fill('input[type="email"]', "manager@capakraken.dev");
|
|
await page.fill('input[type="password"]', "manager123");
|
|
await page.click('button[type="submit"]');
|
|
await expect(page).toHaveURL(/\/resources/);
|
|
});
|
|
|
|
test("shows resources list", async ({ page }) => {
|
|
await expect(page.locator("h1")).toContainText("Resources");
|
|
await expect(page.locator("table")).toBeVisible();
|
|
});
|
|
|
|
test("can search resources", async ({ page }) => {
|
|
const searchInput = page.locator('input[type="search"]');
|
|
await searchInput.fill("EMP-001");
|
|
await page.waitForTimeout(500);
|
|
// Should show filtered results
|
|
await expect(page.locator("tbody tr")).toHaveCount(1);
|
|
});
|
|
});
|