Skip to content

Commit

Permalink
Tests: Fix flaky interactivity deferred test (#61359)
Browse files Browse the repository at this point in the history
Fix flaky test #59899

> Locator: getByTestId('result')
> Expected string: ""
> Received string: "Hello, world!"

The test expects to find some empty HTML initially, then find updated text. The text is updated on a timeout.
I suspect the timeout is too short, causing this the flakiness.

Double the timeout to make the test more reliable.
  • Loading branch information
sirreal authored May 3, 2024
1 parent 5d981a3 commit dde38de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ document.addEventListener( 'DOMContentLoaded', () => {
},
},
} );
}, 50 );
}, 100 );
} );

0 comments on commit dde38de

Please sign in to comment.