You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is to request addition of Playwright component testing to svelte-add to make set-up easier and better integrated with Svelte apps than the default init scripts provided by Playwright.
There're still decisions to be made and some related discussion here as noted by Ben McCann: sveltejs/kit#5285. The takeaway I had from reviewing the linked issue is that there are trade-offs on using Playwright for component testing and, as a result, it may not be the default in create-svelte but more of an add-on functionality—which it may make sense never to show as an option to keep project scaffolding simple.
https://youtu.be/-GKRH0KQ_j0 is a Svelte Sirens presentation which shows how to component test with Cypress. After a little trial and error with Playwright Component Testing I can see why they call it experimental as it's a bit painful to get a component mounted at the current time. Learned about the video here from the following very helpful tutorial which covers Playwright setup for Svelte and provides additional component testing resources: https://davipon.hashnode.dev/test-svelte-component-using-vitest-playwright
The text was updated successfully, but these errors were encountered:
vhscom
changed the title
Playwright Component Testing
Component Testing Add-On
Aug 10, 2022
This issue is to request addition of Playwright component testing to
svelte-add
to make set-up easier and better integrated with Svelte apps than the default init scripts provided by Playwright.There're still decisions to be made and some related discussion here as noted by Ben McCann:
sveltejs/kit#5285. The takeaway I had from reviewing the linked issue is that there are trade-offs on using Playwright for component testing and, as a result, it may not be the default in
create-svelte
but more of an add-on functionality—which it may make sense never to show as an option to keep project scaffolding simple.And here's an example from the Svelte dev who made the very awesome meta tags component:
https://github.com/oekazuma/playwright-sveltekit-component-testing
EDIT:
https://youtu.be/-GKRH0KQ_j0 is a Svelte Sirens presentation which shows how to component test with Cypress. After a little trial and error with Playwright Component Testing I can see why they call it experimental as it's a bit painful to get a component mounted at the current time. Learned about the video here from the following very helpful tutorial which covers Playwright setup for Svelte and provides additional component testing resources: https://davipon.hashnode.dev/test-svelte-component-using-vitest-playwright
The text was updated successfully, but these errors were encountered: