Skip to content

Commit

Permalink
Disable e2e failures due to unrelated state update issue
Browse files Browse the repository at this point in the history
See #22830
  • Loading branch information
getdave committed Jun 2, 2020
1 parent 312f88d commit b6f34bb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions packages/e2e-tests/specs/experiments/navigation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@ describe( 'Navigation', () => {

await clickCreateButton();

// Required until fix in place for:
// https://github.com/WordPress/gutenberg/issues/22830
// Ideally we'd be more specific about the error message but it
// does not support partial string matches using `expect.stringContaining()`.
expect( console ).toHaveErrored();

// Snapshot should contain the mocked pages.
expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down Expand Up @@ -338,6 +344,12 @@ describe( 'Navigation', () => {
// Assert the correct number of Nav Link blocks were inserted.
expect( navBlockItemsLength ).toEqual( menuItemsFixture.length );

// Required until fix in place for:
// https://github.com/WordPress/gutenberg/issues/22830
// Ideally we'd be more specific about the error message but it
// does not support partial string matches using `expect.stringContaining()`.
expect( console ).toHaveErrored();

// Snapshot should contain the mocked menu items.
expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down Expand Up @@ -365,6 +377,12 @@ describe( 'Navigation', () => {
// We expect 1 here because a "placeholder" Nav Item Block is automatically inserted
expect( navBlockItemsLength ).toEqual( 1 );

// Required until fix in place for:
// https://github.com/WordPress/gutenberg/issues/22830
// Ideally we'd be more specific about the error message but it
// does not support partial string matches using `expect.stringContaining()`.
expect( console ).toHaveErrored();

// Snapshot should contain the mocked menu items.
expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down Expand Up @@ -464,6 +482,12 @@ describe( 'Navigation', () => {
type: 'entity',
} );

// Required until fix in place for:
// https://github.com/WordPress/gutenberg/issues/22830
// Ideally we'd be more specific about the error message but it
// does not support partial string matches using `expect.stringContaining()`.
expect( console ).toHaveErrored();

// Expect a Navigation Block with two Navigation Links in the snapshot.
expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down Expand Up @@ -540,6 +564,12 @@ describe( 'Navigation', () => {

expect( isInLinkRichText ).toBe( true );

// Required until fix in place for:
// https://github.com/WordPress/gutenberg/issues/22830
// Ideally we'd be more specific about the error message but it
// does not support partial string matches using `expect.stringContaining()`.
expect( console ).toHaveErrored();

// Expect a Navigation Block with a link for "A really long page name that will not exist".
expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down

0 comments on commit b6f34bb

Please sign in to comment.