chore: Add Playwright tests scaffolding and initial tests#551
chore: Add Playwright tests scaffolding and initial tests#551lsr-explore wants to merge 5 commits into
Conversation
✅ Deploy Preview for accessiblecommunity ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
721ff01 to
cf0e3df
Compare
|
@lsr-explore : Were you running these inside of our Docker container? When I try to install playwright, I get the following error: There is a playwright docker container, but it doesn't seem like you used that? |
brian-montgomery
left a comment
There was a problem hiding this comment.
Thanks, Laurie. This looks great. Thank you for converting it over to docker.
The easiest way we can fix the node_modules problem you note below is to mount a volume in docker for the node_modules and have them stored there. The downside is that the IDE must mount the docker volume to gain access to the packages installed there, which can be a pain.
I don't know how many people switch back and forth, so that may not be an issue.
Fixes
Add Playwright test scaffolding and initial tests
Tests help prevent regressions and can identify accessibility issues.
What is in this PR
Note
If the team decides to proceed with this change, the Playwright docs should be reviewed for what should be included in the playwright config file.
How to run playwright
run without the us
run with the ui
References
Playwright
https://playwright.dev/
https://www.npmjs.com/package/playwright
@axe-core/playwright
https://www.npmjs.com/package/@axe-core/playwright
Astro docs - Testing
https://docs.astro.build/en/guides/testing/