Skip to content

Commit a7e0497

Browse files
pierlonwestonruter
authored andcommitted
Ignore Story editor tests (#4043)
* Ignore block-editor & stories-editor E2E tests * Conform to semver updated method signatures * Fix failing block-editor tests * Disallow E2E tests to fail
1 parent 7473009 commit a7e0497

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ jobs:
6767
# PHP unit tests (7.4, WordPress trunk)
6868
- env: WP_VERSION=trunk DEV_LIB_ONLY=phpunit INSTALL_PWA_PLUGIN=1
6969
php: 7.4snapshot
70-
# E2E tests, since flaky.
71-
- env: WP_VERSION=latest DEV_LIB_SKIP=phpcs,eslint,xmllint,phpsyntax,phpunit PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
7270
include:
7371
- stage: lint
7472
name: Lint (PHP, JavaScript, and configuration files)

bin/local-env/run-e2e-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ prc.stdout.on( 'data', ( data ) => {
2424

2525
const testsToIgnore = [];
2626

27-
if ( semver.gte( '5.3.0', semver.coerce( wpVersion ) ) ) {
27+
if ( semver.gte( semver.clean( wpVersion ), '5.3.0' ) ) {
2828
// Ignore tests that are not to be run in WP >= 5.3.0.
2929
testsToIgnore.push( 'AMP Settings Screen should not allow AMP Stories to be enabled when Gutenberg is not active' );
3030
}

tests/e2e/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = {
1414
testPathIgnorePatterns: [
1515
'.git',
1616
'node_modules',
17+
'tests/e2e/specs/stories-editor',
1718
],
1819
reporters: [ [ 'jest-silent-reporter', { useDots: true } ] ],
1920
};

tests/e2e/specs/block-editor/featured-image-notice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe( 'Featured Image Notice', () => {
2222
beforeEach( async () => {
2323
await createNewPost( { postType: 'post' } );
2424
await clickButton( 'Document' );
25-
await clickButton( 'Featured Image' );
25+
await clickButton( 'Featured image' );
2626
await clickButton( 'Set featured image' );
2727
} );
2828

0 commit comments

Comments
 (0)