How to use the @wordpress/e2e-test-utils.activatePlugin function in @wordpress/e2e-test-utils

To help you get started, we’ve selected a few @wordpress/e2e-test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / site-kit-wp / tests / e2e / utils / reset.js View on Github external
export async function resetSiteKit() {
	await activatePlugin( PLUGIN_SLUG );
	clearLocalStorage();
	clearSessionStorage();
	await deactivatePlugin( PLUGIN_SLUG );
}
github getblocklab / block-lab / tests / e2e / config / setup-test-framework.js View on Github external
beforeAll( async () => {
	capturePageEventsForTearDown();
	enablePageDialogAccept();
	observeConsoleLogging();
	await setupBrowser();
	await activatePlugin( PLUGIN );
	await activatePlugin( TESTING_PLUGIN );
	await trashExistingPosts();
	await trashExistingPosts( BLOCK_LAB_POST_SLUG );
} );
github liip / bootstrap-blocks-wordpress-plugin / e2e-tests / container / container-filters.spec.js View on Github external
beforeAll( async () => {
		await activatePlugin( 'wp-bootstrap-blocks-test-container-filters' );
	} );
github liip / bootstrap-blocks-wordpress-plugin / e2e-tests / row / row-old-template-structure.spec.js View on Github external
beforeAll( async () => {
		await activatePlugin( 'wp-bootstrap-blocks-test-row-old-template-structure' );
	} );
github WordPress / gutenberg / packages / e2e-tests / config / setup-test-framework.js View on Github external
beforeAll( async () => {
	capturePageEventsForTearDown();
	enablePageDialogAccept();
	observeConsoleLogging();

	await trashExistingPosts();
	await setupBrowser();
	await activatePlugin( 'gutenberg-test-plugin-disables-the-css-animations' );
} );
github getblocklab / block-lab / tests / e2e / config / setup-test-framework.js View on Github external
beforeAll( async () => {
	capturePageEventsForTearDown();
	enablePageDialogAccept();
	observeConsoleLogging();
	await setupBrowser();
	await activatePlugin( PLUGIN );
	await activatePlugin( TESTING_PLUGIN );
	await trashExistingPosts();
	await trashExistingPosts( BLOCK_LAB_POST_SLUG );
} );
github liip / bootstrap-blocks-wordpress-plugin / e2e-tests / row / row-filters.spec.js View on Github external
beforeAll( async () => {
		await activatePlugin( 'wp-bootstrap-blocks-test-row-filters' );
	} );
github liip / bootstrap-blocks-wordpress-plugin / e2e-tests / column / column-filters.spec.js View on Github external
beforeAll( async () => {
		await activatePlugin( 'wp-bootstrap-blocks-test-column-filters' );
	} );
github WordPress / gutenberg / packages / e2e-tests / specs / editor / plugins / innerblocks-locking-all-embed.js View on Github external
beforeAll( async () => {
		await activatePlugin( 'gutenberg-test-innerblocks-locking-all-embed' );
	} );
github intraxia / wp-gistpen / e2e / setupTests.ts View on Github external
beforeAll(async () => {
  await Promise.all([
    (async () => {
      await resetSite();
      await execa.command(`npm run env cli rewrite structure /%POSTNAME%/`);
    })(),
    setBrowserViewport('large'),
  ]);

  await activatePlugin('wp-gistpen');
});