aiidalab / aiidalab-widgets-base

Reusable widgets for AiiDAlab applications
MIT License
7 stars 17 forks source link

Consider switching from Selenium to Playwright for UI tests #524

Open danielhollas opened 12 months ago

danielhollas commented 12 months ago

Playwright is a new hotness for browser UI testing from Microsoft. It supposedly promises a couple of exciting things.

  1. Generally faster execution
  2. Native support for all major browsers
  3. Good documentation
  4. Test generator (this one is :exploding_head: )
  5. pytest integration
  6. Tools for debugging failed tests https://playwright.dev/docs/trace-viewer-intro

I plan to try it out in my app and report back here.

Edit: blog post about how to get started with playwright and pytest https://til.simonwillison.net/pytest/playwright-pytest