test: restore mocks in rag pipeline tests

This commit is contained in:
Yanli 盐粒 2026-03-19 21:57:48 +08:00
parent 7b8c57d95b
commit a17f6f62bf
1 changed files with 4 additions and 0 deletions

View File

@ -352,6 +352,10 @@ beforeEach(() => {
vi.spyOn(console, 'error').mockImplementation(() => {})
})
afterEach(() => {
vi.restoreAllMocks()
})
// Helper to find the name input in PublishAsKnowledgePipelineModal
function getNameInput() {
return screen.getByPlaceholderText('pipeline.common.publishAsPipeline.namePlaceholder')