kammer/e2e/specs/flows/scan-and-action.spec.ts
Christopher Mühl 307ef24b78 test: E2E test suite + handoff documentation
50 Playwright E2E tests across 13 spec files covering all routes and
user flows (items CRUD, check-out/in, locations, labels, scanning,
search/filter). Uses vitest as runner with playwright-core for browser
automation (bun-compatible alternative to @playwright/test).

Includes Gherkin .feature files as living documentation, test support
infrastructure (IDB seeding, item factories, assertion helpers, layout
measurement), and HANDOFF.md covering project state, deployment, and
open design decisions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 20:53:08 +01:00

21 lines
652 B
TypeScript

/**
* @feature Scan and Action Flow
* @see e2e/features/flows/scan-and-action.feature
*/
import { describe, test } from 'vitest';
import { setupBrowser } from '../../support/browser';
import { waitForAppReady } from '../../support/seed';
import { expectVisible } from '../../support/expect';
const { getPage } = setupBrowser();
describe('Scan and Action Flow', () => {
test('scan page shows scanner controls', async () => {
const page = getPage();
await page.goto('/scan');
await waitForAppReady(page);
await expectVisible(page.getByText('Scan Barcode'));
await expectVisible(page.getByText('Point your camera'));
});
});