Playwright · Senior · Question 42 of 77
Why run E2E tests against preview deployments of each pull request?
- 1Production can't be tested with Playwright at all
- 2Preview deployments make tests run much faster
- 3Bugs are caught before merge, on the exact code
Show the answer
Correct answer: Bugs are caught before merge, on the exact code
Explanation
Pointing baseURL at the preview URL tests the real build and infrastructure before it reaches the main branch.