Frontend e2e testing with Playwright - waiting for DB

I ran into the same problem before. What worked for me was mocking the Strapi API responses during the playwright submit form tests instead of waiting on the DB. That way, the test doesn’t depend on the state of the DB and runs faster. Just make sure your mock matches the structure of what Strapi would actually return so your UI behaves the same.