mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
172 lines
3.7 KiB
JSON
172 lines
3.7 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/package-playwright.schema.json",
|
|
"package": "admin",
|
|
"description": "Admin workflows - settings and plugin management",
|
|
"version": "1.0",
|
|
"tags": [
|
|
"@admin",
|
|
"@critical-flows",
|
|
"@phase-3"
|
|
],
|
|
"tests": [
|
|
{
|
|
"name": "settings page loads for admin navigation",
|
|
"description": "Settings page is accessible as the admin equivalent",
|
|
"tags": [
|
|
"@admin",
|
|
"@smoke"
|
|
],
|
|
"timeout": 30000,
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "settings"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "plugins page loads for package management",
|
|
"description": "Plugins page serves as package management admin equivalent",
|
|
"tags": [
|
|
"@admin",
|
|
"@packages"
|
|
],
|
|
"timeout": 30000,
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "plugins"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "settings page has content",
|
|
"description": "Settings page renders with visible content",
|
|
"tags": [
|
|
"@admin",
|
|
"@ui"
|
|
],
|
|
"timeout": 30000,
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "settings"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "plugins page has content",
|
|
"description": "Plugins page shows plugin listing",
|
|
"tags": [
|
|
"@admin",
|
|
"@plugins"
|
|
],
|
|
"timeout": 30000,
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "plugins"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "non-existent route shows not found page",
|
|
"description": "Invalid routes are handled gracefully",
|
|
"tags": [
|
|
"@error-handling"
|
|
],
|
|
"timeout": 30000,
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "nonexistent-admin-xyz"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "header is visible on settings page",
|
|
"description": "Settings page has header navigation",
|
|
"tags": [
|
|
"@admin",
|
|
"@navigation"
|
|
],
|
|
"timeout": 30000,
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "settings"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "wait",
|
|
"timeout": 1000
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"testId": "header-actions",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |