Skip to content

Commit

Permalink
Split e2e tests into multiple folders (#17990)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 17, 2019
1 parent d79a840 commit a284f26
Show file tree
Hide file tree
Showing 125 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ module.exports = {
testPathIgnorePatterns: [
'/node_modules/',
'/wordpress/',
'e2e-tests/specs/performance.test.js',
'e2e-tests/specs/performance/',
],
};
2 changes: 1 addition & 1 deletion packages/e2e-tests/jest.performance.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
...require( '@wordpress/scripts/config/jest-e2e.config' ),
testMatch: [
'**/performance.test.js',
'**/performance/*.test.js',
],
setupFiles: [
'<rootDir>/config/gutenberg-phase.js',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe( 'Classic', () => {
// Wait for media modal to appear and upload image.
await page.waitForSelector( '.media-modal input[type=file]' );
const inputElement = await page.$( '.media-modal input[type=file]' );
const testImagePath = path.join( __dirname, '..', '..', 'assets', '10x10_e2e_test_image_z9T8jK.png' );
const testImagePath = path.join( __dirname, '..', '..', '..', 'assets', '10x10_e2e_test_image_z9T8jK.png' );
const filename = uuid();
const tmpFileName = path.join( os.tmpdir(), filename + '.png' );
fs.copyFileSync( testImagePath, tmpFileName );
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe( 'adding inline tokens', () => {
// Wait for media modal to appear and upload image.
await page.waitForSelector( '.media-modal input[type=file]' );
const inputElement = await page.$( '.media-modal input[type=file]' );
const testImagePath = path.join( __dirname, '..', 'assets', '10x10_e2e_test_image_z9T8jK.png' );
const testImagePath = path.join( __dirname, '..', '..', '..', 'assets', '10x10_e2e_test_image_z9T8jK.png' );
const filename = uuid();
const tmpFileName = path.join( os.tmpdir(), filename + '.png' );
fs.copyFileSync( testImagePath, tmpFileName );
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe( 'Managing reusable blocks', () => {
await importButton.click();

// Select the file to upload
const testReusableBlockFile = path.join( __dirname, '..', 'assets', 'greeting-reusable-block.json' );
const testReusableBlockFile = path.join( __dirname, '..', '..', '..', 'assets', 'greeting-reusable-block.json' );
const input = await page.$( '.list-reusable-blocks-import-form input' );
await input.uploadFile( testReusableBlockFile );

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import {
getAvailableBlockFixturesBasenames,
getBlockFixtureHTML,
getBlockFixtureParsedJSON,
} from '../fixtures/';
import { EXPECTED_TRANSFORMS } from '../fixtures/block-transforms.js';
} from '../../fixtures/';
import { EXPECTED_TRANSFORMS } from '../../fixtures/block-transforms.js';

/*
* Returns true if the fileBase refers to a fixture of a block
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a284f26

Please sign in to comment.