thetarnav / solid-devtools

Library of developer tools, reactivity debugger & Devtools Chrome extension for visualizing SolidJS reactivity graph
https://chrome.google.com/webstore/detail/solid-devtools/kmcfjchnmmaeeagadbhoofajiopoceel
MIT License
536 stars 21 forks source link

add E2E test setup #261

Closed azmy60 closed 10 months ago

azmy60 commented 1 year ago

Hopefully this is enough for a basic E2E test setup https://github.com/thetarnav/solid-devtools/issues/223. I've added just a couple of tests as well. Let me know if there are things that need to change or add. This is my first time setting up playwright and GitHub workflow :innocent:

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 359dfd38606b1e2888143d03c79ac064aa05e82f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages | Name | Type | | ------------------------- | ----- | | solid-devtools | Patch | | @solid-devtools/extension | Patch | | @solid-devtools/overlay | Patch |

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

azmy60 commented 1 year ago

I'm glad you like it! Setting up the devtools was the trickiest one since there was really no documentation about it, and I had to do the research from both playwright & puppeteer repo, it was quite trial and errors.

And I think it wouldn't be hard to have both overlay and the extension configs running. I'll update you once I finish.

thetarnav commented 1 year ago

I'm having some obscure errors while trying to run the tests locally. I have a feeling this is not gonna be fun debugging.. 😅

azmy60 commented 1 year ago

Yeah, I just noticed some of the tests are flaky after several runs. :disappointed:

azmy60 commented 1 year ago

@thetarnav I've added a little patch. I ran it 100 times and looked good in my local. Could you test it on your local again 😅? Hopefully it's fixed by now.

thetarnav commented 10 months ago

Ok I've tried this again, switched to linux in the meantime, and everything works great. Thank you again for helping me with this and sorry for the delay. Playwright looks like a really nice tool to use once it actually works 😊