Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function resetSiteKit() {
await activatePlugin( PLUGIN_SLUG );
clearLocalStorage();
clearSessionStorage();
await deactivatePlugin( PLUGIN_SLUG );
}
beforeAll( async () => {
capturePageEventsForTearDown();
enablePageDialogAccept();
observeConsoleLogging();
await setupBrowser();
await activatePlugin( PLUGIN );
await activatePlugin( TESTING_PLUGIN );
await trashExistingPosts();
await trashExistingPosts( BLOCK_LAB_POST_SLUG );
} );
beforeAll( async () => {
await activatePlugin( 'wp-bootstrap-blocks-test-container-filters' );
} );
beforeAll( async () => {
await activatePlugin( 'wp-bootstrap-blocks-test-row-old-template-structure' );
} );
beforeAll( async () => {
capturePageEventsForTearDown();
enablePageDialogAccept();
observeConsoleLogging();
await trashExistingPosts();
await setupBrowser();
await activatePlugin( 'gutenberg-test-plugin-disables-the-css-animations' );
} );
beforeAll( async () => {
capturePageEventsForTearDown();
enablePageDialogAccept();
observeConsoleLogging();
await setupBrowser();
await activatePlugin( PLUGIN );
await activatePlugin( TESTING_PLUGIN );
await trashExistingPosts();
await trashExistingPosts( BLOCK_LAB_POST_SLUG );
} );
beforeAll( async () => {
await activatePlugin( 'wp-bootstrap-blocks-test-row-filters' );
} );
beforeAll( async () => {
await activatePlugin( 'wp-bootstrap-blocks-test-column-filters' );
} );
beforeAll( async () => {
await activatePlugin( 'gutenberg-test-innerblocks-locking-all-embed' );
} );
beforeAll(async () => {
await Promise.all([
(async () => {
await resetSite();
await execa.command(`npm run env cli rewrite structure /%POSTNAME%/`);
})(),
setBrowserViewport('large'),
]);
await activatePlugin('wp-gistpen');
});