Skip to content

[test] e2e screenshots capture the wizard, not the scenario-relevant view #266

Description

@pmaxhogan

Found by eyeballing the e2e-artifacts bundle from the v2.9.0 release gate (run 30806317168): nearly every scenario's screenshot shows the setup wizard's first screen with a 'Backup started' toast, because scenarios drive the app via IPC and the webview never navigates - the capture helper photographs whatever the window happens to show.

The suite's actual assertions (IPC status, error codes, byte-compares) are unaffected; this is purely about the artifacts' value as visual evidence. E.g. dest-disk-full's shot should show the Activity page with the quota error row, s3-network-cut's should show the pause/status banner, sftp-round-trip's should show the synced source state.

Fix shape: before each capture, have the screenshot helper navigate the webview to the scenario-relevant route (router push via the existing window.__TAURI_INTERNALS__-driven session, e.g. /activity for error rows, /settings/accounts after account creation) and allow a settle beat. Cheap - one helper change in crates/driven-e2e plus a per-callsite route hint.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testTesting work

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions