Skip to main content

← Account E2E Tests

account detail shows offline warning and hides settlement controls

Implementation

  • Spec: e2e/tests/account/account-offline.spec.ts
  • Helpers: e2e/helpers/account-flow.ts (bootstrapAccountDetail, setAppOffline), e2e/helpers/stub-online-endpoint.ts (stubOnlineEndpoint, failOnlineEndpoint)
  • Seed: server/ddbb/datacontent.jsonPLACEOPT.optionPayAccount = 1, PAYACCOUNT.name = E2E Pay Account

Automation (Playwright)

  1. Stub GET …/online as online during bootstrap; force navigator.onLine = true in init script (headless/container parity with other specs).
  2. Login → first place → side menu → [uppdataid="menu-placeaccounts-button"] → first [uppdataid="account-thumb-select"].
  3. Assert [uppdataid="account-view-offline"] hidden while online; after failing online route, assert offline warning visible and settle/pending list hidden (seed account may have zero pending tickets).

Flow