-
Notifications
You must be signed in to change notification settings - Fork 38
feat: Playwright adder #518
Conversation
🦋 Changeset detectedLatest commit: e7ea45a The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
commit: |
I don't have a strong opinion either way. I think it doesn't matter too much either way when you only have one type of test there. If you were to have a second kind of test it would depend if you wanted the tests to live alongside each other in the same directory or have a directory per type. I could also see an approach like
That could make sense. @dummdidumm recently wrote some Svelte 5 testing docs and called them e2e there so it could align with that
Removing
Looks a little scrunched to me. Honestly, my solution to this would be to remove bootstrap and bulma |
yea, this is mainly to cover the confusing case for when you have both playwright and vitest installed
fair point! but at the moment, In its current form though, we should probably just rename it to
I think this would just be delaying the inevitable for just a tiny bit longer 😬 |
Ah, that's a good point. I see how that could be a bit confusing. Alright, you've convinced me 😄
Well there's always some point at which you can overflow. Getting rid of new lines also delays it for only so long as well. I still think it looks nicer with the extra spacing. If we get to a point where it's too untenable to keep adding to the main dialog I think we could potentially split it into multiple (example). |
|
Some further notes after testing:
Any reason this is still a draft? |
oops, that's supposed to be this: will tweak it
an oversight on my part, didn't notice that's generated. yea, it should be added to
it was a draft so that the questions could be addressed first before merging, but I just forgot to ready it up after :P |
This was a pretty straightforward adder to implement. The initial implementation is almost entirely pulled from the playwright template from
create-svelte.I do have some questions that we should answer before merging:
testsdirectory to be a bit too vague in name. Should we rename it toe2e? Alternatively,integrationcould work tootest:e2eas well? It's certainly shorter thantest:integrationtestDirandtestMatchconfig props. They allowdemo.ts,demo.spec.ts, anddemo.test.tsto all be valid test files (so long as they reside in thetestsdir), which feels weird (demo.tsis really the odd one out).Should we have it only match on
.specand.testsuffixes instead? This would match the default behavior of Playwright, so we'd just have to removetestMatchfrom the configWhat do you think?