From b97c6bdc7bec863fc88aa415b3596129a688e084 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Mon, 19 Jun 2023 13:54:26 +0300 Subject: [PATCH] chore: Add advanced playground table test (#4005) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a frontend test for AdvancedPlaygroundResultsTable ## About the changes Closes # ### Important files ## Discussion points Signed-off-by: andreas-unleash --- .../AdvancedPlaygroundResultsTable.test.tsx | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/AdvancedPlaygroundResultsTable.test.tsx diff --git a/frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/AdvancedPlaygroundResultsTable.test.tsx b/frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/AdvancedPlaygroundResultsTable.test.tsx new file mode 100644 index 0000000000..5c1b696880 --- /dev/null +++ b/frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/AdvancedPlaygroundResultsTable.test.tsx @@ -0,0 +1,107 @@ +import { screen } from '@testing-library/react'; +import { render } from 'utils/testRenderer'; +import { UIProviderContainer } from 'component/providers/UIProvider/UIProviderContainer'; +import { AdvancedPlaygroundResultsTable } from './AdvancedPlaygroundResultsTable'; + +test('should render advanced playground table', async () => { + render( + + + + ); + + expect(screen.getByText('Infinite')).toBeInTheDocument(); + expect(screen.getByText('ChangeReqs')).toBeInTheDocument(); + expect(screen.getByText('Development')).toBeInTheDocument(); + expect(screen.getByText('Production')).toBeInTheDocument(); +});