Playwright · Middle · Question 72 of 75
Why combine API setup with UI checks in one test?
- 1It makes the test cover the backend and frontend twice
- 2API calls are required before any page can be opened
- 3Setup is fast and stable, and the UI check stays focused
Show the answer
Correct answer: Setup is fast and stable, and the UI check stays focused
Explanation
Creating an order via API and only checking how the UI shows it saves time and removes flaky steps unrelated to the feature.