mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
177 lines
3.7 KiB
JSON
177 lines
3.7 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/package-playwright.schema.json",
|
|
"package": "workflowui-editor",
|
|
"version": "1.0.0",
|
|
"description": "WorkflowUI Editor tests - visual workflow editor with node graph",
|
|
"tests": [
|
|
{
|
|
"name": "should load editor and display canvas",
|
|
"tags": [
|
|
"@editor",
|
|
"@critical"
|
|
],
|
|
"timeout": 15000,
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "editor/test-workflow-001"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should display node palette with categories",
|
|
"tags": [
|
|
"@editor",
|
|
"@nodes"
|
|
],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "editor/test-workflow-001"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should have toolbar buttons in editor",
|
|
"tags": [
|
|
"@editor",
|
|
"@toolbar"
|
|
],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "editor/test-workflow-001"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should display workflow name in title bar",
|
|
"tags": [
|
|
"@editor",
|
|
"@ui"
|
|
],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "editor/test-workflow-001"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should allow interacting with node palette",
|
|
"tags": [
|
|
"@editor",
|
|
"@interaction"
|
|
],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "editor/test-workflow-001"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should display zoom controls",
|
|
"tags": [
|
|
"@editor",
|
|
"@controls"
|
|
],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "editor/test-workflow-001"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should persist workflow on save",
|
|
"tags": [
|
|
"@editor",
|
|
"@save"
|
|
],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "editor/test-workflow-001"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |