Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mayan-000 committed Mar 1, 2024
1 parent 9ce88f0 commit bebb34a
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,12 @@ import '@testing-library/jest-dom/extend-expect';
/**
* Internal dependencies.
*/
import mockResponse from '../../../test-data/cookieMockData';
import CookiesLanding from '..';

describe('CookiesLanding', () => {
it('renders CookiesLanding with data', () => {
const { getByTestId, getAllByTestId } = render(
<CookiesLanding
tabCookies={mockResponse.tabCookies}
tabFrames={mockResponse.tabFrames}
showBlockedCookiesSection
showHorizontalMatrix
/>
);
const { getByTestId } = render(<CookiesLanding />);

expect(getByTestId('cookies-landing')).toBeInTheDocument();
expect(getAllByTestId('cookies-landing-header')[0]).toBeInTheDocument();
expect(getByTestId('cookies-matrix-Categories')).toBeInTheDocument();
});
});

0 comments on commit bebb34a

Please sign in to comment.