diff --git a/tests/e2e/specs/gutenberg-plugin.test.js b/tests/e2e/specs/gutenberg-plugin.test.js new file mode 100644 index 0000000000..75ac0a6b6d --- /dev/null +++ b/tests/e2e/specs/gutenberg-plugin.test.js @@ -0,0 +1,24 @@ +import { + activatePlugin, + deactivatePlugin, + installPlugin, + uninstallPlugin, +} from '@wordpress/e2e-test-utils'; + +describe( 'Gutenberg plugin', () => { + beforeAll( async () => { + await installPlugin( 'gutenberg' ); + } ); + + afterAll( async () => { + await uninstallPlugin( 'gutenberg' ); + } ); + + it( 'Activate the Gutenberg plugin', async () => { + await activatePlugin( 'gutenberg' ); + // If plugin activation fails, it will time out and throw an error, + // since the activatePlugin helper is looking for a `.deactivate` link + // which is only there if activation succeeds. + await deactivatePlugin( 'gutenberg' ); + } ); +} );