test(web): Fix failing web test in 'Web Tests' GitHub Action (#32481)

This commit is contained in:
akashseth-ifp
2026-02-24 10:31:30 +05:30
committed by GitHub
parent 2162cd1a69
commit a0ddaed6d3
3 changed files with 7 additions and 15 deletions

View File

@ -714,6 +714,7 @@ describe('CommonCreateModal', () => {
describe('Manual Properties Change', () => {
it('should call updateBuilder when manual properties change', async () => {
const builder = createMockSubscriptionBuilder()
const detailWithManualSchema = createMockPluginDetail({
declaration: {
trigger: {
@ -729,11 +730,7 @@ describe('CommonCreateModal', () => {
})
mockUsePluginStore.mockReturnValue(detailWithManualSchema)
render(<CommonCreateModal {...defaultProps} createType={SupportedCreationMethods.MANUAL} />)
await waitFor(() => {
expect(mockCreateBuilder).toHaveBeenCalled()
})
render(<CommonCreateModal {...defaultProps} createType={SupportedCreationMethods.MANUAL} builder={builder} />)
const input = screen.getByTestId('form-field-webhook_url')
fireEvent.change(input, { target: { value: 'https://example.com/webhook' } })