monaco-tailwindcss icon indicating copy to clipboard operation
monaco-tailwindcss copied to clipboard

Write automated (behaviour/functional) tests?

Open mhsdesign opened this issue 3 years ago • 9 comments

mhsdesign avatar Apr 16 '22 11:04 mhsdesign

cypress looks cool

mhsdesign avatar Apr 16 '22 12:04 mhsdesign

I’ve used Cypress a little. It works pretty nicely. It should work nice with github actions and netlify

Lately I’ve also been hearing positive talk about Playwright.

If we find a good test setup for this, I’d like to use this in monaco-yaml (https://github.com/remcohaszing/monaco-yaml/issues/26)

remcohaszing avatar Apr 16 '22 15:04 remcohaszing

https://docs.cypress.io/guides/getting-started/installing-cypress#Windows-Subsystem-for-Linux cypress is not so cool for wsl2 which im developing on - so i will try this playwright stuff ^^

edit: playwright only works on ubuntu: Unsupported Linux distribution, only Ubuntu is supported! mimimimi debian me not amused

mhsdesign avatar Apr 16 '22 17:04 mhsdesign

https://github.com/microsoft/vscode/blob/e6d98a13fcd3bf928d0e755eaae873ac200a98bd/test/monaco/monaco.test.ts

ms officiall monaco smoke test... (with playwright)

mhsdesign avatar Apr 17 '22 07:04 mhsdesign

this screenshot functionality could come in handy: https://playwright.dev/docs/screenshots

mhsdesign avatar Jun 24 '22 22:06 mhsdesign

I started on building tests with playwright myself (for a project build on top of this), i will share that code when my tests are final ;) but i also found out that play-tailwind seems to start building tests with playwright: https://github.com/tailwindlabs/play.tailwindcss.com/tree/master/tests

mhsdesign avatar Sep 11 '22 08:09 mhsdesign

I created playwright-monaco to help testing Monaco editor integrations. See @mdx-js/monaco for an example.

remcohaszing avatar Mar 07 '23 20:03 remcohaszing

❤️

should have shown you my testing setup too ^^ (if you’re up to it we can have a call sometime :D)

mhsdesign avatar Mar 07 '23 20:03 mhsdesign

Sure! That could be fun :)

I sent you my Discord ID via Twitter DM. I don’t want to post that publicly.

remcohaszing avatar Mar 07 '23 21:03 remcohaszing