Wait for the acknowledged knowledge manager state in regression check

This commit is contained in:
鲨鱼辣椒 committed 2026-10-13 20:14:14 +08:00
1 parent 92e892f8df
commit ad17f08400
1 file changed
+1 -1
+1 -1
View File
@@ -277,7 +277,7 @@ it('preserves uncertain processing while refreshing and releases it when the ser
files = [{ ...uploaded, processing_task: { task_id: 'observed-new-task', status: 'pending', error: null } }];
fireEvent.click(screen.getByRole('button', { name: '刷新状态' }));
await screen.findByText('等待处理');
expect(screen.getByRole('combobox', { name: '管理的知识库' })).toBeEnabled();
await waitFor(() => expect(screen.getByRole('combobox', { name: '管理的知识库' })).toBeEnabled());
});
it('retains unconfirmed operations in a disabled manager if its owned library disappears and requires explicit discard', async () => {