Skip to content

account

3 requirements and 8 scenarios in openspec/specs/account/spec.md. A scenario’s test is test('<scenario>') inside describe('<requirement>'), in Vitest or Playwright.

Playwright: e2e/account.spec.ts

Scenario Tests
Opening the account page from the flats list Playwright e2e/account.spec.ts
The account page needs a signed-in user Playwright e2e/account.spec.ts

Playwright: e2e/account.spec.ts

Scenario Tests
Saving a new name Vitest src/features/account/AccountPage.test.tsx
Playwright e2e/account.spec.ts
An empty new name is not saved Vitest src/features/account/AccountPage.test.tsx
Playwright e2e/account.spec.ts
Cancelling keeps the old name Vitest src/features/account/AccountPage.test.tsx

Playwright: e2e/account.spec.ts

Scenario Tests
Switching from Finnish to Swedish Vitest src/features/account/account.server.test.ts
Playwright e2e/account.spec.ts
The new language follows the user to another device Playwright e2e/account.spec.ts
Switching back to Finnish Vitest src/features/account/account.server.test.ts
Playwright e2e/account.spec.ts