Error: expect(locator).toBeVisible() failed
Locator: getByRole('banner')
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for getByRole('banner')
at src/layouts/AppLayout.steps.ts:11
9 |
10 | Then('I should see the top bar with logo and user menu', async ({ page }) => {
> 11 | await expect(page.getByRole('banner')).toBeVisible()
| ^
12 | await expect(page.getByAltText('Agent Platform')).toBeVisible()
13 | })
14 |
at Object.<anonymous> (/workspace/niko/agent-platform/frontend/src/layouts/AppLayout.steps.ts:11:42)
at /workspace/node_modules/playwright-bdd/src/runtime/bddStepInvoker.ts:58:48
at BddStepInvoker.runWithAfterStepHooks (/workspace/node_modules/playwright-bdd/src/runtime/bddStepInvoker.ts:82:22)
at /workspace/node_modules/playwright-bdd/src/runtime/bddStepInvoker.ts:57:19
at BddStepInvoker.invoke (/workspace/node_modules/playwright-bdd/src/runtime/bddStepInvoker.ts:55:5)
at /workspace/niko/agent-platform/frontend/.features-gen/src/layouts/AppLayout.feature.spec.js:12:5