Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more e2e tests #106

Merged
merged 14 commits into from
Nov 6, 2023
Merged

Add more e2e tests #106

merged 14 commits into from
Nov 6, 2023

Conversation

RyanClementsHax
Copy link
Owner

@RyanClementsHax RyanClementsHax commented Oct 30, 2023

  • add more e2e tests
  • update look of test repo
  • refactor test repo to work with the concept of a "theme node" to allow for tests with multiple themes to be written
  • reuse tmp dirs between playwright projects for performance boost
  • retry start command on port assignment failures

- refactor out logic of interacting with a particular themed node on the test repo page into its own class in preparation for tests that test multiple themes simultaneously
- setup test repo to allow for easy local development by adding a dummy test config in repo
- make the test repo look prettier
@stackblitz
Copy link

stackblitz bot commented Oct 30, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

- write a test for multiple themes enabled at the same time
- refactor test repo to look nicer
- refactor TestNodeImpl to scope its queries to the single node
…urged

- put classes generated in tests in the tailwind config's safelist to prevent purging
- remove emoji from test repo as that was causing some flakiness in tests
- since there isn't any browser specific code in tests, tmp dirs can be reused to avoid rebuilding the test repo again
- write a test for what should happen if multiple themes enabled on the same node
- write a test asserting a theme can't be enabled using the theme name as a class if selectors is set to []
- make temp dirs easier to read
- allow for multiple servers to be started per test
@RyanClementsHax
Copy link
Owner Author

https://github.com/lint-staged/lint-staged/pull/1117/files consider using pidTree to kill sub processes

- before, processes were being leaked every run because only the process that spawned the commands was killed, not the actual processes for the commands
- now, this kills all of the processes
- write e2e test for nested theme overriding
- update test repo to allow for nested theme nodes
- update snapshots
@RyanClementsHax RyanClementsHax merged commit dff8ab2 into main Nov 6, 2023
4 checks passed
@RyanClementsHax RyanClementsHax deleted the playwright branch November 6, 2023 14:45
Copy link

🎉 This PR is included in version 3.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

1 participant