Skip to content

Commit

Permalink
fix(1626): Unexpected logs for BaseCatalog.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tplevko authored and lordrip committed Nov 19, 2024
1 parent 9ee3368 commit ac08156
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ui/src/components/Catalog/BaseCatalog.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, fireEvent, render, screen } from '@testing-library/react';
import { act, fireEvent, render, screen, waitFor } from '@testing-library/react';
import { CatalogLayout } from './Catalog.models';
import { BaseCatalog } from './BaseCatalog';
import { longTileList } from '../../stubs';
Expand Down Expand Up @@ -103,6 +103,8 @@ describe('BaseCatalog', () => {
screen.getAllByRole('listitem').filter((li) => li.classList.contains('catalog-data-list-item')),
).toHaveLength(20);

expect(screen.getByRole('button', { name: 'Go to next page' })).toBeDisabled();
waitFor(() => {
expect(screen.getByRole('button', { name: 'Go to next page' })).toBeDisabled();
});
});
});

0 comments on commit ac08156

Please sign in to comment.