Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! chore: upgrade react and react-red…
Browse files Browse the repository at this point in the history
…ux packages
  • Loading branch information
akurinnoy committed Nov 12, 2024
1 parent 6872ca4 commit e027072
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Red Hat, Inc. - initial API and implementation
*/

import { render, screen } from '@testing-library/react';
import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import React from 'react';
import { Provider } from 'react-redux';
Expand All @@ -36,7 +36,6 @@ describe('Workspace Details page', () => {
let devWorkspaceBuilder: DevWorkspaceBuilder;

beforeEach(() => {
// history = createHashHistory();
devWorkspaceBuilder = new DevWorkspaceBuilder()
.withName(workspaceName)
.withNamespace(namespace);
Expand All @@ -60,7 +59,9 @@ describe('Workspace Details page', () => {
workspace,
});

expect(await screen.findByRole('tabpanel', { name: 'Overview' })).not.toBeNull();
await waitFor(() =>
expect(screen.queryByRole('tabpanel', { name: 'Overview' })).not.toBeNull(),
);
});

it('should have four tabs visible', () => {
Expand Down

0 comments on commit e027072

Please sign in to comment.