Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox

# Conflicts:
#	web/eslint-suppressions.json
This commit is contained in:
yyh
2026-02-04 18:15:32 +08:00
51 changed files with 9433 additions and 1688 deletions

View File

@ -168,6 +168,7 @@ describe('EditCustomCollectionModal', () => {
const schemaInput = screen.getByPlaceholderText('tools.createTool.schemaPlaceHolder')
fireEvent.change(schemaInput, { target: { value: '{}' } })
// Wait for parseParamsSchema to be called and state to be updated
await waitFor(() => {
expect(parseParamsSchemaMock).toHaveBeenCalledWith('{}')
})
@ -184,13 +185,13 @@ describe('EditCustomCollectionModal', () => {
provider: 'provider',
schema: '{}',
schema_type: 'openapi',
credentials: {
auth_type: 'none',
},
icon: {
content: '🕵️',
background: '#FEF7C3',
},
credentials: {
auth_type: 'none',
},
labels: [],
}))
expect(toastNotifySpy).not.toHaveBeenCalled()