Skip to content

Commit

Permalink
Fix flaky. (#22200)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh authored May 8, 2020
1 parent 3b5bfa3 commit 578a33a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/e2e-tests/specs/editor/various/links.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ describe( 'Links', () => {
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Enter' );

// Wait for Gutenberg to finish the job.
await page.waitForXPath(
'//a[contains(@href,"w.org") and @target="_blank"]'
);

expect( await getEditedPostContent() ).toMatchSnapshot();

// Regression Test: This verifies that the UI is updated according to
Expand Down Expand Up @@ -546,6 +551,11 @@ describe( 'Links', () => {
// Uncheck the checkbox.
await page.keyboard.press( 'Space' );

// Wait for Gutenberg to finish the job.
await page.waitForXPath(
'//a[contains(@href,"wordpress.org") and not(@target)]'
);

expect( await getEditedPostContent() ).toMatchSnapshot();
} );
} );

0 comments on commit 578a33a

Please sign in to comment.