We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe5a11 commit a438a05Copy full SHA for a438a05
e2e/config/global-setup.ts
@@ -24,6 +24,17 @@ async function globalSetup() {
24
// filling in the input fields for the username and password and submitting the form.
25
// https://playwright.dev/docs/test-global-setup-teardown#example
26
await requestUtils.setupRest()
27
+
28
+ // Deactivate all plugins except Stackable
29
+ const plugins = await requestUtils.getPluginsMap()
30
31
+ // Use for loop because forEach cannot handle async operations
32
+ for ( const slug of Object.keys( plugins ) ) {
33
+ await requestUtils.deactivatePlugin( slug )
34
+ }
35
36
+ await requestUtils.activatePlugin( 'stackable-gutenberg-blocks' )
37
38
await requestContext.dispose()
39
}
40
0 commit comments