wordpress-develop/tests/e2e/specs/gutenberg-plugin.test.js
Bernie Reiter 112d16165f Build/Test Tools: Stylistic changes to Gutenberg e2e test.
Make some stylistic changes (multiline comment formatting, test description) that had been suggested during code review and that didn't make it into the previous commit.

Props costdev.
Follows [54913].
See #57197.

git-svn-id: https://develop.svn.wordpress.org/trunk@54914 602fd350-edb4-49c9-b593-d223f7449a82
2022-11-30 14:05:58 +00:00

27 lines
629 B
JavaScript

import {
activatePlugin,
deactivatePlugin,
installPlugin,
uninstallPlugin,
} from '@wordpress/e2e-test-utils';
describe( 'Gutenberg plugin', () => {
beforeAll( async () => {
await installPlugin( 'gutenberg' );
} );
afterAll( async () => {
await uninstallPlugin( 'gutenberg' );
} );
it( 'should activate', 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' );
} );
} );