Skip to content
Merged
Show file tree
Hide file tree
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
Next Next commit
Unit tests: Add sleep() before pressing Tab key
  • Loading branch information
ciampo committed Jul 2, 2024
commit 722dc8a1d97fe2c959a52892712a44b41077d782
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ describe.each( [
expanded: false,
} );

await sleep();
await press.Tab();
Comment thread
ciampo marked this conversation as resolved.
expect( currentSelectedItem ).toHaveFocus();
expect( currentSelectedItem ).toHaveTextContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ describe.each( [
expanded: false,
} );

await sleep();
await press.Tab();
Comment thread
ciampo marked this conversation as resolved.
expect( currentSelectedItem ).toHaveFocus();
expect( currentSelectedItem ).toHaveTextContent( items[ 0 ].value );
Expand Down