End to end testing comparison -- Cypress vs Playwright #6989
EvidentlyCube
started this conversation in
General
Replies: 2 comments 4 replies
-
I just had a look at the repo. Why do you need TypeScript. Is modern JS not good enough? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hi @EvidentlyCube thanks for the information. I hadn't come across Cypress until you mentioned it. Looking at the package.json it appears to use Electron as the test runner. It doesn't appear to have support for multiple different browser engines as Playwright does. I also find that I much prefer Playwright, probably because I've used Puppeteer for a number of years. I understand Playwright was founded by somebody who had done a lot of work on Puppeteer. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've actually wanted to also give Playwright a try so let's try again.
I wrote a tiny comparison of Cypress and Playwright using three test cases. You can check the code here: https://github.com/EvidentlyCube/tiddlywiki-e2e-comparison
My personal favorite is Playwright for the following reasons:
I have two main critiques for it tho:
awaits
Neither is a deal breaker for me though, a lot of complexity in Playwright can be hidden inside operations and for the rest you have a test which very clearly interacts with the page as a user would.
Old first post:
Just wanted to throw it out there -- I've started working on an end-to-end test suite for TW in Cypress mainly as a learning experience.
The repo is here:
https://github.com/EvidentlyCube/tiddlywiki-cypress-testshttps://github.com/EvidentlyCube/tiddlywiki-e2e-comparisonIt currently has two test cases - one for testing #6987 which I implemented the other day, and another one just doing something.
I don't have big plans for it - I'am sure to add a few more tests but I primarily wanted to get something done in Cypress.
Beta Was this translation helpful? Give feedback.
All reactions