docs
docs copied to clipboard
Add initial docs and example on testing with Playwright
What kind of changes does this PR include?
- New or updated content
Description
This begins to add a testing section for information on how to add Playwright and a basic example test.
Deploy Preview for astro-docs-2 ready!
Name | Link |
---|---|
Latest commit | 2c61f346afef03137d33a6a0f2b071d689b8c9b3 |
Latest deploy log | https://app.netlify.com/sites/astro-docs-2/deploys/634dd5b07abe5600097bc633 |
Deploy Preview | https://deploy-preview-1745--astro-docs-2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
Thanks for this, @chuckcarpenter and @tony-sull for jumping in with the assist! So excited to have some testing stuff here, and I think our community will really value and benefit from it! 🥳
I'll more closely review it tomorrow, but initially, if Playwright is to be one of several languages, then we're going to want to have an introductory paragraph before the Playwright header with some generic testing info, how testing works in Astro, WHAT you can test in Astro.. (testing your JS, testing what components render...), some popular testing tools that people use/have used in Astro. If either of you feel comfortable taking a stab that that, great! If not, I'll get to it tomorrow. You can look at some of the other pages to get a sense of the kind of "generic IN ASTRO..." kind of intros we usually have.
We should have something so that it's clear that this isn't the only way to test in Astro, and something that will include some popular words people might search for. So, even if we don't have any material on Jest, if someone searches for it (that maybe being the only testing tool they know?) then they'll end up here, with some info about how they CAN test, even if it's not what they originally expected.
Committed suggestion, so back to you @tony-sull