kammer/e2e/features/flows/check-out-check-in.feature
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

19 lines
619 B
Gherkin

Feature: Check Out / Check In Flow
As a user I want to check items in and out to track custody.
Scenario: Check out an item
Given there is an item "Drill" in category "Tools"
And I am on the "items" page
When I click "Drill"
Then I should see "Home"
When I click the "Check Out" button
And I select "lent" from "Reason"
And I click the "Confirm" button
Then I should see "Out"
Scenario: Check in a checked-out item
Given there is a checked-out item "Drill"
And I am on the "items" page
When I click "Drill"
Then I should see "Out"
And I should see "Check In"