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.
The account page
Section titled “The account page”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 |
Changing the display name
Section titled “Changing the display name”Playwright: e2e/account.spec.ts
| Scenario | Tests |
|---|---|
| Saving a new name | Vitest src/features/account/AccountPage.test.tsxPlaywright e2e/account.spec.ts |
| An empty new name is not saved | Vitest src/features/account/AccountPage.test.tsxPlaywright e2e/account.spec.ts |
| Cancelling keeps the old name | Vitest src/features/account/AccountPage.test.tsx |
Choosing the language on the account page
Section titled “Choosing the language on the account page”Playwright: e2e/account.spec.ts
| Scenario | Tests |
|---|---|
| Switching from Finnish to Swedish | Vitest src/features/account/account.server.test.tsPlaywright 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.tsPlaywright e2e/account.spec.ts |