mirror of
https://github.com/strapi/strapi.git
synced 2025-08-04 14:56:22 +00:00
Fix tests
This commit is contained in:
parent
b9a503c053
commit
4a2cc232fe
@ -141,8 +141,7 @@ describe('ADMIN | Pages | AUDIT LOGS | ListView', () => {
|
|||||||
const pagination = await waitFor(() => container.querySelector('nav[aria-label="pagination"]'));
|
const pagination = await waitFor(() => container.querySelector('nav[aria-label="pagination"]'));
|
||||||
|
|
||||||
expect(pagination).toBeInTheDocument();
|
expect(pagination).toBeInTheDocument();
|
||||||
expect(pagination.querySelectorAll('ul li')[1].querySelector('a')).toHaveTextContent('1');
|
expect(screen.getByText(/go to page 1/i).closest('a')).toHaveClass('active');
|
||||||
expect(pagination.querySelectorAll('ul li')[1].querySelector('a')).toHaveClass('active');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('paginates the results', async () => {
|
it('paginates the results', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user