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>
23 lines
670 B
Gherkin
23 lines
670 B
Gherkin
Feature: Labels
|
|
As a user I want to generate ID batches and print label sheets.
|
|
|
|
Background:
|
|
Given I am on the "labels" page
|
|
|
|
Scenario: Label page shows stats
|
|
Then the page title should be "Labels"
|
|
And I should see "Available IDs"
|
|
And I should see "Assigned Items"
|
|
|
|
Scenario: Batch size options are available
|
|
Then I should see "10 IDs"
|
|
And I should see "50 IDs (1 sheet)"
|
|
|
|
Scenario: Generate button is present
|
|
Then I should see "Generate"
|
|
|
|
Scenario: Print button disabled when no IDs
|
|
Then I should see "Download PDF (0 labels)"
|
|
|
|
Scenario: Labels visual appearance
|
|
Then the page should match the screenshot "labels-page"
|