Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
import { render, screen } from '@testing-library/react'
import StepThree from '../index'
vi.mock('../../embedding-process', () => ({
default: () => <div>embedding process</div>,
}))
vi.mock('@/context/i18n', () => ({
useDocLink: () => (path: string) => `https://docs.dify.ai${path}`,
}))
describe('StepThree', () => {
it('shows the created dataset while its documents are processed', () => {
render(<StepThree datasetName="Product docs" />)
expect(
screen.getByRole('heading', { level: 1, name: 'datasetCreation.stepThree.creationTitle' }),
).toBeInTheDocument()
expect(screen.getByText('Product docs')).toBeInTheDocument()
})
it('shows the target dataset while additional documents are processed', () => {
render(<StepThree datasetId="dataset-1" datasetName="Product docs" />)
expect(
screen.getByRole('heading', { level: 1, name: 'datasetCreation.stepThree.additionTitle' }),
).toBeInTheDocument()
expect(screen.getByText(/Product docs/)).toBeInTheDocument()
expect(screen.queryByText('datasetCreation.stepThree.creationTitle')).not.toBeInTheDocument()
})
it('links to the document-processing documentation', () => {
render(<StepThree />)
expect(
screen.getByRole('link', { name: 'datasetPipeline.addDocuments.stepThree.learnMore' }),
).toHaveAttribute(
'href',
'https://docs.dify.ai/use-dify/knowledge/integrate-knowledge-within-application',
)
})
})