{ "$schema": "https://metabuilder.dev/schemas/package-playwright.schema.json", "package": "workflowui-workflows", "version": "1.0.0", "description": "WorkflowUI Workflows page tests - FIXED with screenshot analysis", "tests": [ { "name": "should display workflows list with search bar", "tags": [ "@workflows", "@critical" ], "timeout": 10000, "steps": [ { "description": "Navigate to workflows", "action": "navigate", "url": "workflows" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "description": "Verify search input exists", "action": "expect", "placeholder": "Search workflows...", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "should display Status and Category filters", "tags": [ "@workflows", "@filters" ], "steps": [ { "action": "navigate", "url": "workflows" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 1000 }, { "action": "expect", "selector": "body", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "should filter workflows by search query", "tags": [ "@workflows", "@search" ], "timeout": 15000, "steps": [ { "action": "navigate", "url": "workflows" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "description": "Enter search query", "action": "fill", "placeholder": "Search workflows...", "value": "test" }, { "action": "wait", "timeout": 500 }, { "description": "Results should update", "action": "expect", "selector": "body", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "should navigate to favorites via sidebar", "tags": [ "@workflows", "@favorites" ], "steps": [ { "action": "navigate", "url": "workflows" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 500 }, { "action": "click", "testId": "nav-link-favorites" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 500 }, { "action": "expect", "selector": "body", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "should navigate to recent via sidebar", "tags": [ "@workflows", "@recent" ], "steps": [ { "action": "navigate", "url": "workflows" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 500 }, { "action": "click", "testId": "nav-link-recent" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 500 }, { "action": "expect", "selector": "body", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "should display empty state with create button", "tags": [ "@workflows", "@empty-state" ], "steps": [ { "action": "navigate", "url": "workflows" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 1000 }, { "description": "Check for empty state message", "action": "expect", "selector": "text=No workflows yet", "assertion": { "matcher": "toBeVisible" } }, { "description": "Check for create workflow button", "action": "expect", "role": "button", "text": "Create Your First Workflow", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "favorites page should load correctly", "tags": [ "@workflows", "@favorites" ], "steps": [ { "action": "navigate", "url": "workflows/favorites" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 500 }, { "action": "expect", "testId": "nav-link-favorites", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "recent page should load correctly", "tags": [ "@workflows", "@recent" ], "steps": [ { "action": "navigate", "url": "workflows/recent" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 500 }, { "action": "expect", "testId": "nav-link-recent", "assertion": { "matcher": "toBeVisible" } } ] }, { "name": "should create workflow when clicking create button", "tags": [ "@workflows", "@crud" ], "timeout": 15000, "steps": [ { "action": "navigate", "url": "workflows" }, { "action": "waitForLoadState", "state": "domcontentloaded" }, { "action": "wait", "timeout": 1000 }, { "action": "click", "testId": "button-new-workflow" }, { "action": "wait", "timeout": 2000 }, { "action": "expect", "selector": "body", "assertion": { "matcher": "toBeVisible" } } ] } ] }