mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 15:24:56 +00:00
- 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>
53 lines
1.3 KiB
JSON
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"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|