Skip to content

test: use temporary user data dir for e2e tests#1960

Merged
kantord merged 1 commit intomainfrom
use-temp-user-data-dir
Apr 10, 2026
Merged

test: use temporary user data dir for e2e tests#1960
kantord merged 1 commit intomainfrom
use-temp-user-data-dir

Conversation

@kantord
Copy link
Copy Markdown
Member

@kantord kantord commented Apr 10, 2026

With this, end to end tests run in a temporary user data dir, instead of your global one. This improves test isolation for anything that depends on this path (namely, the sqlite db used for chat persistence for instance)

@kantord kantord marked this pull request as ready for review April 10, 2026 12:22
Copilot AI review requested due to automatic review settings April 10, 2026 12:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Playwright Electron E2E fixture to isolate Electron state per test run by launching the app with a temporary Chromium user data directory, reducing cross-test contamination.

Changes:

  • Create a unique temporary --user-data-dir for each E2E run.
  • Remove the temporary user data directory after the Electron app closes.

Comment thread e2e-tests/fixtures/electron.ts Outdated
@kantord kantord force-pushed the use-temp-user-data-dir branch from 3a7cd34 to 61dee03 Compare April 10, 2026 12:39
@kantord kantord requested a review from samuv April 10, 2026 12:52
Copy link
Copy Markdown
Collaborator

@samuv samuv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@kantord kantord merged commit 5034003 into main Apr 10, 2026
16 of 17 checks passed
@kantord kantord deleted the use-temp-user-data-dir branch April 10, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants