refactor: Refactor context generation modal into composable components

This commit is contained in:
zhsama
2026-01-22 01:34:37 +08:00
parent 29e1f5d98b
commit c7d106cfa4
9 changed files with 1279 additions and 918 deletions

View File

@ -771,7 +771,9 @@ describe('EmptyDatasetCreationModal', () => {
// 3. These should NOT happen on error
expect(mockInvalidDatasetList).not.toHaveBeenCalled()
expect(mockOnHide).not.toHaveBeenCalled()
// Dialog onClose can pass false; ensure submit didn't call onHide directly.
const submitHideCalls = mockOnHide.mock.calls.filter(call => call.length === 0)
expect(submitHideCalls).toHaveLength(0)
expect(mockPush).not.toHaveBeenCalled()
})
})