mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
test(web): Fix failing web test in 'Web Tests' GitHub Action (#32481)
This commit is contained in:
@ -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' } })
|
||||
|
||||
Reference in New Issue
Block a user