You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of this I need to manually override the requestUtils fixture in my setup, because otherwise I get errors about things like the gutenberg-test-plugin-disables-the-css-animations plugin not existing.
In my case it's not desired to trash all posts because I need some test data before the tests run.
What is your proposed solution?
Move the highlighted parts above to the global setup file, because that's really where this code belongs.
The text was updated successfully, but these errors were encountered:
Makes sense. I don't remember why I didn't do that in the first place 😅 . Maybe it's because global-setup only runs once but worker fixture runs before each test suite? Feel free to open PRs to explore this idea though! 🙇
What problem does this address?
Right now the request utils in
e2e-test-utils-playwright
contain a lot of Gutenberg-specific logic that does not apply to other setups:gutenberg/packages/e2e-test-utils-playwright/src/test.ts
Lines 139 to 149 in b380a60
Because of this I need to manually override the
requestUtils
fixture in my setup, because otherwise I get errors about things like thegutenberg-test-plugin-disables-the-css-animations
plugin not existing.In my case it's not desired to trash all posts because I need some test data before the tests run.
What is your proposed solution?
Move the highlighted parts above to the global setup file, because that's really where this code belongs.
The text was updated successfully, but these errors were encountered: