Skip to content

Commit

Permalink
Try to fix e2e tests on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and jorgefilipecosta committed Jul 18, 2019
1 parent cc44e53 commit 8627ff0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/e2e-tests/specs/writing-flow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ describe( 'adding blocks', () => {

await page.keyboard.press( 'Enter' );

// eslint-disable-next-line no-restricted-syntax
await page.waitFor( 1 );

expect( await page.evaluate( () =>
wp.dom.computeCaretRect().y
) ).toBe( initialPosition );
Expand All @@ -425,6 +428,9 @@ describe( 'adding blocks', () => {
await page.keyboard.type( 'a' );
}

// eslint-disable-next-line no-restricted-syntax
await page.waitFor( 1 );

expect( await page.evaluate( () =>
wp.dom.computeCaretRect().y
) ).toBe( initialPosition );
Expand All @@ -433,6 +439,9 @@ describe( 'adding blocks', () => {
// Scroll position should be adjusted again.
await page.keyboard.press( 'Backspace' );

// eslint-disable-next-line no-restricted-syntax
await page.waitFor( 1 );

expect( await page.evaluate( () =>
wp.dom.computeCaretRect().y
) ).toBe( initialPosition );
Expand Down

0 comments on commit 8627ff0

Please sign in to comment.