diff --git a/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentTable.test.tsx b/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentTable.test.tsx new file mode 100644 index 0000000000..85b1e8aa84 --- /dev/null +++ b/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentTable.test.tsx @@ -0,0 +1,46 @@ +import { screen } from '@testing-library/react'; +import { render } from 'utils/testRenderer'; +import { PlaygroundEnvironmentTable } from './PlaygroundEnvironmentTable'; +import { UIProviderContainer } from '../../../providers/UIProvider/UIProviderContainer'; + +test('should render environment table', async () => { + render( + + + + ); + + expect(screen.getByText('web')).toBeInTheDocument(); + expect(screen.getByText('clientA')).toBeInTheDocument(); + expect(screen.getByText('variantName')).toBeInTheDocument(); + expect(screen.getByText('False')).toBeInTheDocument(); + expect(screen.queryByText('myapp')).not.toBeInTheDocument(); +});