Skip to content

Refactor E2E tests initialization - #270

Merged
fluiddot merged 6 commits into
trunkfrom
update/refactor-e2e-tests-initialization
Jun 19, 2024
Merged

Refactor E2E tests initialization#270
fluiddot merged 6 commits into
trunkfrom
update/refactor-e2e-tests-initialization

Conversation

@fluiddot

@fluiddot fluiddot commented Jun 18, 2024

Copy link
Copy Markdown
Contributor

Related to #258, as it can help address some issues spotted on Windows.

Proposed Changes

  • Before this change, the app ran by the E2E tests used local data which can interfere with the test logic. To avoid this and run E2E tests in isolation, we override the path functions to point to a temporal folder.
  • The before/after logic of the E2E tests has been reduced and simplified, as of now all tests start from a clean slate.

Testing Instructions

CI

  • Observe that all CI jobs pass.

Local

  • Run command npm run package.
  • Run command npm run e2e.
  • Observe that all E2E tests pass.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@fluiddot
fluiddot requested review from a team June 18, 2024 18:05
@fluiddot fluiddot self-assigned this Jun 18, 2024
@fluiddot
fluiddot force-pushed the update/refactor-e2e-tests-initialization branch from 8a9a4f5 to 3f7758f Compare June 18, 2024 18:07

@dcalhoun dcalhoun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A great improvement for test stability. Well done! 👏🏻

Comment thread e2e/sites.test.ts Outdated
@fluiddot
fluiddot merged commit 7e3c4e4 into trunk Jun 19, 2024
@fluiddot
fluiddot deleted the update/refactor-e2e-tests-initialization branch June 19, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants