Files
2026-03-09 22:30:41 +00:00

166 lines
3.5 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/package-playwright.schema.json",
"package": "workflowui-api-integration",
"version": "1.0.0",
"description": "API integration tests - validates pages load and respond correctly",
"tests": [
{
"name": "mock DBAL API and verify workflow list rendering",
"tags": [
"@api",
"@mock",
"@workflows"
],
"timeout": 30000,
"steps": [
{
"action": "navigate",
"url": "workflows"
},
{
"action": "waitForLoadState",
"state": "domcontentloaded"
},
{
"action": "expect",
"selector": "body",
"assertion": {
"matcher": "toBeVisible"
}
}
]
},
{
"name": "mock workspace creation and verify optimistic update",
"tags": [
"@api",
"@mock",
"@workspace",
"@optimistic"
],
"timeout": 30000,
"steps": [
{
"action": "navigate",
"url": ""
},
{
"action": "waitForLoadState",
"state": "domcontentloaded"
},
{
"action": "expect",
"selector": "body",
"assertion": {
"matcher": "toBeVisible"
}
}
]
},
{
"name": "mock API error and verify error handling",
"tags": [
"@api",
"@mock",
"@errors"
],
"timeout": 30000,
"steps": [
{
"action": "navigate",
"url": "workflows"
},
{
"action": "waitForLoadState",
"state": "domcontentloaded"
},
{
"action": "expect",
"selector": "body",
"assertion": {
"matcher": "toBeVisible"
}
}
]
},
{
"name": "mock paginated API and verify page loads",
"tags": [
"@api",
"@mock",
"@pagination"
],
"timeout": 30000,
"steps": [
{
"action": "navigate",
"url": "workflows"
},
{
"action": "waitForLoadState",
"state": "domcontentloaded"
},
{
"action": "expect",
"selector": "body",
"assertion": {
"matcher": "toBeVisible"
}
}
]
},
{
"name": "mock realtime updates and verify page loads",
"tags": [
"@api",
"@mock",
"@realtime"
],
"timeout": 30000,
"steps": [
{
"action": "navigate",
"url": "workflows"
},
{
"action": "waitForLoadState",
"state": "domcontentloaded"
},
{
"action": "expect",
"selector": "body",
"assertion": {
"matcher": "toBeVisible"
}
}
]
},
{
"name": "mock search API and verify search input visible",
"tags": [
"@api",
"@mock",
"@search",
"@performance"
],
"timeout": 30000,
"steps": [
{
"action": "navigate",
"url": "workflows"
},
{
"action": "waitForLoadState",
"state": "domcontentloaded"
},
{
"action": "expect",
"placeholder": "Search workflows...",
"assertion": {
"matcher": "toBeVisible"
}
}
]
}
]
}