From d235005208d55498c33e1713a6d0c048c9463fd6 Mon Sep 17 00:00:00 2001 From: GermanVor Date: Wed, 22 May 2024 14:30:05 +0200 Subject: [PATCH] chore: add test --- .../Pagination/__tests__/Pagination.test.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/components/Pagination/__tests__/Pagination.test.tsx diff --git a/src/components/Pagination/__tests__/Pagination.test.tsx b/src/components/Pagination/__tests__/Pagination.test.tsx new file mode 100644 index 0000000000..39d0cab597 --- /dev/null +++ b/src/components/Pagination/__tests__/Pagination.test.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +import {noop} from 'lodash'; + +import {render, screen} from '../../../../test-utils/utils'; +import {Pagination} from '../Pagination'; +import {PaginationQa} from '../constants'; + +describe('Pagination', () => { + test('Total property disable Next', () => { + render(); + + const nextButton = screen.getByTestId(PaginationQa.PaginationButtonNext); + + expect(nextButton).toBeDisabled(); + }); +});