Skip to content

Commit

Permalink
Fix e2e test failure due to console warning in LinkControl
Browse files Browse the repository at this point in the history
This is a temp fix and I’ve raised an Issue to solve the core issue which will then make this fix redundant.

#19634
  • Loading branch information
getdave committed Jan 15, 2020
1 parent 1ca624b commit b6d6c26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/e2e-tests/specs/editor/blocks/buttons.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ describe( 'Buttons', () => {
await page.keyboard.press( 'Enter' );

expect( await getEditedPostContent() ).toMatchSnapshot();
// TODO - this is needed currently because when adding a link using the suggestion list,
// a submit button is used. The form that the submit button is in is unmounted when submission
// occurs, resulting in a warning 'Form submission canceled because the form is not connected'
// in Chrome.
// Ideally, the suggestions wouldn't be implemented using submit buttons.
expect( console ).toHaveWarned();
} );
} );

0 comments on commit b6d6c26

Please sign in to comment.