Skip to content

Commit 682cdbe

Browse files
committed
add to runjob test
1 parent 05283b3 commit 682cdbe

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/pages/scientificServices/pipelines/tabs/run/RunJob.test.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ describe('RunJob Component', () => {
116116
expect(screen.getByText('Enter minimum imputation quality for inclusion')).toBeInTheDocument();
117117
expect(screen.getByText(/Enter description/)).toBeInTheDocument();
118118
expect(screen.getByText('Select a multi-sample VCF file')).toBeInTheDocument();
119+
expect(screen.getByText('Allow chunk failures')).toBeInTheDocument();
119120

120121
// Wait for pipeline options to load
121122
await waitFor(() => {
@@ -162,6 +163,12 @@ describe('RunJob Component', () => {
162163
await user.type(descriptionTextArea, 'Test description for pipeline run');
163164

164165
expect(descriptionTextArea).toHaveValue('Test description for pipeline run');
166+
167+
// Toggle allowChunkFailures
168+
const allowChunkFailuresCheckbox = screen.getByLabelText('allow chunk failures');
169+
await user.click(allowChunkFailuresCheckbox);
170+
171+
expect(allowChunkFailuresCheckbox).toBeChecked();
165172
});
166173

167174
it('handles file selection and triggers upload process', async () => {

src/pages/scientificServices/pipelines/utils/mock-utils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ export function mockPipelineWithDetails(name: string): PipelineWithDetails {
3333
minValue: 0,
3434
maxValue: 1,
3535
},
36+
{
37+
name: 'allowChunkFailures',
38+
displayName: 'allow chunk failures',
39+
description: 'If true, allow up to 10% chunk failure rate. Default false.',
40+
type: 'BOOLEAN',
41+
isRequired: false,
42+
},
3643
{
3744
name: 'multiSampleVcf',
3845
displayName: 'multi-sample VCF file',

0 commit comments

Comments
 (0)