Files
metabuilder/packages/dashboard/playwright/tests.json
copilot-swe-agent[bot] d87a49862b feat: add playwright and storybook folder support for packages with declarative test schemas
- Created playwright.schema.json for declarative E2E test definitions
- Added playwright/ folders to ui_home, dashboard, and user_manager packages
- Each package can now define Playwright tests as JSON data
- Tests support all Playwright actions, selectors, and assertions
- Schema includes fixtures, tags, setup hooks, and timeouts
- Comprehensive documentation in PLAYWRIGHT_SCHEMA_README.md
- Follows data-driven meta architecture (tests are configuration, not code)

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-16 18:45:29 +00:00

53 lines
1.3 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/package-playwright.schema.json",
"package": "dashboard",
"version": "1.0.0",
"description": "E2E tests for dashboard package - validates user dashboard, widgets, and data display",
"tests": [
{
"name": "should load dashboard for authenticated user",
"tags": ["@smoke", "@dashboard"],
"steps": [
{
"action": "navigate",
"url": "/dashboard"
},
{
"action": "waitForLoadState",
"state": "domcontentloaded"
},
{
"description": "Verify dashboard container",
"action": "expect",
"selector": ".dashboard-container",
"assertion": {
"matcher": "toBeVisible"
}
}
]
},
{
"name": "should display user widgets",
"tags": ["@ui", "@widgets"],
"steps": [
{
"action": "navigate",
"url": "/dashboard"
},
{
"action": "waitForLoadState",
"state": "networkidle"
},
{
"description": "Check widgets grid exists",
"action": "expect",
"selector": ".dashboard-widgets",
"assertion": {
"matcher": "toBeVisible"
}
}
]
}
]
}