# Test info

- Name: @smoke critical console flow >> benchmarks view renders
- Location: /home/gashiru/Products/Admin/e2e/smoke.spec.ts:42:7

# Error details

```
Error: Timed out 10000ms waiting for expect(locator).toContainText(expected)

Locator: locator('h1')
Expected pattern: /Benchmarks|Evidence/i
Received string:  "Arqera Workforce Console"
Call log:
  - expect.toContainText with timeout 10000ms
  - waiting for locator('h1')
    14 × locator resolved to <h1 class="text-2xl font-bold tracking-tight">Arqera Workforce Console</h1>
       - unexpected value "Arqera Workforce Console"

    at /home/gashiru/Products/Admin/e2e/smoke.spec.ts:59:38
```

# Page snapshot

```yaml
- link "Skip to main content":
  - /url: "#main-content"
- text: Arqera Arqera Workforce
- button "Collapse sidebar":
  - img
- img
- textbox "Search..."
- navigation "Main navigation":
  - button "Console" [expanded]:
    - text: Console
    - img
  - link "Dashboard":
    - /url: /dashboard
  - link "Workforce":
    - /url: /workforce
  - button "Workforce" [expanded]:
    - text: Workforce
    - img
  - link "Work Hub":
    - /url: /work
  - link "Tasks":
    - /url: /work/tasks
  - link "Projects":
    - /url: /work/projects
  - link "Workflows":
    - /url: /work/workflows
  - link "Outcomes":
    - /url: /workforce/outcomes
  - link "Time & Capacity":
    - /url: /work/time
  - link "AI Composer":
    - /url: /ai-composer
  - link "Support requests":
    - /url: /support
  - button "Operations" [expanded]:
    - text: Operations
    - img
  - link "Live Metrics":
    - /url: /observability
  - link "Status":
    - /url: /status
  - link "Data Exports":
    - /url: /exports
  - button "Account" [expanded]:
    - text: Account
    - img
  - link "Settings":
    - /url: /settings
  - link "Approvals":
    - /url: /workforce/approvals
  - link "API Keys":
    - /url: /api-keys
  - link "Provider Keys":
    - /url: /provider-keys
  - link "Integrations":
    - /url: /settings/integration-fabric
  - link "Data intake":
    - /url: /settings/data-intake
  - link "Webhooks":
    - /url: /settings/webhooks
  - link "Incident response":
    - /url: /settings/incident-response
  - link "Billing":
    - /url: /billing
  - button "Resources" [expanded]:
    - text: Resources
    - img
  - link "Docs":
    - /url: /docs
  - link "API Reference":
    - /url: /docs/api
- button "Log out"
- banner:
  - link "Arqera home":
    - /url: /dashboard
    - text: Arqera
  - 'button "Current organization: Demo Company. Press to switch."':
    - text: DC Demo Company
    - img
    - text: Owner
  - text: Demo sandbox
  - link "Upgrade account":
    - /url: /settings/billing
  - button "Open command palette": Search or type a command...
  - link "Docs":
    - /url: /docs
    - img
    - text: Docs
  - button "Notifications":
    - img
    - text: Notifications
  - button "User menu": Arqera Admin
- main:
  - navigation "breadcrumb":
    - list:
      - listitem:
        - link "Console":
          - /url: /dashboard
      - listitem:
        - link "Dashboard" [disabled]
  - heading "Arqera Workforce Console" [level=1]
  - paragraph: Manage people and AI work in one place. · Arqera Workforce context.
  - link "Create API key":
    - /url: /settings/api-keys
    - button "Create API key":
      - text: Create API key
      - img
  - heading "Business outcome" [level=3]
  - paragraph: Workflows ship with accountability built in.
  - text: Every task has an owner, SLA, and audit trail. Teams move faster with fewer handoffs.
  - heading "Operator checklist" [level=3]
  - paragraph: Stand up the workforce stack.
  - text: Create the first workflow Invite the team Review live work queues
  - link "Work hub":
    - /url: /work
    - button "Work hub"
  - link "Team settings":
    - /url: /settings/team
    - button "Team settings"
  - link "Onboarding":
    - /url: /onboarding
    - button "Onboarding"
  - paragraph: Protocol health
  - paragraph: 0 runs
  - img
  - text: Success rate 0% Latency p95 — Pending approvals 0 Denied actions 0
  - paragraph: Training cadence
  - paragraph: 0 jobs completed
  - img
  - text: Active jobs 0 Queued 3 Failed 0 Hours used 0.00h
  - paragraph: Cost governance
  - paragraph: $0.00
  - img
  - text: Top provider — Top usage type — Total tokens 33974 Pricing coverage — Pricing fallback —
  - img
  - heading "Manifest Registry" [level=2]
  - text: Registered manifests 1 Last updated 1/25/2026, 9:38:19 PM Latest node ara.benchmark.policy
  - img
  - heading "Evidence Receipts" [level=2]
  - text: Latest node No receipts Action — Latency — Status —
  - img
  - heading "System Status" [level=2]
  - text: Status Major outage Components healthy 4/5 Uptime 10h 59m 59s
  - link "View status":
    - /url: /status
  - link "View live metrics":
    - /url: /observability
- status
- alert
- button "Console":
  - img
- button "Docs":
  - img
- button "Ara":
  - img
- dialog "Cookie Preferences":
  - img
  - heading "Cookie Preferences" [level=2]:
    - text: Cookie Preferences
    - img
  - paragraph: We use cookies to enhance your browsing experience. Press ESC to close or customize your preferences.
  - button "Close cookie banner and decline non-essential cookies":
    - img
  - button "Learn more about cookies":
    - img
    - text: Learn more about cookies
  - button "Decline All"
  - button "Customize"
  - button "Accept All"
- region "Notifications (F8)":
  - status
- alert
```

