Skip to content

Commit a438a05

Browse files
committed
activate only stackable for all tests
1 parent 7fe5a11 commit a438a05

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

e2e/config/global-setup.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ async function globalSetup() {
2424
// filling in the input fields for the username and password and submitting the form.
2525
// https://playwright.dev/docs/test-global-setup-teardown#example
2626
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+
2738
await requestContext.dispose()
2839
}
2940

0 commit comments

Comments
 (0)