16 Commits

Author SHA1 Message Date
Bernd Schoolmann
688f37d119 Fix shared e2e desktop tests after reload on lock (#24673) 2026-11-11 22:35:14 +09:00
Bernd Schoolmann
3a689e3dba Fix e2e failures in the usdev run (#24373) 2026-11-09 12:12:00 +00:00
Oscar Hinton
e3d0bc5709 Add SeederApi seeding to the e2e suite (#24381)
* Add SeederApi seeding to the e2e suite

Ports the seeder framework from the playwright branch into e2e/, updated
for the current SeederApi: basic auth, the { urls } emergency access
invite response, and the full SingleUserScene request and result.

Each test gets a play whose id tags what it seeds and what its pages
create, and which is deleted when the test ends. Seeding tests are
skipped when no SeederApi account is configured.

* Harden e2e seeding configuration and cleanup

- Skip seeding tests against a deployed vault while the SeederApi is
  local, since it seeds a database that vault never reads.
- Read E2E_SEEDER_USERNAME and E2E_SEEDER_PASSWORD as a pair, failing
  on a partial set, and resolve the seeder URL the same way whatever
  supplied the account. Empty values count as unset.
- Set up `play` before the browser context so the page closes before
  its data is deleted.
- Assert the seeded user is the one signed in, through the automation
  driver's lock capability.
- Document that client-created data is only cleaned up when Api and
  Identity have play-id tracking enabled.

* Use Playwright's request client and routing for e2e seeding

- Call the SeederApi through an APIRequestContext opened per play, so
  credentials are read once, calls appear in traces, and an unreachable
  SeederApi says so.
- Tag requests to the vault with the play id through context routing
  instead of patching fetch, which also covers XHR.
- Record video for newPage contexts, which the config's video option
  does not reach.
- Simplify Play.mangle.

* Say up front when seeding e2e tests skip and when they fail
2026-11-09 09:04:11 +01:00
Bernd Schoolmann
ab430095d0 [PM-45736] Align shared unlock e2e setup helpers (#24497) 2026-11-06 11:32:42 +00:00
Bernd Schoolmann
ab714b462b [PM-45736] Add shared unlock e2e tests (#24149) 2026-11-06 09:56:24 +09:00
Bernd Schoolmann
17e117b0a0 Drop stale button note from biometric e2e (#24351)
The lock helper does not wait for the unlock button; the test does.
2026-11-02 19:16:49 +09:00
Bernd Schoolmann
5933f0952c Wait for active account before dropping locked (#24046)
Switching to a locked account makes the background switch accounts,
then send "locked". That message can reach the popup before the
popup's own active account updates, so it was dropped and the popup
stayed on the account switcher instead of showing the lock screen.

Popups surviving a lock (now that an ephemeral PIN blocks the reload)
made this easy to hit. Wait briefly for the user to become active,
and drop the e2e workaround that reopened the popup.
2026-11-02 19:16:48 +09:00
Bernd Schoolmann
4a34a5c6a5 Add e2e tests for ephemeral PIN across lock all (#24045)
Covers browser and desktop: an inactive account with an ephemeral
PIN must still unlock with it after locking all accounts. Adds a
second test account (local-web-2), helpers for account switching and
PIN setup, and test ids for the lock screen's PIN and master password
inputs and unlock buttons.
2026-11-02 19:16:48 +09:00
Bernd Schoolmann
495a1c3db2 Reload desktop renderer on lock in dev builds (#24044)
Dev builds skipped the process reload on lock. Dev mode should
faithfully represent real behavior; with the skip, lock behaved
differently than in production and reload bugs went unnoticed in
development and e2e tests.

The reload crashes the renderer first, which Playwright cannot
follow, so the e2e fixture reconnects over DevTools afterwards.
2026-11-02 16:58:00 +09:00
Bernd Schoolmann
89bc71ebe5 [PM-46055] test: Let Playwright trace the browser fixture's context (#24316) 2026-11-02 06:42:16 +00:00
Bernd Schoolmann
e415aff4b4 Dismiss the new vault look dialog in e2e tests (#24317) 2026-11-02 15:16:22 +09:00
Bernd Schoolmann
14b867bf3f [PM-46050] ci: Run e2e suites against usdev nightly (#24312) 2026-11-02 14:20:19 +09:00
renovate[bot]
dfcc1992fd [deps]: Update @playwright/test to v1.64.1 (#24143)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bernd Schoolmann <bernd@schoolmann.dev>
2026-10-26 14:44:06 +09:00
Bernd Schoolmann
c5ef5c362e test: Add passkey e2e tests (#23480) 2026-10-21 09:17:20 +00:00
Bernd Schoolmann
03c436272f test: Add desktop biometric unlock e2e test (#23479) 2026-10-20 23:01:59 +09:00
Bernd Schoolmann
3637a20c93 feat(tests): add basic key-management e2e test suite (#23477) 2026-10-14 16:07:02 +00:00