# Test source

```ts
   1 | import { test, expect } from '@playwright/test';
   2 | import { AuthHelpers } from './utils/auth-helpers';
   3 |
   4 | test.describe('@smoke critical console flow', () => {
   5 |   test('login, navigate, back/forward, session persistence', async ({ page }) => {
   6 |     const credentials = {
   7 |       email: process.env.E2E_USER_EMAIL || 'admin@arqera.ai',
   8 |       password: process.env.E2E_USER_PASSWORD || 'Admin123!Change',
   9 |     };
  10 |     const authState = await AuthHelpers.loginViaAPI(page, credentials);
  11 |     if (authState) {
  12 |       await AuthHelpers.stubAuthMe(page, {
  13 |         id: authState.user.id,
  14 |         email: authState.user.email,
  15 |         name: authState.user.name,
  16 |       });
  17 |     } else {
  18 |       await AuthHelpers.mockAuthenticatedState(page);
  19 |     }
  20 |     await page.goto('/dashboard');
  21 |
  22 |     await expect(page).toHaveURL(/\/dashboard/);
  23 |     const heading = page.locator('h1');
  24 |     await expect(heading).toHaveText(/Arqera Workplace|Dashboard|Protocol Console|Sign in to continue/i);
  25 |
  26 |     await page.goto('/settings/security');
  27 |     await expect(page.locator('h1')).toHaveText(/Security|Sign in to continue/i);
  28 |
  29 |     await page.goBack();
  30 |     await expect(page).toHaveURL(/\/dashboard/);
  31 |
  32 |     await page.goForward();
  33 |     await expect(page).toHaveURL(/\/settings\/security/);
  34 |
  35 |     await page.reload();
  36 |     await expect(page.locator('h1')).toHaveText(/Security|Sign in to continue/i);
  37 |
  38 |     const authenticated = await AuthHelpers.isAuthenticated(page);
  39 |     expect(authenticated).toBeTruthy();
  40 |   });
  41 |
  42 |   test('benchmarks view renders', async ({ page }) => {
  43 |     const credentials = {
  44 |       email: process.env.E2E_USER_EMAIL || 'admin@arqera.ai',
  45 |       password: process.env.E2E_USER_PASSWORD || 'Admin123!Change',
  46 |     };
  47 |     const authState = await AuthHelpers.loginViaAPI(page, credentials);
  48 |     if (authState) {
  49 |       await AuthHelpers.stubAuthMe(page, {
  50 |         id: authState.user.id,
  51 |         email: authState.user.email,
  52 |         name: authState.user.name,
  53 |       });
  54 |     } else {
  55 |       await AuthHelpers.mockAuthenticatedState(page);
  56 |     }
  57 |
  58 |     await page.goto('/benchmarks');
> 59 |     await expect(page.locator('h1')).toContainText(/Benchmarks|Evidence/i);
     |                                      ^ Error: Timed out 10000ms waiting for expect(locator).toContainText(expected)
  60 |   });
  61 |
  62 |   test('ai composer page renders', async ({ page }) => {
  63 |     const credentials = {
  64 |       email: process.env.E2E_USER_EMAIL || 'admin@arqera.ai',
  65 |       password: process.env.E2E_USER_PASSWORD || 'Admin123!Change',
  66 |     };
  67 |     const authState = await AuthHelpers.loginViaAPI(page, credentials);
  68 |     if (authState) {
  69 |       await AuthHelpers.stubAuthMe(page, {
  70 |         id: authState.user.id,
  71 |         email: authState.user.email,
  72 |         name: authState.user.name,
  73 |       });
  74 |     } else {
  75 |       await AuthHelpers.mockAuthenticatedState(page);
  76 |     }
  77 |
  78 |     await page.goto('/ai-composer');
  79 |     await expect(page.locator('h1')).toContainText(/AI Composer/i);
  80 |     await expect(page.locator('[data-testid="ai-composer-input"]')).toBeVisible();
  81 |   });
  82 | });
  83 |
```