Skip to content

Commit

Permalink
Ensure AMP plugin is activated before running E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Jan 28, 2022
1 parent 90d9a16 commit 4a4c490
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/config/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
* Internal dependencies
*/
import { cleanUpSettings } from '../utils/onboarding-wizard-utils';
import { deactivatePlugin, installLocalPlugin } from '../utils/amp-settings-utils';
import { activatePlugin, deactivatePlugin, installLocalPlugin } from '../utils/amp-settings-utils';

/**
* Environment variables
Expand Down Expand Up @@ -235,6 +235,9 @@ async function createTestData() {
* Install themes and plugins needed in tests.
*/
async function setupThemesAndPlugins() {
// Ensure AMP plugin is activated.
await activatePlugin( 'amp' );

await installLocalPlugin( 'e2e-tests-demo-plugin' );
await installLocalPlugin( 'do-not-allow-amp-validate-capability' );

Expand Down

0 comments on commit 4a4c490

Please sign in to comment.