Browse Source

docs: add Playwright to testing environments page (#3929)

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
main
Max Schmitt 3 years ago
committed by GitHub
parent
commit
ec6aa3521c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/testing-environments.md

2
content/docs/testing-environments.md

@ -55,4 +55,4 @@ Sometimes, you may not want to mock timers. For example, maybe you're testing an
End-to-end tests are useful for testing longer workflows, especially when they're critical to your business (such as payments or signups). For these tests, you'd probably want to test how a real browser renders the whole app, fetches data from the real API endpoints, uses sessions and cookies, navigates between different links. You might also likely want to make assertions not just on the DOM state, but on the backing data as well (e.g. to verify whether the updates have been persisted to the database).
In this scenario, you would use a framework like [Cypress](https://www.cypress.io/) or a library like [puppeteer](https://github.com/GoogleChrome/puppeteer) so you can navigate between multiple routes and assert on side effects not just in the browser, but potentially on the backend as well.
In this scenario, you would use a framework like [Cypress](https://www.cypress.io/), [Playwright](https://playwright.dev) or a library like [Puppeteer](https://pptr.dev/) so you can navigate between multiple routes and assert on side effects not just in the browser, but potentially on the backend as well.

Loading…
Cancel
Save