626d06327c
New domain `browser` under frontend/functions/ with 6 Playwright helpers: - pw_launch_browser: chromium + context + page bootstrap with storageState support and baseUrl navigation. - pw_kanban_login: authenticates a Page against /api/auth/login; sets the kanban_session cookie via shared storageState; verifies login page no longer visible after navigation. - pw_drag_drop: human-like pointer drag (mousedown + activateOffset + stepped move + mouseup) compatible with @dnd-kit/core's 8px activation threshold; supports hoverMs for time-based dropzones. - pw_keyboard_sequence: ordered focus/type/press/wait steps for scripting realistic input flows (typing then arrow-key navigating autocompletes). - pw_wait_predicate: thin wrapper over page.waitForFunction with friendlier defaults and custom error messages. - pw_assert_class: poll-based assertion that a Locator has/lacks a CSS class within a timeout; useful for visual-state checks. Each function ships with vitest tests (5-8 cases each) covering both happy and error paths, plus self-documenting .md (Ejemplo + Cuando usarla + Gotchas + frontmatter with params/output schema). Adds frontend/functions/package.json with `"type": "module"` so consumers can ESM-import the .ts files from anywhere in the registry (Playwright's tsx loader respects nearest package.json). Capability page docs/capabilities/playwright.md documents the group with a canonical end-to-end example, frontiers, prerequisites, and gotchas. Index updated. First consumer (issue 0088): apps/kanban requester-input.spec.ts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "frontend",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"packageManager": "pnpm@10.17.0",
|
|
"dependencies": {
|
|
"@fontsource-variable/geist": "^5.2.8",
|
|
"@mantine/charts": "^9.0.0",
|
|
"@mantine/core": "^9.0.0",
|
|
"@mantine/dates": "^9.0.1",
|
|
"@mantine/dropzone": "^9.0.1",
|
|
"@mantine/form": "^9.0.0",
|
|
"@mantine/hooks": "^9.0.0",
|
|
"@mantine/notifications": "^9.0.0",
|
|
"@tabler/icons-react": "^3.41.1",
|
|
"dayjs": "^1.11.20",
|
|
"graphology": "^0.26.0",
|
|
"graphology-layout-forceatlas2": "^0.10.1",
|
|
"graphology-types": "^0.24.8",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"recharts": "^3.8.1",
|
|
"sigma": "^3.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"playwright": "^1.60.0",
|
|
"postcss": "^8.5.8",
|
|
"postcss-preset-mantine": "^1.18.0",
|
|
"postcss-simple-vars": "^7.0.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^6.0.2",
|
|
"vite": "^8.0.3",
|
|
"vitest": "^4.1.6"
|
|
}
|
|
}
|