Skip to content

Commit db54c83

Browse files
committed
playwright initial
1 parent d92632c commit db54c83

File tree

9 files changed

+2394
-6
lines changed

9 files changed

+2394
-6
lines changed

src/content/5/en/part5d.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ They do have some drawbacks too. Configuring E2E tests is more challenging than
2222
E2E tests can also be [flaky](https://hackernoon.com/flaky-tests-a-war-that-never-ends-9aa32fdef359).
2323
Some tests might pass one time and fail another, even if the code does not change at all.
2424

25+
Perhaps the two easiest libraries for End to End testing at the moment are [Cypress](https://www.cypress.io/) and [Playwright](https://playwright.dev/).
26+
27+
From the statistics on [npmtrends.com](https://npmtrends.com/cypress-vs-playwright) we see that Cypress, which dominated the market for the last five years, is still the clear number one, but Playwright is on a rapid rise:
28+
29+
![cypress vs playwright in npm trends](../../images/5/cvsp.png)
30+
31+
Cypress has been used on this course for years. Now Playwright has been added as a new feature. It is up to you to choose whether to run the E2E testing part of the course on Cypress or Playwright. Both libraries have very similar policies, so your choice is not very important.
32+
33+
If your choice is Playwright, go [here](/part5/end_to_end_testing_playwright), if Cypress, go ahead.
34+
2535
### Cypress
2636

27-
E2E library [Cypress](https://www.cypress.io/) has become popular within the last years. Cypress is exceptionally easy to use, and when compared to Selenium, for example, it requires a lot less hassle and headache.
28-
Its operating principle is radically different than most E2E testing libraries because Cypress tests are run completely within the browser.
29-
Other libraries run the tests in a Node process, which is connected to the browser through an API.
37+
As mentioned, [Cypress](https://www.cypress.io/) has been the most popular E2E testing library for the past few years. Cypress is exceptionally easy to use, and when compared to Selenium, for example, it requires a lot less hassle and headache. Its operating principle is radically different than most E2E testing libraries because Cypress tests are run completely within the browser. Other libraries run the tests in a Node process, which is connected to the browser through an API.
3038

3139
Let's make some end-to-end tests for our note application.
3240

0 commit comments

Comments
 (0)