Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update waitFor timeout option to interval
  • Loading branch information
jsnajdr committed Nov 9, 2022
commit b81f2ff0df38d33d9086e6d610170096ad925855
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe( 'NavigationToggle', () => {
expect(
screen.getByText( 'Toggle navigation' ).parentElement
).toBePositioned(),
{ timeout: 2000 } // It might take more than a second to position the popover.
{ interval: 10 } // It takes many microtask tick to position the popover.
);

const siteIcon = screen.getByAltText( 'Site Icon' );
Expand Down Expand Up @@ -126,7 +126,7 @@ describe( 'NavigationToggle', () => {
expect(
screen.getByText( 'Toggle navigation' ).parentElement
).toBePositioned(),
{ timeout: 2000 } // It might take more than a second to position the popover.
{ interval: 10 } // It takes many microtask tick to position the popover.
);

expect(
Expand Down