mirror of
https://github.com/langgenius/dify.git
synced 2026-07-22 03:08:33 +08:00
21 lines
666 B
TypeScript
21 lines
666 B
TypeScript
import SyncingDataModal from '../syncing-data-modal'
|
|
import { renderWorkflowComponent } from './workflow-test-env'
|
|
|
|
describe('SyncingDataModal', () => {
|
|
it('should not render when workflow draft syncing is disabled', () => {
|
|
const { container } = renderWorkflowComponent(<SyncingDataModal />)
|
|
|
|
expect(container).toBeEmptyDOMElement()
|
|
})
|
|
|
|
it('should render the fullscreen overlay when workflow draft syncing is enabled', () => {
|
|
const { container } = renderWorkflowComponent(<SyncingDataModal />, {
|
|
initialStoreState: {
|
|
isSyncingWorkflowDraft: true,
|
|
},
|
|
})
|
|
|
|
expect(container.firstElementChild).toBeInTheDocument()
|
|
})
|
|
})
|