Skip to content

Setup vitest and playwright testing#2453

Draft
tylercchase wants to merge 33 commits intotestfrom
tyler/vitest
Draft

Setup vitest and playwright testing#2453
tylercchase wants to merge 33 commits intotestfrom
tyler/vitest

Conversation

@tylercchase
Copy link
Member

Summary

  • Updates angular to use the vitest testing framework for component testing.
  • Updates our e2e testing library to playwright, as well as adding some initial example tests for documentation of how to use playwright. Converting our test suite to playwright will be part of a larger effort. As part of the example, setup an authentication workflow so that we can have tests that use features that require user profiles.
    • For now I'm wanting to focus more on getting items converted from our previous testing solution via the test generator, and then finding wins for optimizing / making tests more resilient when we have more tests in our codebase.
  • Setup Github actions for both playwright and vitest
    • I want to revisit these in the future to setup testing multiple operating systems at once, but that will require a separate effort

Tests & Build

  • npm run lint passes
  • npm test passes
  • ng e2e passes
  • npm run build succeeds

Notes

  • This also gets rid of some of the old stuff that was living around the e2e folder from back at the start of the project.

This shows an example of how to get info form a material input. The automated tool doesn't work for them out of the box.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants