123456789101112131415161718192021 |
- import {render, screen} from 'sentry-test/reactTestingLibrary';
- import AwsLambdaFunctionSelect from 'sentry/views/integrationPipeline/awsLambdaFunctionSelect';
- describe('AwsLambdaFunctionSelect', () => {
- it('choose lambdas', () => {
- render(
- <AwsLambdaFunctionSelect
- initialStepNumber={0}
- lambdaFunctions={[
- {FunctionName: 'lambdaA', Runtime: 'nodejs12.x'},
- {FunctionName: 'lambdaB', Runtime: 'nodejs10.x'},
- {FunctionName: 'lambdaC', Runtime: 'nodejs10.x'},
- ]}
- />
- );
- expect(screen.getByRole('checkbox', {name: 'lambdaB'})).toBeInTheDocument();
- expect(screen.getByRole('button', {name: 'Finish Setup'})).toBeInTheDocument();
- // TODO: add assertion for form post
- });
- });
|