google / mesop

Build delightful web apps quickly in Python
https://google.github.io/mesop/
Apache License 2.0
4.6k stars 212 forks source link

Create a way for Mesop app developers to write tests #297

Open wwwillchen opened 1 month ago

wwwillchen commented 1 month ago

Although we use Playwright internally for framework development, there isn't an easy way to write tests for Mesop apps today.

richard-to commented 1 month ago

I think app developers can just use Playwright. Seems like it should be a similar set up. Just the command would be different.

Or are you suggesting that we should have other levels of testing support for Mesop apps?

wwwillchen commented 1 month ago

That's fair, outside of Google, using Playwright (or any other testing tool) works. I think having a small example (e.g. in demo) + brief docs on it would be good enough.

I was thinking more about within Google, it's not easy to run Playwright tests, particularly with the rest of internal Google infra, but let's chat about that some more offline since it's specific to Google.