Skip to content

Commit

Permalink
test: fix failing react16/17 test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Dec 2, 2024
1 parent 8843ba7 commit 3b23b17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/eui/src/components/code/code_block.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ describe('EuiCodeBlock', () => {

userEvent.keyboard('{enter}');

waitFor(() =>
waitFor(() => {
expect(
baseElement.querySelector('.euiCodeBlockFullScreen')
).not.toBeInTheDocument()
);
).not.toBeInTheDocument();

waitFor(() => expect(getByLabelText('Expand')).toHaveFocus());
expect(getByLabelText('Expand')).toHaveFocus();
});
});
});

Expand Down

0 comments on commit 3b23b17

Please sign in to comment.