Redesign DM Dashboard (/dm/, /ru/dm/) with purple-gold theme (#534AB7 + #c8a84b): Design System: - Update dm-theme.css with 49 purple-gold tokens (transitions, shadows, hover states) - Create DmTabs.astro with ARIA, keyboard nav, URL hash sync, localStorage persistence - Create DmSidebar.astro for desktop navigation - Redesign DmHeader with gold accent - Update DmButton, DmCard, DmInput primitives - Expand i18n to 47 strings Layout: - Redesign DmLayout with 3-column dashboard grid (sidebar|main|context) - Update /dm/index.astro and /ru/dm/index.astro with named slots Feature Components: - DiceRoller: empty state, ARIA live, color-coded history, storage key fallback - InitiativeTracker: HP editing, active highlighting, storage key fallback - Open5eReference: skeletons, debounce, error retry, gold tabs - NotesPanel: cross-tab sync, copy-to-clipboard, auto-save - AuthPanel: VK/Yandex brand colors, pill buttons Tests: - Add 50 Playwright E2E tests (smoke, dice, initiative, reference, notes, data-migration) Fixes: - Document Open5e client.ts URL bugfix - Add backward-compatible storage key fallback for dice/initiative - Preserve legacy sessionStorage data on load
18 lines
595 B
TypeScript
18 lines
595 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.describe("DM Dashboard Smoke Tests", () => {
|
|
test("/dm/ loads without errors", async ({ page }) => {
|
|
const response = await page.goto("/dm/");
|
|
expect(response).not.toBeNull();
|
|
expect(response!.status()).toBe(200);
|
|
await expect(page).toHaveTitle(/DM Dashboard/i);
|
|
});
|
|
|
|
test("/ru/dm/ loads without errors", async ({ page }) => {
|
|
const response = await page.goto("/ru/dm/");
|
|
expect(response).not.toBeNull();
|
|
expect(response!.status()).toBe(200);
|
|
await expect(page).toHaveTitle(/DM Dashboard/i);
|
|
});
|
|
});
|