@truedat/qx 8.7.0 → 8.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/components/__tests__/QxRoutes.spec.js +1 -1
- package/src/components/common/ClauseViewer.js +1 -1
- package/src/components/common/ResourceSelector.js +1 -1
- package/src/components/common/TypeSelector.js +7 -3
- package/src/components/common/__tests__/ResourceSelector.spec.js +6 -6
- package/src/components/common/expressions/FieldSelector.js +2 -2
- package/src/components/common/expressions/FunctionSelector.js +3 -3
- package/src/components/common/expressions/ParamSelector.js +1 -1
- package/src/components/common/expressions/ShapeSelector.js +4 -5
- package/src/components/common/expressions/__tests__/Clauses.spec.js +11 -11
- package/src/components/common/expressions/__tests__/Condition.spec.js +15 -13
- package/src/components/common/expressions/__tests__/ConstantSelector.spec.js +2 -2
- package/src/components/common/expressions/__tests__/Expression.spec.js +5 -5
- package/src/components/common/expressions/__tests__/FieldSelector.spec.js +6 -2
- package/src/components/common/expressions/__tests__/FunctionArgs.spec.js +3 -3
- package/src/components/common/expressions/__tests__/FunctionSelector.spec.js +3 -3
- package/src/components/common/expressions/__tests__/ParamSelector.spec.js +3 -3
- package/src/components/common/expressions/__tests__/ShapeSelector.spec.js +7 -7
- package/src/components/common/expressions/__tests__/useWatchParams.spec.js +3 -1
- package/src/components/common/expressions/constantInputs/AnySelector.js +0 -1
- package/src/components/common/expressions/constantInputs/BooleanSelector.js +5 -1
- package/src/components/common/expressions/constantInputs/__tests__/AnySelector.spec.js +6 -2
- package/src/components/common/expressions/constantInputs/__tests__/BooleanSelector.spec.js +8 -4
- package/src/components/common/expressions/constantInputs/__tests__/DefaultSelector.spec.js +6 -3
- package/src/components/common/resourceSelectors/DataStructureSelector.js +5 -1
- package/src/components/common/resourceSelectors/DataViewSelector.js +3 -3
- package/src/components/common/resourceSelectors/ReferenceDatasetSelector.js +7 -2
- package/src/components/common/resourceSelectors/__tests__/DataStructureSelector.spec.js +1 -1
- package/src/components/common/resourceSelectors/__tests__/DataViewSelector.spec.js +7 -7
- package/src/components/common/resourceSelectors/__tests__/ReferenceDatasetSelector.spec.js +6 -6
- package/src/components/dataViews/DataViewEditor.js +3 -2
- package/src/components/dataViews/DataViewSummary.js +1 -1
- package/src/components/dataViews/DataViews.js +2 -2
- package/src/components/dataViews/__tests__/AdvancedDataViewEditor.spec.js +3 -3
- package/src/components/dataViews/__tests__/DataViewEditor.spec.js +7 -7
- package/src/components/dataViews/__tests__/DataViewSelect.spec.js +1 -1
- package/src/components/dataViews/__tests__/DataViewSummary.spec.js +15 -15
- package/src/components/dataViews/__tests__/DataViews.spec.js +6 -6
- package/src/components/dataViews/__tests__/Queryable.spec.js +6 -6
- package/src/components/dataViews/__tests__/Queryables.spec.js +6 -6
- package/src/components/dataViews/__tests__/SimpleDataViewEditor.spec.js +17 -17
- package/src/components/dataViews/__tests__/queryableFunctions.spec.js +4 -4
- package/src/components/dataViews/advancedForm/AdvancedDataViewEditor.js +3 -3
- package/src/components/dataViews/advancedForm/DataViewSelect.js +1 -1
- package/src/components/dataViews/advancedForm/Queryable.js +3 -3
- package/src/components/dataViews/queryableFunctions.js +35 -35
- package/src/components/dataViews/queryableProperties/Select.js +1 -1
- package/src/components/dataViews/queryableProperties/SelectField.js +5 -5
- package/src/components/dataViews/queryableProperties/__tests__/From.spec.js +1 -1
- package/src/components/dataViews/queryableProperties/__tests__/GroupBy.spec.js +19 -19
- package/src/components/dataViews/queryableProperties/__tests__/Join.spec.js +1 -1
- package/src/components/dataViews/queryableProperties/__tests__/JoinTypeIcon.spec.js +1 -1
- package/src/components/dataViews/queryableProperties/__tests__/Select.spec.js +5 -5
- package/src/components/dataViews/queryableProperties/__tests__/SelectField.spec.js +3 -3
- package/src/components/dataViews/queryableProperties/__tests__/Where.spec.js +1 -1
- package/src/components/dataViews/queryableSummaryHelpers.js +1 -1
- package/src/components/dataViews/simpleForm/AggregationForm.js +2 -2
- package/src/components/dataViews/simpleForm/DatasetForm.js +1 -1
- package/src/components/dataViews/simpleForm/FormQueryable.js +3 -3
- package/src/components/dataViews/simpleForm/InformationForm.js +2 -2
- package/src/components/dataViews/simpleForm/SelectionForm.js +1 -1
- package/src/components/dataViews/simpleForm/SimpleDataViewEditor.js +3 -3
- package/src/components/dataViews/summary/GroupBy.js +1 -1
- package/src/components/dataViews/summary/Join.js +50 -48
- package/src/components/dataViews/summary/Select.js +1 -1
- package/src/components/dataViews/summary/Where.js +6 -1
- package/src/components/functions/FunctionEditor.js +1 -1
- package/src/components/functions/Functions.js +1 -1
- package/src/components/functions/__tests__/FunctionEditor.spec.js +7 -7
- package/src/components/functions/__tests__/FunctionParams.spec.js +4 -4
- package/src/components/qualityControls/ConceptLinkNew.js +2 -2
- package/src/components/qualityControls/ConceptLinks.js +1 -1
- package/src/components/qualityControls/ContentSummary.js +23 -21
- package/src/components/qualityControls/ControlProperties.js +1 -1
- package/src/components/qualityControls/ControlPropertiesView.js +1 -1
- package/src/components/qualityControls/EditQualityControl.js +1 -1
- package/src/components/qualityControls/NewDraftQualityControl.js +1 -1
- package/src/components/qualityControls/QualityControlActions.js +4 -4
- package/src/components/qualityControls/QualityControlEditor.js +11 -20
- package/src/components/qualityControls/QualityControlEvents.js +2 -2
- package/src/components/qualityControls/QualityControlHeader.js +2 -2
- package/src/components/qualityControls/QualityControlRoutes.js +1 -1
- package/src/components/qualityControls/QualityControlScores.js +3 -3
- package/src/components/qualityControls/QualityControlSelector.js +1 -1
- package/src/components/qualityControls/QualityControlSummary.js +17 -15
- package/src/components/qualityControls/QualityControls.js +9 -11
- package/src/components/qualityControls/QualityControlsTable.js +1 -1
- package/src/components/qualityControls/SegmentationForm.js +99 -100
- package/src/components/qualityControls/SegmentationSummary.js +113 -104
- package/src/components/qualityControls/StructureLinkNew.js +2 -2
- package/src/components/qualityControls/StructureLinks.js +1 -1
- package/src/components/qualityControls/__tests__/ConceptLinkNew.spec.js +5 -5
- package/src/components/qualityControls/__tests__/ConceptLinks.spec.js +3 -3
- package/src/components/qualityControls/__tests__/ControlProperties.spec.js +6 -2
- package/src/components/qualityControls/__tests__/ControlPropertiesForm.spec.js +6 -6
- package/src/components/qualityControls/__tests__/ControlPropertiesSummary.spec.js +7 -7
- package/src/components/qualityControls/__tests__/ControlPropertiesView.spec.js +7 -2
- package/src/components/qualityControls/__tests__/EditQualityControl.spec.js +12 -12
- package/src/components/qualityControls/__tests__/InformationForm.spec.js +29 -11
- package/src/components/qualityControls/__tests__/NewDraftQualityControl.spec.js +23 -21
- package/src/components/qualityControls/__tests__/NewQualityControl.spec.js +38 -38
- package/src/components/qualityControls/__tests__/QualityBadge.spec.js +7 -7
- package/src/components/qualityControls/__tests__/QualityControl.spec.js +7 -7
- package/src/components/qualityControls/__tests__/QualityControlActions.spec.js +16 -16
- package/src/components/qualityControls/__tests__/QualityControlCrumbs.spec.js +1 -1
- package/src/components/qualityControls/__tests__/QualityControlEditor.spec.js +6 -2
- package/src/components/qualityControls/__tests__/QualityControlEvents.spec.js +3 -3
- package/src/components/qualityControls/__tests__/QualityControlHeader.spec.js +3 -3
- package/src/components/qualityControls/__tests__/QualityControlHistory.spec.js +2 -2
- package/src/components/qualityControls/__tests__/QualityControlManageDomain.spec.js +4 -4
- package/src/components/qualityControls/__tests__/QualityControlQueryModal.spec.js +2 -2
- package/src/components/qualityControls/__tests__/QualityControlRoutes.spec.js +2 -2
- package/src/components/qualityControls/__tests__/QualityControlRow.spec.js +4 -4
- package/src/components/qualityControls/__tests__/QualityControlScores.spec.js +9 -9
- package/src/components/qualityControls/__tests__/QualityControlSelector.spec.js +21 -17
- package/src/components/qualityControls/__tests__/QualityControls.spec.js +21 -21
- package/src/components/qualityControls/__tests__/QualityControlsLabelResults.spec.js +5 -5
- package/src/components/qualityControls/__tests__/QualityControlsPagination.spec.js +1 -1
- package/src/components/qualityControls/__tests__/QualityControlsTable.spec.js +1 -1
- package/src/components/qualityControls/__tests__/ScoreCriteria.spec.js +6 -6
- package/src/components/qualityControls/__tests__/ScoreCriteriaView.spec.js +6 -6
- package/src/components/qualityControls/__tests__/StructureLinkNew.spec.js +9 -9
- package/src/components/qualityControls/__tests__/StructureLinks.spec.js +6 -6
- package/src/components/qualityControls/controlProperties/__tests__/ResourceWithValidation.spec.js +9 -9
- package/src/components/qualityControls/scoreCriterias/__tests__/Deviation.spec.js +5 -5
- package/src/components/qualityControls/scoreCriterias/__tests__/ErrorCount.spec.js +10 -10
- package/src/components/qualityControls/scoreCriterias/__tests__/Percentage.spec.js +6 -6
- package/src/components/scores/QualityBar.js +1 -1
- package/src/components/scores/ScoreDetails.js +1 -1
- package/src/components/scores/ScoreGroup.js +2 -2
- package/src/components/scores/ScoreGroupForm.js +1 -1
- package/src/components/scores/__tests__/MyScoreGroups.spec.js +1 -1
- package/src/components/scores/__tests__/QualityBar.spec.js +3 -3
- package/src/components/scores/__tests__/Score.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreContext.spec.js +2 -2
- package/src/components/scores/__tests__/ScoreCrumbs.spec.js +2 -2
- package/src/components/scores/__tests__/ScoreDetails.spec.js +2 -2
- package/src/components/scores/__tests__/ScoreEvents.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreGroup.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreGroupBreadcrumbs.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreGroupForm.spec.js +3 -3
- package/src/components/scores/__tests__/ScoreGroupLink.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreGroupMessage.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreGroupPopup.spec.js +2 -2
- package/src/components/scores/__tests__/ScoreGroupsRoutes.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreGroupsTable.spec.js +2 -2
- package/src/components/scores/__tests__/ScorePagination.spec.js +1 -1
- package/src/components/scores/__tests__/ScoreStatusDecorator.spec.js +2 -2
- package/src/components/selectors/__tests__/getMyScoreGroupsColumns.spec.js +5 -5
- package/src/components/selectors/__tests__/getQualityControlScoresColumns.spec.js +3 -3
- package/src/components/selectors/getMyScoreGroupsColumns.js +1 -1
- package/src/components/selectors/getQualityControlScoresColumns.js +1 -1
- package/src/hooks/useDataViews.js +1 -1
- package/src/hooks/useExecutionGroups.js +2 -2
- package/src/hooks/useFunctions.js +1 -1
- package/src/hooks/useQualityControls.js +3 -3
- package/src/hooks/useScoreGroups.js +3 -3
- package/src/hooks/useScores.js +1 -1
- package/src/types.js +5 -3
|
@@ -135,7 +135,7 @@ describe("<NewQualityControl />", () => {
|
|
|
135
135
|
it("test save submit ", async () => {
|
|
136
136
|
const user = userEvent.setup({ delay: null });
|
|
137
137
|
const trigger = jest.fn(() =>
|
|
138
|
-
Promise.resolve({ data: { data: { id: "9", version: "1" } } })
|
|
138
|
+
Promise.resolve({ data: { data: { id: "9", version: "1" } } }),
|
|
139
139
|
);
|
|
140
140
|
|
|
141
141
|
useQualityControlCreate.mockImplementation(() => ({
|
|
@@ -151,7 +151,7 @@ describe("<NewQualityControl />", () => {
|
|
|
151
151
|
|
|
152
152
|
// Save button only appears on step 2 (last step)
|
|
153
153
|
expect(
|
|
154
|
-
rendered.queryByRole("button", { name: /save/i })
|
|
154
|
+
rendered.queryByRole("button", { name: /save/i }),
|
|
155
155
|
).not.toBeInTheDocument();
|
|
156
156
|
|
|
157
157
|
// Fill step 0 (Information)
|
|
@@ -164,41 +164,41 @@ describe("<NewQualityControl />", () => {
|
|
|
164
164
|
|
|
165
165
|
// Select a control mode
|
|
166
166
|
await user.click(
|
|
167
|
-
rendered.getByRole("option", { name: /control_mode.percentage/i })
|
|
167
|
+
rendered.getByRole("option", { name: /control_mode.percentage/i }),
|
|
168
168
|
);
|
|
169
169
|
|
|
170
170
|
// Wait for ScoreCriteria fields to appear after control_mode selection
|
|
171
171
|
await waitFor(() => {
|
|
172
172
|
expect(
|
|
173
|
-
rendered.getByPlaceholderText(/score_criteria.percentage.minimum/i)
|
|
173
|
+
rendered.getByPlaceholderText(/score_criteria.percentage.minimum/i),
|
|
174
174
|
).toBeInTheDocument();
|
|
175
175
|
});
|
|
176
176
|
|
|
177
177
|
// Fill in the 'Threshold' field
|
|
178
178
|
await user.type(
|
|
179
179
|
rendered.getByPlaceholderText(/score_criteria.percentage.minimum/i),
|
|
180
|
-
"10"
|
|
180
|
+
"10",
|
|
181
181
|
);
|
|
182
182
|
|
|
183
183
|
// Fill in the 'Goal' field
|
|
184
184
|
await user.type(
|
|
185
185
|
rendered.getByPlaceholderText(/score_criteria.percentage.goal/i),
|
|
186
|
-
"20"
|
|
186
|
+
"20",
|
|
187
187
|
);
|
|
188
188
|
|
|
189
189
|
// Navigate to step 1 (Control Properties)
|
|
190
190
|
await user.click(rendered.getByRole("button", { name: /forward/i }));
|
|
191
191
|
await waitFor(() =>
|
|
192
192
|
expect(
|
|
193
|
-
rendered.getByRole("button", { name: /back/i })
|
|
194
|
-
).toBeInTheDocument()
|
|
193
|
+
rendered.getByRole("button", { name: /back/i }),
|
|
194
|
+
).toBeInTheDocument(),
|
|
195
195
|
);
|
|
196
196
|
|
|
197
197
|
// Fill step 1 - Source selector is now in step 1
|
|
198
198
|
// Select a source
|
|
199
199
|
await user.click(rendered.getByText(/source.search.placeholder/i));
|
|
200
200
|
await user.click(
|
|
201
|
-
rendered.getByRole("option", { name: /external_source_id/i })
|
|
201
|
+
rendered.getByRole("option", { name: /external_source_id/i }),
|
|
202
202
|
);
|
|
203
203
|
|
|
204
204
|
await user.click(rendered.getByText(/^queryables.resource.type$/));
|
|
@@ -215,12 +215,12 @@ describe("<NewQualityControl />", () => {
|
|
|
215
215
|
await user.click(rendered.getByRole("button", { name: /forward/i }));
|
|
216
216
|
await waitFor(() =>
|
|
217
217
|
expect(
|
|
218
|
-
rendered.getByRole("button", { name: /save/i })
|
|
219
|
-
).toBeInTheDocument()
|
|
218
|
+
rendered.getByRole("button", { name: /save/i }),
|
|
219
|
+
).toBeInTheDocument(),
|
|
220
220
|
);
|
|
221
221
|
|
|
222
222
|
await waitFor(() =>
|
|
223
|
-
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled()
|
|
223
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled(),
|
|
224
224
|
);
|
|
225
225
|
await user.click(rendered.getByText(/save/i));
|
|
226
226
|
|
|
@@ -302,19 +302,19 @@ describe("<NewQualityControl />", () => {
|
|
|
302
302
|
score_criteria: { goal: "20", minimum: "10" },
|
|
303
303
|
status: "draft",
|
|
304
304
|
},
|
|
305
|
-
})
|
|
305
|
+
}),
|
|
306
306
|
);
|
|
307
307
|
await waitFor(() =>
|
|
308
308
|
expect(mockNavigate).toHaveBeenCalledWith(
|
|
309
|
-
linkTo.QUALITY_CONTROL({ id: "9", version: "1" })
|
|
310
|
-
)
|
|
309
|
+
linkTo.QUALITY_CONTROL({ id: "9", version: "1" }),
|
|
310
|
+
),
|
|
311
311
|
);
|
|
312
312
|
});
|
|
313
313
|
|
|
314
314
|
it("test publish submit ", async () => {
|
|
315
315
|
const user = userEvent.setup({ delay: null });
|
|
316
316
|
const trigger = jest.fn(() =>
|
|
317
|
-
Promise.resolve({ data: { data: { id: "9", version: "1" } } })
|
|
317
|
+
Promise.resolve({ data: { data: { id: "9", version: "1" } } }),
|
|
318
318
|
);
|
|
319
319
|
|
|
320
320
|
useQualityControlCreate.mockImplementation(() => ({
|
|
@@ -330,7 +330,7 @@ describe("<NewQualityControl />", () => {
|
|
|
330
330
|
|
|
331
331
|
// Publish button only appears on step 2 (last step)
|
|
332
332
|
expect(
|
|
333
|
-
rendered.queryByRole("button", { name: /publish/i })
|
|
333
|
+
rendered.queryByRole("button", { name: /publish/i }),
|
|
334
334
|
).not.toBeInTheDocument();
|
|
335
335
|
|
|
336
336
|
// Fill step 0 (Information)
|
|
@@ -343,11 +343,11 @@ describe("<NewQualityControl />", () => {
|
|
|
343
343
|
|
|
344
344
|
// Interact with dynamic form so setDfContent runs and validDfContent becomes true (required for Publish)
|
|
345
345
|
await waitFor(() =>
|
|
346
|
-
expect(rendered.getByPlaceholderText(/field1/i)).toBeInTheDocument()
|
|
346
|
+
expect(rendered.getByPlaceholderText(/field1/i)).toBeInTheDocument(),
|
|
347
347
|
);
|
|
348
348
|
await user.type(
|
|
349
349
|
rendered.getByPlaceholderText(/field1/i),
|
|
350
|
-
"field_template_modified"
|
|
350
|
+
"field_template_modified",
|
|
351
351
|
);
|
|
352
352
|
await waitFor(() => {
|
|
353
353
|
const input = rendered.getByPlaceholderText(/field1/i);
|
|
@@ -357,59 +357,59 @@ describe("<NewQualityControl />", () => {
|
|
|
357
357
|
await user.click(
|
|
358
358
|
rendered.getByRole("option", {
|
|
359
359
|
name: /quality_control.control_mode.error_count/i,
|
|
360
|
-
})
|
|
360
|
+
}),
|
|
361
361
|
);
|
|
362
362
|
|
|
363
363
|
// Wait for ScoreCriteria fields to appear after control_mode selection
|
|
364
364
|
await waitFor(() => {
|
|
365
365
|
expect(
|
|
366
366
|
rendered.getByPlaceholderText(
|
|
367
|
-
/quality_control.score_criteria.error_count.goal/i
|
|
368
|
-
)
|
|
367
|
+
/quality_control.score_criteria.error_count.goal/i,
|
|
368
|
+
),
|
|
369
369
|
).toBeInTheDocument();
|
|
370
370
|
});
|
|
371
371
|
|
|
372
372
|
// Fill in the 'Goal' field
|
|
373
373
|
await user.type(
|
|
374
374
|
rendered.getByPlaceholderText(
|
|
375
|
-
/quality_control.score_criteria.error_count.goal/i
|
|
375
|
+
/quality_control.score_criteria.error_count.goal/i,
|
|
376
376
|
),
|
|
377
|
-
"25"
|
|
377
|
+
"25",
|
|
378
378
|
);
|
|
379
379
|
// Fill in the 'Threshold' field
|
|
380
380
|
await user.type(
|
|
381
381
|
rendered.getByPlaceholderText(
|
|
382
|
-
/quality_control.score_criteria.error_count.maximum/i
|
|
382
|
+
/quality_control.score_criteria.error_count.maximum/i,
|
|
383
383
|
),
|
|
384
|
-
"50"
|
|
384
|
+
"50",
|
|
385
385
|
);
|
|
386
386
|
|
|
387
387
|
// Navigate to step 1 (Control Properties)
|
|
388
388
|
await user.click(rendered.getByRole("button", { name: /forward/i }));
|
|
389
389
|
await waitFor(() =>
|
|
390
390
|
expect(
|
|
391
|
-
rendered.getByRole("button", { name: /back/i })
|
|
392
|
-
).toBeInTheDocument()
|
|
391
|
+
rendered.getByRole("button", { name: /back/i }),
|
|
392
|
+
).toBeInTheDocument(),
|
|
393
393
|
);
|
|
394
394
|
|
|
395
395
|
// Fill step 1 - Source selector is now in step 1
|
|
396
396
|
// Select a source
|
|
397
397
|
await user.click(rendered.getByText(/source.search.placeholder/i));
|
|
398
398
|
await user.click(
|
|
399
|
-
rendered.getByRole("option", { name: /external_source_id/i })
|
|
399
|
+
rendered.getByRole("option", { name: /external_source_id/i }),
|
|
400
400
|
);
|
|
401
401
|
|
|
402
402
|
// Select the 'Reference datasets' for the resource type
|
|
403
403
|
await user.click(rendered.getByText(/^queryables.resource.type$/));
|
|
404
404
|
await user.click(
|
|
405
|
-
rendered.getByText(/queryables.resource.type.reference_datase/i)
|
|
405
|
+
rendered.getByText(/queryables.resource.type.reference_datase/i),
|
|
406
406
|
);
|
|
407
407
|
await user.click(rendered.getByRole("option", { name: /dataset1/i }));
|
|
408
408
|
|
|
409
409
|
await waitFor(() =>
|
|
410
410
|
expect(
|
|
411
|
-
rendered.getAllByRole("option", { name: /campo1/ }).length
|
|
412
|
-
).toBeGreaterThan(0)
|
|
411
|
+
rendered.getAllByRole("option", { name: /campo1/ }).length,
|
|
412
|
+
).toBeGreaterThan(0),
|
|
413
413
|
);
|
|
414
414
|
await act(async () => {
|
|
415
415
|
await user.click(rendered.getAllByRole("option", { name: /campo1/ })[0]);
|
|
@@ -421,12 +421,12 @@ describe("<NewQualityControl />", () => {
|
|
|
421
421
|
await user.click(rendered.getByRole("button", { name: /forward/i }));
|
|
422
422
|
await waitFor(() =>
|
|
423
423
|
expect(
|
|
424
|
-
rendered.getByRole("button", { name: /publish/i })
|
|
425
|
-
).toBeInTheDocument()
|
|
424
|
+
rendered.getByRole("button", { name: /publish/i }),
|
|
425
|
+
).toBeInTheDocument(),
|
|
426
426
|
);
|
|
427
427
|
|
|
428
428
|
await waitFor(() =>
|
|
429
|
-
expect(rendered.getByRole("button", { name: /publish/i })).toBeEnabled()
|
|
429
|
+
expect(rendered.getByRole("button", { name: /publish/i })).toBeEnabled(),
|
|
430
430
|
);
|
|
431
431
|
await user.click(rendered.getByRole("button", { name: /publish/i }));
|
|
432
432
|
|
|
@@ -467,12 +467,12 @@ describe("<NewQualityControl />", () => {
|
|
|
467
467
|
score_criteria: { goal: "25", maximum: "50" },
|
|
468
468
|
status: "published",
|
|
469
469
|
}),
|
|
470
|
-
})
|
|
470
|
+
}),
|
|
471
471
|
);
|
|
472
472
|
await waitFor(() =>
|
|
473
473
|
expect(mockNavigate).toHaveBeenCalledWith(
|
|
474
|
-
linkTo.QUALITY_CONTROL({ id: "9", version: "1" })
|
|
475
|
-
)
|
|
474
|
+
linkTo.QUALITY_CONTROL({ id: "9", version: "1" }),
|
|
475
|
+
),
|
|
476
476
|
);
|
|
477
477
|
});
|
|
478
478
|
});
|
|
@@ -62,7 +62,7 @@ describe("<QualityBadgeForSearch />", () => {
|
|
|
62
62
|
controlMode={"percentage"}
|
|
63
63
|
criteria={scoreCriteria}
|
|
64
64
|
latestScore={latestScore}
|
|
65
|
-
|
|
65
|
+
/>,
|
|
66
66
|
);
|
|
67
67
|
await waitForLoad(rendered);
|
|
68
68
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -90,7 +90,7 @@ describe("<QualityBadgeForSearch />", () => {
|
|
|
90
90
|
controlMode={"deviation"}
|
|
91
91
|
criteria={scoreCriteria}
|
|
92
92
|
latestScore={latestScore}
|
|
93
|
-
|
|
93
|
+
/>,
|
|
94
94
|
);
|
|
95
95
|
await waitForLoad(rendered);
|
|
96
96
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -117,7 +117,7 @@ describe("<QualityBadgeForSearch />", () => {
|
|
|
117
117
|
controlMode={"error_count"}
|
|
118
118
|
criteria={scoreCriteria}
|
|
119
119
|
latestScore={latestScore}
|
|
120
|
-
|
|
120
|
+
/>,
|
|
121
121
|
);
|
|
122
122
|
await waitForLoad(rendered);
|
|
123
123
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -138,7 +138,7 @@ describe("<QualityBadgeForSearch />", () => {
|
|
|
138
138
|
controlMode={"percentage"}
|
|
139
139
|
criteria={scoreCriteria}
|
|
140
140
|
latestScore={latestScore}
|
|
141
|
-
|
|
141
|
+
/>,
|
|
142
142
|
);
|
|
143
143
|
await waitForLoad(rendered);
|
|
144
144
|
expect(rendered.queryByText(/failed/i)).toBeInTheDocument();
|
|
@@ -157,7 +157,7 @@ describe("<QualityBadgeForSearch />", () => {
|
|
|
157
157
|
controlMode={"error_count"}
|
|
158
158
|
criteria={scoreCriteria}
|
|
159
159
|
latestScore={latestScore}
|
|
160
|
-
|
|
160
|
+
/>,
|
|
161
161
|
);
|
|
162
162
|
await waitForLoad(rendered);
|
|
163
163
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -184,7 +184,7 @@ describe("<QualityBadgeForSearch />", () => {
|
|
|
184
184
|
controlMode={"percentage"}
|
|
185
185
|
criteria={scoreCriteria}
|
|
186
186
|
latestScore={latestScore}
|
|
187
|
-
|
|
187
|
+
/>,
|
|
188
188
|
);
|
|
189
189
|
await waitForLoad(rendered);
|
|
190
190
|
|
|
@@ -212,7 +212,7 @@ describe("<QualityBadgeForSearch />", () => {
|
|
|
212
212
|
controlMode={"count"}
|
|
213
213
|
criteria={scoreCriteria}
|
|
214
214
|
latestScore={latestScore}
|
|
215
|
-
|
|
215
|
+
/>,
|
|
216
216
|
);
|
|
217
217
|
await waitForLoad(rendered);
|
|
218
218
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -51,7 +51,7 @@ describe("<QualityControl />", () => {
|
|
|
51
51
|
<TestFormWrapper context={context}>
|
|
52
52
|
<QualityControl />
|
|
53
53
|
</TestFormWrapper>,
|
|
54
|
-
renderOpts
|
|
54
|
+
renderOpts,
|
|
55
55
|
);
|
|
56
56
|
await waitForLoad(rendered);
|
|
57
57
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -63,11 +63,11 @@ describe("<QualityControl />", () => {
|
|
|
63
63
|
<TestFormWrapper context={context}>
|
|
64
64
|
<QualityControl />
|
|
65
65
|
</TestFormWrapper>,
|
|
66
|
-
renderOpts
|
|
66
|
+
renderOpts,
|
|
67
67
|
);
|
|
68
68
|
await waitForLoad(rendered);
|
|
69
69
|
expect(
|
|
70
|
-
rendered.container.querySelector(".pencil.alternate.icon")
|
|
70
|
+
rendered.container.querySelector(".pencil.alternate.icon"),
|
|
71
71
|
).not.toBeInTheDocument();
|
|
72
72
|
});
|
|
73
73
|
|
|
@@ -80,12 +80,12 @@ describe("<QualityControl />", () => {
|
|
|
80
80
|
<TestFormWrapper context={context}>
|
|
81
81
|
<QualityControl />
|
|
82
82
|
</TestFormWrapper>,
|
|
83
|
-
renderOpts
|
|
83
|
+
renderOpts,
|
|
84
84
|
);
|
|
85
85
|
await waitForLoad(rendered);
|
|
86
86
|
|
|
87
87
|
const pencilButton = rendered.container.querySelector(
|
|
88
|
-
".pencil.alternate.icon"
|
|
88
|
+
".pencil.alternate.icon",
|
|
89
89
|
);
|
|
90
90
|
userEvent.click(pencilButton);
|
|
91
91
|
|
|
@@ -106,11 +106,11 @@ describe("<QualityControl />", () => {
|
|
|
106
106
|
<TestFormWrapper context={context}>
|
|
107
107
|
<QualityControl />
|
|
108
108
|
</TestFormWrapper>,
|
|
109
|
-
renderOpts
|
|
109
|
+
renderOpts,
|
|
110
110
|
);
|
|
111
111
|
await waitForLoad(rendered);
|
|
112
112
|
await waitFor(() =>
|
|
113
|
-
expect(rendered.queryByText(/information/i)).not.toBeInTheDocument()
|
|
113
|
+
expect(rendered.queryByText(/information/i)).not.toBeInTheDocument(),
|
|
114
114
|
);
|
|
115
115
|
});
|
|
116
116
|
});
|
|
@@ -19,7 +19,7 @@ jest.mock("@truedat/core/hooks", () => ({
|
|
|
19
19
|
|
|
20
20
|
jest.mock("@truedat/qx/hooks/useQualityControls", () => {
|
|
21
21
|
const { qualityControlData } = jest.requireActual(
|
|
22
|
-
"./__fixtures__/qualityControlHelper"
|
|
22
|
+
"./__fixtures__/qualityControlHelper",
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
return {
|
|
@@ -45,7 +45,7 @@ jest.mock("@truedat/qx/hooks/useQualityControls", () => {
|
|
|
45
45
|
|
|
46
46
|
jest.mock("@truedat/qx/hooks/useScoreGroups", () => {
|
|
47
47
|
const { scoreGroup } = jest.requireActual(
|
|
48
|
-
"@truedat/qx/components/scores/__tests__/__fixtures__/scoreHelper"
|
|
48
|
+
"@truedat/qx/components/scores/__tests__/__fixtures__/scoreHelper",
|
|
49
49
|
);
|
|
50
50
|
|
|
51
51
|
return {
|
|
@@ -84,7 +84,7 @@ describe("<QualityControlActions />", () => {
|
|
|
84
84
|
<TestFormWrapper context={{ ...context }}>
|
|
85
85
|
<QualityControlActions />
|
|
86
86
|
</TestFormWrapper>,
|
|
87
|
-
renderOpts
|
|
87
|
+
renderOpts,
|
|
88
88
|
);
|
|
89
89
|
await waitForLoad(rendered);
|
|
90
90
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -99,7 +99,7 @@ describe("<QualityControlActions />", () => {
|
|
|
99
99
|
<TestFormWrapper context={{ ...newContext }}>
|
|
100
100
|
<QualityControlActions />
|
|
101
101
|
</TestFormWrapper>,
|
|
102
|
-
renderOpts
|
|
102
|
+
renderOpts,
|
|
103
103
|
);
|
|
104
104
|
await waitForLoad(rendered);
|
|
105
105
|
expect(rendered.getByText(/edit/i)).toBeInTheDocument();
|
|
@@ -110,7 +110,7 @@ describe("<QualityControlActions />", () => {
|
|
|
110
110
|
<TestFormWrapper context={{ ...context }}>
|
|
111
111
|
<QualityControlActions />
|
|
112
112
|
</TestFormWrapper>,
|
|
113
|
-
renderOpts
|
|
113
|
+
renderOpts,
|
|
114
114
|
);
|
|
115
115
|
await waitForLoad(rendered);
|
|
116
116
|
expect(rendered.getByText(/actions.create_draft/i)).toBeInTheDocument();
|
|
@@ -125,7 +125,7 @@ describe("<QualityControlActions />", () => {
|
|
|
125
125
|
>
|
|
126
126
|
<QualityControlActions />
|
|
127
127
|
</TestFormWrapper>,
|
|
128
|
-
renderOpts
|
|
128
|
+
renderOpts,
|
|
129
129
|
);
|
|
130
130
|
await waitForLoad(rendered);
|
|
131
131
|
expect(rendered.getByText(/enable/i)).toBeInTheDocument();
|
|
@@ -137,13 +137,13 @@ describe("<QualityControlActions />", () => {
|
|
|
137
137
|
<TestFormWrapper context={{ ...context }}>
|
|
138
138
|
<QualityControlActions />
|
|
139
139
|
</TestFormWrapper>,
|
|
140
|
-
renderOpts
|
|
140
|
+
renderOpts,
|
|
141
141
|
);
|
|
142
142
|
await waitForLoad(rendered);
|
|
143
143
|
|
|
144
144
|
await user.click(rendered.getByText(/enable|disable/i));
|
|
145
145
|
await waitFor(() =>
|
|
146
|
-
expect(rendered.getByText(/confirmation.yes/i)).toBeInTheDocument()
|
|
146
|
+
expect(rendered.getByText(/confirmation.yes/i)).toBeInTheDocument(),
|
|
147
147
|
);
|
|
148
148
|
await user.click(rendered.getByText(/confirmation.yes/i));
|
|
149
149
|
await waitFor(() => expect(mutate).toHaveBeenCalledTimes(1));
|
|
@@ -155,19 +155,19 @@ describe("<QualityControlActions />", () => {
|
|
|
155
155
|
<TestFormWrapper context={{ ...context, actions }}>
|
|
156
156
|
<QualityControlActions />
|
|
157
157
|
</TestFormWrapper>,
|
|
158
|
-
renderOpts
|
|
158
|
+
renderOpts,
|
|
159
159
|
);
|
|
160
160
|
await waitForLoad(rendered);
|
|
161
161
|
|
|
162
162
|
expect(
|
|
163
|
-
rendered.getByText(/actions.create_draft/i).closest("a")
|
|
163
|
+
rendered.getByText(/actions.create_draft/i).closest("a"),
|
|
164
164
|
).toHaveAttribute(
|
|
165
165
|
"href",
|
|
166
|
-
`/qualityControls/${qualityControl.id}/version/${qualityControl.version}/new_draft
|
|
166
|
+
`/qualityControls/${qualityControl.id}/version/${qualityControl.version}/new_draft`,
|
|
167
167
|
);
|
|
168
168
|
expect(rendered.getByText(/edit/i).closest("a")).toHaveAttribute(
|
|
169
169
|
"href",
|
|
170
|
-
`/qualityControls/${qualityControl.id}/version/${qualityControl.version}/edit
|
|
170
|
+
`/qualityControls/${qualityControl.id}/version/${qualityControl.version}/edit`,
|
|
171
171
|
);
|
|
172
172
|
});
|
|
173
173
|
|
|
@@ -177,12 +177,12 @@ describe("<QualityControlActions />", () => {
|
|
|
177
177
|
<TestFormWrapper context={{ ...context, actions: ["publish"] }}>
|
|
178
178
|
<QualityControlActions />
|
|
179
179
|
</TestFormWrapper>,
|
|
180
|
-
renderOpts
|
|
180
|
+
renderOpts,
|
|
181
181
|
);
|
|
182
182
|
await waitForLoad(rendered);
|
|
183
183
|
await user.click(rendered.getByText(/publish/i));
|
|
184
184
|
await waitFor(() =>
|
|
185
|
-
expect(rendered.getByText(/publish/i)).toBeInTheDocument()
|
|
185
|
+
expect(rendered.getByText(/publish/i)).toBeInTheDocument(),
|
|
186
186
|
);
|
|
187
187
|
});
|
|
188
188
|
|
|
@@ -192,14 +192,14 @@ describe("<QualityControlActions />", () => {
|
|
|
192
192
|
<TestFormWrapper context={{ ...context }}>
|
|
193
193
|
<QualityControlActions />
|
|
194
194
|
</TestFormWrapper>,
|
|
195
|
-
renderOpts
|
|
195
|
+
renderOpts,
|
|
196
196
|
);
|
|
197
197
|
await waitForLoad(rendered);
|
|
198
198
|
|
|
199
199
|
await user.click(rendered.getByText(/actions.do_execution/i));
|
|
200
200
|
|
|
201
201
|
await waitFor(() =>
|
|
202
|
-
expect(rendered.queryByText("actions.create")).toBeEnabled()
|
|
202
|
+
expect(rendered.queryByText("actions.create")).toBeEnabled(),
|
|
203
203
|
);
|
|
204
204
|
await user.click(rendered.getByText("actions.create"));
|
|
205
205
|
await waitFor(() => expect(mockNavigate.mock.calls.length).toBe(1));
|
|
@@ -9,7 +9,7 @@ describe("<QualityControlCrumbs />", () => {
|
|
|
9
9
|
it("matches the latest snapshot", () => {
|
|
10
10
|
const { container } = render(
|
|
11
11
|
<QualityControlCrumbs qualityControl={qualityControlData()} />,
|
|
12
|
-
renderOpts
|
|
12
|
+
renderOpts,
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
expect(container).toMatchSnapshot();
|
|
@@ -477,7 +477,9 @@ describe("<QualityControlEditor />", () => {
|
|
|
477
477
|
expect(
|
|
478
478
|
rendered.queryByRole("button", { name: /back/i }),
|
|
479
479
|
).not.toBeInTheDocument();
|
|
480
|
-
expect(
|
|
480
|
+
expect(
|
|
481
|
+
rendered.container.querySelector("i.red.x.icon"),
|
|
482
|
+
).toBeInTheDocument();
|
|
481
483
|
});
|
|
482
484
|
});
|
|
483
485
|
|
|
@@ -504,7 +506,9 @@ describe("<QualityControlEditor />", () => {
|
|
|
504
506
|
expect(
|
|
505
507
|
rendered.queryByRole("button", { name: /back/i }),
|
|
506
508
|
).not.toBeInTheDocument();
|
|
507
|
-
expect(
|
|
509
|
+
expect(
|
|
510
|
+
rendered.getByRole("button", { name: /forward/i }),
|
|
511
|
+
).toBeInTheDocument();
|
|
508
512
|
});
|
|
509
513
|
});
|
|
510
514
|
|
|
@@ -60,7 +60,7 @@ describe("<QualityControlEvents />", () => {
|
|
|
60
60
|
<QxContext.Provider value={contextValue}>
|
|
61
61
|
<QualityControlEvents />
|
|
62
62
|
</QxContext.Provider>,
|
|
63
|
-
renderOpts
|
|
63
|
+
renderOpts,
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -88,7 +88,7 @@ describe("<QualityControlEvents />", () => {
|
|
|
88
88
|
<QxContext.Provider value={contextValue}>
|
|
89
89
|
<QualityControlEvents />
|
|
90
90
|
</QxContext.Provider>,
|
|
91
|
-
renderOpts
|
|
91
|
+
renderOpts,
|
|
92
92
|
);
|
|
93
93
|
|
|
94
94
|
expect(rendered.container.querySelector(".segment.loading")).toBeTruthy();
|
|
@@ -110,7 +110,7 @@ describe("<QualityControlEvents />", () => {
|
|
|
110
110
|
<QxContext.Provider value={contextValue}>
|
|
111
111
|
<QualityControlEvents />
|
|
112
112
|
</QxContext.Provider>,
|
|
113
|
-
renderOpts
|
|
113
|
+
renderOpts,
|
|
114
114
|
);
|
|
115
115
|
|
|
116
116
|
expect(rendered.container.querySelector(".segment.loading")).toBeTruthy();
|
|
@@ -20,7 +20,7 @@ jest.mock("@truedat/lm/hooks/useRelations", () => ({
|
|
|
20
20
|
|
|
21
21
|
jest.mock("@truedat/qx/hooks/useQualityControls", () => {
|
|
22
22
|
const { qualityControlData } = jest.requireActual(
|
|
23
|
-
"@truedat/qx/components/qualityControls/__tests__/__fixtures__/qualityControlHelper"
|
|
23
|
+
"@truedat/qx/components/qualityControls/__tests__/__fixtures__/qualityControlHelper",
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
return {
|
|
@@ -93,7 +93,7 @@ describe("<QualityControlHeader />", () => {
|
|
|
93
93
|
|
|
94
94
|
expect(rendered.container).toMatchSnapshot();
|
|
95
95
|
expect(
|
|
96
|
-
rendered.queryByText("quality_control.props.active.true")
|
|
96
|
+
rendered.queryByText("quality_control.props.active.true"),
|
|
97
97
|
).toBeInTheDocument();
|
|
98
98
|
});
|
|
99
99
|
|
|
@@ -105,7 +105,7 @@ describe("<QualityControlHeader />", () => {
|
|
|
105
105
|
await waitForLoad(rendered);
|
|
106
106
|
|
|
107
107
|
expect(
|
|
108
|
-
rendered.queryByText("quality_control.props.active.false")
|
|
108
|
+
rendered.queryByText("quality_control.props.active.false"),
|
|
109
109
|
).toBeInTheDocument();
|
|
110
110
|
});
|
|
111
111
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { qualityControlData } from "./__fixtures__/qualityControlHelper";
|
|
2
1
|
import { messages } from "@truedat/qx/components/__tests__/__fixtures__/helper";
|
|
3
2
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
4
3
|
import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
|
|
5
4
|
import QualityControlsHistory from "../QualityControlHistory";
|
|
5
|
+
import { qualityControlData } from "./__fixtures__/qualityControlHelper";
|
|
6
6
|
|
|
7
7
|
const renderOpts = { messages };
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ describe("<QualityControlsHistory />", () => {
|
|
|
13
13
|
<TestFormWrapper context={context}>
|
|
14
14
|
<QualityControlsHistory />
|
|
15
15
|
</TestFormWrapper>,
|
|
16
|
-
renderOpts
|
|
16
|
+
renderOpts,
|
|
17
17
|
);
|
|
18
18
|
await waitForLoad(rendered);
|
|
19
19
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -10,7 +10,7 @@ import { qualityControlData } from "./__fixtures__/qualityControlHelper";
|
|
|
10
10
|
|
|
11
11
|
jest.mock("@truedat/qx/hooks/useQualityControls", () => {
|
|
12
12
|
const { qualityControlData } = jest.requireActual(
|
|
13
|
-
"./__fixtures__/qualityControlHelper"
|
|
13
|
+
"./__fixtures__/qualityControlHelper",
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
return {
|
|
@@ -68,7 +68,7 @@ describe("<QualityControlManageDomain />", () => {
|
|
|
68
68
|
<TestFormWrapper context={context}>
|
|
69
69
|
<QualityControlManageDomain handleOpen={handleOpen} />
|
|
70
70
|
</TestFormWrapper>,
|
|
71
|
-
renderOpts
|
|
71
|
+
renderOpts,
|
|
72
72
|
);
|
|
73
73
|
await waitFor(() => {
|
|
74
74
|
expect(queryByText(/loading/i)).not.toBeInTheDocument();
|
|
@@ -79,7 +79,7 @@ describe("<QualityControlManageDomain />", () => {
|
|
|
79
79
|
|
|
80
80
|
it("calls updateDomain when update button is clicked", async () => {
|
|
81
81
|
const trigger = jest.fn(() =>
|
|
82
|
-
Promise.resolve({ data: { data: { id: "9" } } })
|
|
82
|
+
Promise.resolve({ data: { data: { id: "9" } } }),
|
|
83
83
|
);
|
|
84
84
|
useQualityControlUpdateDomain.mockImplementation(() => ({
|
|
85
85
|
trigger,
|
|
@@ -90,7 +90,7 @@ describe("<QualityControlManageDomain />", () => {
|
|
|
90
90
|
<TestFormWrapper context={context}>
|
|
91
91
|
<QualityControlManageDomain handleOpen={handleOpen} />
|
|
92
92
|
</TestFormWrapper>,
|
|
93
|
-
renderOpts
|
|
93
|
+
renderOpts,
|
|
94
94
|
);
|
|
95
95
|
await waitFor(() => {
|
|
96
96
|
expect(queryByText(/loading/i)).not.toBeInTheDocument();
|
|
@@ -58,7 +58,7 @@ describe("<QualityControlQueryModal />", () => {
|
|
|
58
58
|
it("matches the latest snapshot", async () => {
|
|
59
59
|
const rendered = render(
|
|
60
60
|
<QualityControlQueryModal qualityControlId={8} />,
|
|
61
|
-
renderOpts
|
|
61
|
+
renderOpts,
|
|
62
62
|
);
|
|
63
63
|
await waitForLoad(rendered);
|
|
64
64
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -68,7 +68,7 @@ describe("<QualityControlQueryModal />", () => {
|
|
|
68
68
|
const user = userEvent.setup({ delay: null });
|
|
69
69
|
const rendered = render(
|
|
70
70
|
<QualityControlQueryModal qualityControlId={8} />,
|
|
71
|
-
renderOpts
|
|
71
|
+
renderOpts,
|
|
72
72
|
);
|
|
73
73
|
await waitForLoad(rendered);
|
|
74
74
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
|
-
import QualityControlRoutes from "../QualityControlRoutes";
|
|
4
3
|
import { useAuthorized } from "@truedat/core/hooks/useAuthorized";
|
|
5
4
|
import {
|
|
6
5
|
QUALITY_CONTROLS_DEPRECATED,
|
|
@@ -13,6 +12,7 @@ import {
|
|
|
13
12
|
QUALITY_CONTROL_HISTORY,
|
|
14
13
|
QUALITY_CONTROL_SCORES,
|
|
15
14
|
} from "@truedat/core/routes";
|
|
15
|
+
import QualityControlRoutes from "../QualityControlRoutes";
|
|
16
16
|
|
|
17
17
|
jest.mock("@truedat/core/hooks/useAuthorized", () => ({
|
|
18
18
|
useAuthorized: jest.fn(() => true),
|
|
@@ -81,7 +81,7 @@ describe("<QualityControlRoutes />", () => {
|
|
|
81
81
|
routes: [
|
|
82
82
|
QUALITY_CONTROL_NEW_DRAFT.replace(":id", "123").replace(
|
|
83
83
|
":version",
|
|
84
|
-
"1"
|
|
84
|
+
"1",
|
|
85
85
|
),
|
|
86
86
|
],
|
|
87
87
|
});
|