Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ describe('MockDataGeneratorModal', () => {
async function renderModal({
isOpen = true,
currentStep = MockDataGeneratorStep.SCHEMA_CONFIRMATION,
enableGenAISampleDocumentPassing = false,
enableGenAISampleDocumentPassingOnAtlasProject = false,
mockServices = createMockServices(),
connectionInfo,
}: {
isOpen?: boolean;
enableGenAISampleDocumentPassing?: boolean;
enableGenAISampleDocumentPassingOnAtlasProject?: boolean;
currentStep?: MockDataGeneratorStep;
mockServices?: any;
connectionInfo?: ConnectionInfo;
Expand Down Expand Up @@ -69,7 +69,7 @@ describe('MockDataGeneratorModal', () => {
connectionInfo,
{
preferences: {
enableGenAISampleDocumentPassing,
enableGenAISampleDocumentPassingOnAtlasProject,
},
}
);
Expand Down Expand Up @@ -223,7 +223,9 @@ describe('MockDataGeneratorModal', () => {
});

it('uses the appropriate copy when Generative AI sample document passing is enabled', async () => {
await renderModal({ enableGenAISampleDocumentPassing: true });
await renderModal({
enableGenAISampleDocumentPassingOnAtlasProject: true,
});
expect(screen.getByText('Sample Documents Collected')).to.exist;
expect(
screen.getByText(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const RawSchemaConfirmationScreen = ({
fakerSchemaGenerationStatus,
}: RawSchemaConfirmationScreenProps) => {
const enableSampleDocumentPassing = usePreference(
'enableGenAISampleDocumentPassing'
'enableGenAISampleDocumentPassingOnAtlasProject'
);

const subtitleText = enableSampleDocumentPassing
Expand Down
Loading