Skip to content

Commit

Permalink
Improve reliability of RichText tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Apr 27, 2019
1 parent 2adf348 commit e1334f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/e2e-tests/specs/rich-text.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe( 'RichText', () => {
await clickBlockAppender();
await page.keyboard.type( 'test' );
await pressKeyWithModifier( 'primary', 'a' );
await page.waitForFunction( () => window.getSelection().toString() === 'test' );
await pressKeyWithModifier( 'access', 'd' );

expect( await getEditedPostContent() ).toMatchSnapshot();
Expand All @@ -40,6 +41,7 @@ describe( 'RichText', () => {
await clickBlockAppender();
await page.keyboard.type( 'test' );
await pressKeyWithModifier( 'primary', 'a' );
await page.waitForFunction( () => window.getSelection().toString() === 'test' );
await pressKeyWithModifier( 'primary', 'b' );

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

0 comments on commit e1334f0

Please sign in to comment.