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>
25 lines
803 B
Gherkin
25 lines
803 B
Gherkin
Feature: Locations
|
|
As a user I want to browse locations and see which items are at each place.
|
|
|
|
Background:
|
|
Given I am on the "locations" page
|
|
|
|
Scenario: Location tree shows default locations
|
|
Then the page title should be "Places"
|
|
And I should see "Home"
|
|
|
|
Scenario: Placeholder shown when no location selected
|
|
Then I should see "Select a location to view items"
|
|
|
|
Scenario: Selecting a location shows its items
|
|
Given there is an item "Blender" at location "kueche"
|
|
And I am on the "locations" page
|
|
When I click "Küche"
|
|
Then I should see "Blender"
|
|
|
|
Scenario: Empty location shows placeholder
|
|
When I click "Keller"
|
|
Then I should see "No items here"
|
|
|
|
Scenario: Locations visual appearance
|
|
Then the page should match the screenshot "locations-page"
|