mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
22 lines
760 B
TypeScript
22 lines
760 B
TypeScript
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
|
|
});
|
|
});
|