[Playwright] Remove API mocks #54134
Labels
scope: tools/scripts
Scripts for supporting dev work, generating config and build artifacts, etc.
status: discussing
Under discussion threads. Closed as stale after 60 days of inactivity.
Milestone
Description
Remove API mocks from Playwright tests so that our tests are truly end-to-end.
With the mocks being removed, the first test in the suite will pass but subsequent test cases will fail. It's because the DB would be changed after actual APIs are called in the first test. I think we will need to reseed the DB after each test case, but I'm not sure if it would be straightforward.
I'm imagining something like this:
More advanced setup: https://playwright.dev/docs/auth#moderate-one-account-per-parallel-worker.
Tasks
The text was updated successfully, but these errors were encountered: