test: Await testTile function
The `testTile` function was improperly awaited, causing problems with tests that followed.
This commit is contained in:
parent
3493772672
commit
9629a7259d
1 changed files with 2 additions and 2 deletions
|
|
@ -1642,9 +1642,9 @@ describe('Keyboard accessibility', () => {
|
|||
const testTile = async (tile) => {
|
||||
tile.focus();
|
||||
await user.keyboard('{space}');
|
||||
expect(tile).toHaveClass('pf-m-selected');
|
||||
await waitFor(() => expect(tile).toHaveClass('pf-m-selected'));
|
||||
await user.keyboard('{space}');
|
||||
expect(tile).not.toHaveClass('pf-m-selected');
|
||||
await waitFor(() => expect(tile).not.toHaveClass('pf-m-selected'));
|
||||
};
|
||||
|
||||
await setUp();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue