chatcraft.org
chatcraft.org copied to clipboard
Generate tutorial screenshots or screencasts using tests
This seems like it would enable us to kill 2 birds with one stone:
- UI test
- Produce screenshots for tutorials and videos
https://docs.cypress.io/guides/guides/screenshots-and-videos https://www.youtube.com/watch?v=hX9Br8QSYgc&t=391s
I'm a huge fan of Playwright for e2e and visual testing vs. cypress.
what's wrong with cypress here? Eg how can one be in favor of playwright
playwright is just a framework to control browser? cypress is much higher level
update: maybe i don't have playwright vs cypress right in my head
Actually I think I got it right. https://www.linkedin.com/pulse/comprehensive-comparison-cypress-playwright-vane-terziski/
I'm curious how you think about positioning of playwright vs cypress.
I've had to use both a bunch, and I have often run into limitations with Cypress that I managed to fix easily with Playwright (e.g., testing auth flows with many redirects).
I think I've just come to appreciate the deep tooling support (e.g., time-travel UI Mode), how it easily integrates with CI (e.g., easily record videos on failures in GitHub Actions), and how they run their open source project (e.g., videos per release).
if i understand it right, it basically it boils down to "once you hit a limit in cypress, you gotta switch tool", "playwright is low level to enough to let you do whatever"