feat: add SQS + EventBridge
This commit is contained in:
@@ -48,3 +48,16 @@ test('replaces Hello World source when the Lambda runtime changes', async () =>
|
||||
|
||||
expect(screen.getByLabelText('Hello World Source')).toHaveValue('def handler(event, context):\n return {}')
|
||||
})
|
||||
|
||||
test('edits key-value fields as variable rows', async () => {
|
||||
const onSubmit = vi.fn()
|
||||
const user = userEvent.setup()
|
||||
render(<DynamicFormRenderer schema={{...schema, fields: [{name: 'environment', label: 'Environment Variables', type: 'key-value', required: false}]}} isSubmitting={false} onSubmit={onSubmit}/>)
|
||||
|
||||
await user.click(screen.getByRole('button', {name: 'Add variable'}))
|
||||
await user.type(screen.getByLabelText('Environment Variables key 1'), 'APP_GREETING')
|
||||
await user.type(screen.getByLabelText('Environment Variables value 1'), 'Hello')
|
||||
await user.click(screen.getByRole('button', {name: 'Create'}))
|
||||
|
||||
expect(onSubmit).toHaveBeenCalledWith({environment: '[{"key":"APP_GREETING","value":"Hello"}]'})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user