Skip to content

Commit

Permalink
tests: Make e2e tests work with the lastest master changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Aug 8, 2018
1 parent d29fe22 commit 6687d0a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"publish:prod": "npm run build:packages && lerna publish",
"test": "npm run lint && npm run test-unit",
"pretest-e2e": "concurrently \"./bin/reset-e2e-tests.sh\" \"npm run build\"",
"test-e2e": "cross-env JEST_PUPPETEER_CONFIG=test/e2e/puppeteer.config.js wp-scripts test-unit-js --config test/e2e/jest.config.json --runInBand",
"test-e2e": "wp-scripts test-unit-js --config test/e2e/jest.config.json --runInBand",
"test-e2e:watch": "npm run test-e2e -- --watch",
"test-php": "npm run lint-php && npm run test-unit-php",
"test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.json",
Expand Down
6 changes: 4 additions & 2 deletions test/e2e/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"setupTestFrameworkScriptFile": "<rootDir>/test/e2e/support/setup-test-framework.js",
"testMatch": [
"<rootDir>/test/e2e/specs/**/(*.)test.js"
]

],
"transform": {
"^.+\\.jsx?$": "<rootDir>/node_modules/babel-jest"
}
}
4 changes: 1 addition & 3 deletions test/e2e/specs/block-mover.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/**
* Internal dependencies
*/
import '../support/bootstrap';
import { newPost, newDesktopBrowserPage } from '../support/utils';
import { newPost } from '../support/utils';

describe( 'block mover', () => {
beforeEach( async () => {
await newDesktopBrowserPage();
await newPost();
} );

Expand Down
3 changes: 0 additions & 3 deletions test/e2e/specs/rich-text.test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
/**
* Internal dependencies
*/
import '../support/bootstrap';
import {
newPost,
newDesktopBrowserPage,
getEditedPostContent,
insertBlock,
} from '../support/utils';

describe( 'adding blocks', () => {
beforeEach( async () => {
await newDesktopBrowserPage();
await newPost();
} );

Expand Down

0 comments on commit 6687d0a

Please sign in to comment.