@truedat/dq 7.5.9 → 7.5.11
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 +41 -71
- package/src/components/ConceptRules.js +1 -2
- package/src/components/ConditionCell.js +17 -16
- package/src/components/ConditionSummary.js +1 -1
- package/src/components/EditRule.js +0 -1
- package/src/components/ExecutionForm.js +2 -4
- package/src/components/ExecutionGroup.js +0 -1
- package/src/components/ExecutionGroupBreadcrumbs.js +1 -2
- package/src/components/ExecutionGroupContent.js +3 -3
- package/src/components/ExecutionGroupLink.js +1 -2
- package/src/components/ExecutionGroupLoader.js +1 -1
- package/src/components/ExecutionGroupMessage.js +0 -1
- package/src/components/ExecutionGroups.js +1 -2
- package/src/components/ExecutionGroupsTable.js +0 -1
- package/src/components/ExecutionPopup.js +1 -1
- package/src/components/FieldSummary.js +1 -2
- package/src/components/ImplementationActions.js +11 -6
- package/src/components/ImplementationCrumbs.js +2 -3
- package/src/components/ImplementationExecutionFilters.js +2 -2
- package/src/components/ImplementationExecutions.js +2 -2
- package/src/components/ImplementationResultBar.js +14 -15
- package/src/components/ImplementationSearchResults.js +6 -4
- package/src/components/ImplementationStructureDelete.js +0 -1
- package/src/components/ImplementationStructureLink.js +1 -2
- package/src/components/ImplementationStructureLinksActions.js +1 -2
- package/src/components/ImplementationStructures.js +2 -2
- package/src/components/ImplementationStructuresNew.js +3 -4
- package/src/components/ImplementationSummary.js +3 -7
- package/src/components/Implementations.js +3 -3
- package/src/components/ImplementationsHeader.js +4 -5
- package/src/components/ImplementationsRoutes.js +379 -322
- package/src/components/ImplementationsUploadButton.js +0 -1
- package/src/components/InformationSummary.js +0 -1
- package/src/components/JoinTypeIcon.js +8 -9
- package/src/components/MoveImplementation.js +0 -1
- package/src/components/NewBasicRuleImplementation.js +4 -4
- package/src/components/NewRemediation.js +1 -1
- package/src/components/NewRule.js +1 -2
- package/src/components/NewRuleImplementation.js +4 -4
- package/src/components/QualityEventError.js +4 -9
- package/src/components/QualityRoutes.js +52 -26
- package/src/components/RawContent.js +0 -1
- package/src/components/RemediationCrumbs.js +2 -2
- package/src/components/RemediationForm.js +4 -4
- package/src/components/RemediationPlan.js +4 -5
- package/src/components/Rule.js +0 -1
- package/src/components/RuleActions.js +13 -7
- package/src/components/RuleCrumbs.js +2 -3
- package/src/components/RuleEventDecorator.js +0 -1
- package/src/components/RuleEventRow.js +0 -1
- package/src/components/RuleEvents.js +0 -1
- package/src/components/RuleForm.js +11 -21
- package/src/components/RuleFormImplementations.js +0 -1
- package/src/components/RuleImplementation.js +0 -1
- package/src/components/RuleImplementationActions.js +2 -2
- package/src/components/RuleImplementationEventRow.js +0 -1
- package/src/components/RuleImplementationEvents.js +0 -1
- package/src/components/RuleImplementationHistory.js +1 -2
- package/src/components/RuleImplementationHistoryRow.js +1 -2
- package/src/components/RuleImplementationLink.js +1 -2
- package/src/components/RuleImplementationLoader.js +2 -2
- package/src/components/RuleImplementationProperties.js +3 -4
- package/src/components/RuleImplementationResultTabs.js +7 -11
- package/src/components/RuleImplementationResults.js +2 -3
- package/src/components/RuleImplementationResultsLink.js +1 -2
- package/src/components/RuleImplementationRow.js +0 -1
- package/src/components/RuleImplementationTabs.js +31 -21
- package/src/components/RuleImplementationsActions.js +1 -2
- package/src/components/RuleImplementationsDownload.js +0 -1
- package/src/components/RuleImplementationsFromRuleLoader.js +2 -2
- package/src/components/RuleImplementationsLabelResults.js +5 -6
- package/src/components/RuleImplementationsOptions.js +1 -2
- package/src/components/RuleImplementationsSearch.js +0 -1
- package/src/components/RuleImplementationsTable.js +1 -1
- package/src/components/RuleLink.js +1 -2
- package/src/components/RuleLoader.js +2 -2
- package/src/components/RuleProperties.js +4 -6
- package/src/components/RuleResult.js +0 -1
- package/src/components/RuleResultDecorator.js +5 -6
- package/src/components/RuleResultDetails.js +0 -4
- package/src/components/RuleResultRemediationLoader.js +1 -1
- package/src/components/RuleResultRemediations.js +0 -1
- package/src/components/RuleResultRow.js +1 -2
- package/src/components/RuleResultSegmentRow.js +0 -1
- package/src/components/RuleResultSegments.js +0 -1
- package/src/components/RuleResultSegmentsLoader.js +1 -1
- package/src/components/RuleResultsRoutes.js +41 -41
- package/src/components/RuleResultsTable.js +0 -1
- package/src/components/RuleResultsUpload.js +0 -1
- package/src/components/RuleRoutes.js +72 -67
- package/src/components/RuleRow.js +1 -2
- package/src/components/RuleSelectionForm.js +0 -1
- package/src/components/RuleSelector.js +0 -1
- package/src/components/RuleSubscriptionLoader.js +1 -1
- package/src/components/RuleSummary.js +1 -1
- package/src/components/RuleTabs.js +8 -7
- package/src/components/Rules.js +2 -2
- package/src/components/RulesActions.js +1 -2
- package/src/components/RulesLabelResults.js +2 -3
- package/src/components/RulesRoutes.js +32 -21
- package/src/components/RulesSearch.js +0 -1
- package/src/components/RulesUploadButton.js +0 -1
- package/src/components/Subscription.js +3 -3
- package/src/components/TaxonomySummary.js +0 -1
- package/src/components/__tests__/ConceptRules.spec.js +0 -1
- package/src/components/__tests__/ConceptRulesLoader.spec.js +19 -22
- package/src/components/__tests__/ConditionSummary.spec.js +0 -1
- package/src/components/__tests__/EditRule.spec.js +10 -7
- package/src/components/__tests__/ExecutionForm.spec.js +5 -14
- package/src/components/__tests__/ExecutionGroup.spec.js +18 -11
- package/src/components/__tests__/ExecutionGroupBreadcrumbs.spec.js +0 -1
- package/src/components/__tests__/ExecutionGroupContent.spec.js +0 -2
- package/src/components/__tests__/ExecutionGroupLink.spec.js +0 -1
- package/src/components/__tests__/ExecutionGroupLoader.spec.js +18 -18
- package/src/components/__tests__/ExecutionGroupMessage.spec.js +9 -13
- package/src/components/__tests__/ExecutionGroups.spec.js +0 -1
- package/src/components/__tests__/ExecutionGroupsTable.spec.js +0 -1
- package/src/components/__tests__/ExecutionPopup.spec.js +0 -1
- package/src/components/__tests__/ImplementationActions.spec.js +0 -1
- package/src/components/__tests__/ImplementationExecutionFilters.spec.js +2 -3
- package/src/components/__tests__/ImplementationExecutions.spec.js +2 -3
- package/src/components/__tests__/ImplementationResultBar.spec.js +44 -27
- package/src/components/__tests__/ImplementationSearchResults.spec.js +13 -22
- package/src/components/__tests__/ImplementationStructureDelete.spec.js +0 -1
- package/src/components/__tests__/ImplementationStructureLink.spec.js +0 -1
- package/src/components/__tests__/ImplementationStructures.spec.js +1 -2
- package/src/components/__tests__/ImplementationStructuresNew.spec.js +43 -23
- package/src/components/__tests__/ImplementationSummary.spec.js +65 -37
- package/src/components/__tests__/Implementations.spec.js +4 -10
- package/src/components/__tests__/ImplementationsRoutes.spec.js +133 -0
- package/src/components/__tests__/ImplementationsUploadButton.spec.js +51 -32
- package/src/components/__tests__/InformationSummary.spec.js +0 -1
- package/src/components/__tests__/MoveImplementation.spec.js +0 -1
- package/src/components/__tests__/NewBasicRuleImplementation.spec.js +19 -23
- package/src/components/__tests__/NewRule.spec.js +23 -14
- package/src/components/__tests__/NewRuleImplementation.spec.js +101 -101
- package/src/components/__tests__/QualityEventError.spec.js +4 -4
- package/src/components/__tests__/QualityRoutes.spec.js +86 -0
- package/src/components/__tests__/RawContent.spec.js +0 -1
- package/src/components/__tests__/RemediationForm.spec.js +0 -2
- package/src/components/__tests__/RemediationPlan.spec.js +23 -29
- package/src/components/__tests__/Rule.spec.js +19 -5
- package/src/components/__tests__/RuleActions.spec.js +11 -8
- package/src/components/__tests__/RuleCrumbs.spec.js +12 -11
- package/src/components/__tests__/RuleEventDecorator.spec.js +0 -1
- package/src/components/__tests__/RuleEventRow.spec.js +0 -1
- package/src/components/__tests__/RuleEvents.spec.js +0 -1
- package/src/components/__tests__/RuleForm.spec.js +30 -73
- package/src/components/__tests__/RuleFormImplementations.spec.js +15 -16
- package/src/components/__tests__/RuleImplementation.spec.js +23 -30
- package/src/components/__tests__/RuleImplementationEvents.spec.js +0 -1
- package/src/components/__tests__/RuleImplementationHistory.spec.js +7 -22
- package/src/components/__tests__/RuleImplementationLoader.spec.js +2 -3
- package/src/components/__tests__/RuleImplementationProperties.spec.js +56 -82
- package/src/components/__tests__/RuleImplementationResultTabs.spec.js +5 -17
- package/src/components/__tests__/RuleImplementationResults.spec.js +2 -3
- package/src/components/__tests__/RuleImplementationResultsLink.spec.js +5 -5
- package/src/components/__tests__/RuleImplementationTabs.spec.js +0 -1
- package/src/components/__tests__/RuleImplementationsActions.spec.js +58 -35
- package/src/components/__tests__/RuleImplementationsFromRuleLoader.spec.js +34 -24
- package/src/components/__tests__/RuleImplementationsLoader.spec.js +22 -14
- package/src/components/__tests__/RuleImplementationsOptions.spec.js +0 -1
- package/src/components/__tests__/RuleImplementationsSearch.spec.js +14 -23
- package/src/components/__tests__/RuleImplementationsTable.spec.js +30 -56
- package/src/components/__tests__/RuleProperties.spec.js +4 -10
- package/src/components/__tests__/RuleResult.spec.js +10 -22
- package/src/components/__tests__/RuleResultDecorator.spec.js +36 -26
- package/src/components/__tests__/RuleResultDetails.spec.js +24 -57
- package/src/components/__tests__/RuleResultRemediationLoader.spec.js +15 -14
- package/src/components/__tests__/RuleResultRemediations.spec.js +2 -3
- package/src/components/__tests__/RuleResultRoutes.spec.js +83 -59
- package/src/components/__tests__/RuleResultRow.spec.js +0 -1
- package/src/components/__tests__/RuleResultSegmentRow.spec.js +46 -83
- package/src/components/__tests__/RuleResultSegments.spec.js +5 -10
- package/src/components/__tests__/RuleResultSegmentsLoader.spec.js +15 -14
- package/src/components/__tests__/RuleResultsUpload.spec.js +0 -1
- package/src/components/__tests__/RuleRoutes.spec.js +90 -14
- package/src/components/__tests__/RuleRow.spec.js +0 -2
- package/src/components/__tests__/RuleSearch.spec.js +10 -15
- package/src/components/__tests__/RuleSelectionForm.spec.js +0 -1
- package/src/components/__tests__/RuleSubscriptionLoader.spec.js +19 -18
- package/src/components/__tests__/RuleSummary.spec.js +0 -1
- package/src/components/__tests__/Rules.spec.js +58 -24
- package/src/components/__tests__/RulesActions.spec.js +17 -13
- package/src/components/__tests__/RulesLoader.spec.js +9 -9
- package/src/components/__tests__/RulesRoutes.spec.js +51 -0
- package/src/components/__tests__/RulesUploadButton.spec.js +0 -1
- package/src/components/__tests__/Subscription.spec.js +18 -19
- package/src/components/__tests__/TaxonomySummary.spec.js +0 -1
- package/src/components/__tests__/__snapshots__/ConceptRules.spec.js.snap +3 -0
- package/src/components/__tests__/__snapshots__/ConditionSummary.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/EditRule.spec.js.snap +120 -80
- package/src/components/__tests__/__snapshots__/ExecutionForm.spec.js.snap +6 -6
- package/src/components/__tests__/__snapshots__/ExecutionGroup.spec.js.snap +12 -10
- package/src/components/__tests__/__snapshots__/ExecutionGroupBreadcrumbs.spec.js.snap +2 -1
- package/src/components/__tests__/__snapshots__/ExecutionGroupLink.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/ExecutionGroupMessage.spec.js.snap +36 -9
- package/src/components/__tests__/__snapshots__/ExecutionGroups.spec.js.snap +9 -6
- package/src/components/__tests__/__snapshots__/ExecutionGroupsTable.spec.js.snap +6 -5
- package/src/components/__tests__/__snapshots__/ImplementationActions.spec.js.snap +6 -5
- package/src/components/__tests__/__snapshots__/ImplementationExecutionFilters.spec.js.snap +4 -0
- package/src/components/__tests__/__snapshots__/ImplementationExecutions.spec.js.snap +10 -5
- package/src/components/__tests__/__snapshots__/ImplementationResultBar.spec.js.snap +10 -20
- package/src/components/__tests__/__snapshots__/ImplementationSearchResults.spec.js.snap +249 -71
- package/src/components/__tests__/__snapshots__/ImplementationStructureLink.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/ImplementationStructures.spec.js.snap +3 -1
- package/src/components/__tests__/__snapshots__/ImplementationStructuresNew.spec.js.snap +220 -9
- package/src/components/__tests__/__snapshots__/ImplementationSummary.spec.js.snap +312 -166
- package/src/components/__tests__/__snapshots__/Implementations.spec.js.snap +9 -21
- package/src/components/__tests__/__snapshots__/ImplementationsRoutes.spec.js.snap +37 -0
- package/src/components/__tests__/__snapshots__/InformationSummary.spec.js.snap +10 -10
- package/src/components/__tests__/__snapshots__/MoveImplementation.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/NewBasicRuleImplementation.spec.js.snap +76 -20
- package/src/components/__tests__/__snapshots__/NewRule.spec.js.snap +125 -54
- package/src/components/__tests__/__snapshots__/NewRuleImplementation.spec.js.snap +157 -79
- package/src/components/__tests__/__snapshots__/QualityEventError.spec.js.snap +31 -10
- package/src/components/__tests__/__snapshots__/QualityRoutes.spec.js.snap +51 -0
- package/src/components/__tests__/__snapshots__/RawContent.spec.js.snap +26 -26
- package/src/components/__tests__/__snapshots__/RemediationForm.spec.js.snap +4 -5
- package/src/components/__tests__/__snapshots__/RemediationPlan.spec.js.snap +2 -4
- package/src/components/__tests__/__snapshots__/Rule.spec.js.snap +42 -41
- package/src/components/__tests__/__snapshots__/RuleActions.spec.js.snap +41 -43
- package/src/components/__tests__/__snapshots__/RuleCrumbs.spec.js.snap +40 -60
- package/src/components/__tests__/__snapshots__/RuleForm.spec.js.snap +194 -45
- package/src/components/__tests__/__snapshots__/RuleFormImplementations.spec.js.snap +20 -8
- package/src/components/__tests__/__snapshots__/RuleImplementation.spec.js.snap +23 -14
- package/src/components/__tests__/__snapshots__/RuleImplementationEvents.spec.js.snap +3 -3
- package/src/components/__tests__/__snapshots__/RuleImplementationHistory.spec.js.snap +7 -4
- package/src/components/__tests__/__snapshots__/RuleImplementationProperties.spec.js.snap +123 -98
- package/src/components/__tests__/__snapshots__/RuleImplementationResultTabs.spec.js.snap +2 -1
- package/src/components/__tests__/__snapshots__/RuleImplementationResults.spec.js.snap +12 -6
- package/src/components/__tests__/__snapshots__/RuleImplementationResultsLink.spec.js.snap +8 -5
- package/src/components/__tests__/__snapshots__/RuleImplementationTabs.spec.js.snap +14 -7
- package/src/components/__tests__/__snapshots__/RuleImplementationsActions.spec.js.snap +105 -68
- package/src/components/__tests__/__snapshots__/RuleImplementationsFromRuleLoader.spec.js.snap +1 -35
- package/src/components/__tests__/__snapshots__/RuleImplementationsLoader.spec.js.snap +1 -31
- package/src/components/__tests__/__snapshots__/RuleImplementationsOptions.spec.js.snap +4 -4
- package/src/components/__tests__/__snapshots__/RuleImplementationsSearch.spec.js.snap +46 -15
- package/src/components/__tests__/__snapshots__/RuleImplementationsTable.spec.js.snap +54 -107
- package/src/components/__tests__/__snapshots__/RuleProperties.spec.js.snap +3 -3
- package/src/components/__tests__/__snapshots__/RuleResult.spec.js.snap +17 -1
- package/src/components/__tests__/__snapshots__/RuleResultDecorator.spec.js.snap +4 -4
- package/src/components/__tests__/__snapshots__/RuleResultDetails.spec.js.snap +17 -17
- package/src/components/__tests__/__snapshots__/RuleResultRoutes.spec.js.snap +4 -321
- package/src/components/__tests__/__snapshots__/RuleResultSegments.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/RuleResultsUpload.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/RuleRoutes.spec.js.snap +32 -1
- package/src/components/__tests__/__snapshots__/RuleRow.spec.js.snap +4 -6
- package/src/components/__tests__/__snapshots__/RuleSearch.spec.js.snap +46 -15
- package/src/components/__tests__/__snapshots__/RuleSelectionForm.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/RuleSubscriptionLoader.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/Rules.spec.js.snap +128 -173
- package/src/components/__tests__/__snapshots__/RulesActions.spec.js.snap +5 -7
- package/src/components/__tests__/__snapshots__/RulesRoutes.spec.js.snap +60 -0
- package/src/components/__tests__/__snapshots__/Subscription.spec.js.snap +127 -184
- package/src/components/ruleImplementationForm/DatasetForm.js +8 -7
- package/src/components/ruleImplementationForm/DateField.js +0 -1
- package/src/components/ruleImplementationForm/DateTimeField.js +0 -1
- package/src/components/ruleImplementationForm/FieldModifier.js +3 -3
- package/src/components/ruleImplementationForm/FieldsGrid.js +1 -1
- package/src/components/ruleImplementationForm/FieldsGroup.js +3 -3
- package/src/components/ruleImplementationForm/FiltersField.js +5 -5
- package/src/components/ruleImplementationForm/FiltersFormGroup.js +5 -6
- package/src/components/ruleImplementationForm/FiltersGrid.js +1 -1
- package/src/components/ruleImplementationForm/FiltersGroup.js +6 -1
- package/src/components/ruleImplementationForm/FixedListField.js +6 -7
- package/src/components/ruleImplementationForm/InformationForm.js +3 -4
- package/src/components/ruleImplementationForm/LimitsForm.js +0 -1
- package/src/components/ruleImplementationForm/NumberField.js +0 -1
- package/src/components/ruleImplementationForm/PopulationForm.js +0 -1
- package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +6 -7
- package/src/components/ruleImplementationForm/RuleImplementationForm.js +8 -8
- package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +10 -9
- package/src/components/ruleImplementationForm/SegmentsForm.js +0 -1
- package/src/components/ruleImplementationForm/StringField.js +2 -3
- package/src/components/ruleImplementationForm/StringListField.js +2 -3
- package/src/components/ruleImplementationForm/ValidationsForm.js +0 -1
- package/src/components/ruleImplementationForm/ValueConditions.js +3 -3
- package/src/components/ruleImplementationForm/__tests__/DataSetForm.spec.js +5 -18
- package/src/components/ruleImplementationForm/__tests__/FiltersField.spec.js +5 -10
- package/src/components/ruleImplementationForm/__tests__/FiltersFormGroup.spec.js +7 -21
- package/src/components/ruleImplementationForm/__tests__/FiltersGroup.spec.js +12 -21
- package/src/components/ruleImplementationForm/__tests__/InformationForm.spec.js +9 -3
- package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +74 -57
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationBasicForm.spec.js +41 -27
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationForm.spec.js +0 -2
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationRawForm.spec.js +81 -52
- package/src/components/ruleImplementationForm/__tests__/ValueConditions.spec.js +11 -21
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/DataSetForm.spec.js.snap +6 -6
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersField.spec.js.snap +24 -48
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersFormGroup.spec.js.snap +102 -6
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersGroup.spec.js.snap +69 -6
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/InformationForm.spec.js.snap +88 -18
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/LimitsForm.spec.js.snap +68 -68
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationBasicForm.spec.js.snap +78 -17
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationForm.spec.js.snap +23 -24
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationRawForm.spec.js.snap +87 -30
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/ValueConditions.spec.js.snap +69 -6
- package/src/components/ruleImplementationForm/limitsValidation.js +11 -10
- package/src/hooks/useConcept.js +4 -1
- package/src/sagas/__tests__/createImplementationStructure.spec.js +2 -2
- package/src/sagas/__tests__/createRemediation.spec.js +3 -3
- package/src/sagas/__tests__/deleteImplementation.spec.js +1 -1
- package/src/sagas/__tests__/deleteImplementationStructure.spec.js +2 -2
- package/src/sagas/__tests__/deleteRemediation.spec.js +3 -3
- package/src/sagas/__tests__/deleteRule.spec.js +1 -1
- package/src/sagas/__tests__/deleteRuleResult.spec.js +2 -2
- package/src/sagas/__tests__/fetchRemediation.spec.js +2 -2
- package/src/sagas/__tests__/fetchRule.spec.js +2 -2
- package/src/sagas/__tests__/fetchRuleImplementation.spec.js +3 -3
- package/src/sagas/__tests__/fetchRuleImplementations.spec.js +3 -3
- package/src/sagas/__tests__/fetchSegmentResults.spec.js +3 -3
- package/src/sagas/__tests__/updateRemediation.spec.js +3 -3
- package/src/sagas/__tests__/updateRule.spec.js +1 -1
- package/src/sagas/__tests__/updateRuleImplementation.spec.js +5 -5
- package/src/sagas/createImplementationStructure.js +3 -1
- package/src/sagas/createRemediation.js +3 -1
- package/src/sagas/deleteImplementation.js +1 -1
- package/src/sagas/deleteImplementationStructure.js +1 -1
- package/src/sagas/deleteRemediation.js +3 -1
- package/src/sagas/deleteRule.js +2 -2
- package/src/sagas/deleteRuleResult.js +1 -1
- package/src/sagas/fetchConceptRules.js +1 -1
- package/src/sagas/fetchExecutionGroup.js +1 -1
- package/src/sagas/fetchRemediation.js +1 -1
- package/src/sagas/fetchRuleImplementations.js +1 -1
- package/src/sagas/fetchSegmentResults.js +1 -1
- package/src/sagas/updateRemediation.js +3 -1
- package/src/sagas/updateRule.js +1 -1
- package/src/sagas/updateRuleImplementation.js +1 -1
- package/src/selectors/__tests__/getPreviousRuleImplementationQuery.spec.js +2 -2
- package/src/selectors/__tests__/getRuleImplementationColumns.spec.js +1 -1
- package/src/selectors/__tests__/getRuleImplementationForm.spec.js +16 -16
- package/src/selectors/__tests__/getRuleImplementationSelectedFilterActiveValues.spec.js +2 -2
- package/src/selectors/getImplementationStructureLinksColumns.js +0 -1
- package/src/selectors/getImplementationsExecution.js +2 -2
- package/src/selectors/getLinkedImplementationsToRulesColumns.js +0 -1
- package/src/selectors/getPreviousRuleImplementationQuery.js +1 -1
- package/src/selectors/getRuleImplementationColumns.js +0 -1
- package/src/selectors/getRuleImplementationForm.js +5 -5
- package/src/selectors/getRuleImplementationSelectedFilters.js +1 -1
- package/src/selectors/ruleColumnsSelector.js +0 -1
- package/src/styles/ruleSummary.less +21 -21
- package/src/components/RuleRangeNumber.js +0 -46
- package/src/components/RuleRangePercentage.js +0 -116
- package/src/components/__tests__/RuleRangeNumber.spec.js +0 -20
- package/src/components/__tests__/RuleRangePercentage.spec.js +0 -34
- package/src/components/__tests__/UploadModal.spec.js +0 -158
- package/src/components/__tests__/__snapshots__/RuleRangeNumber.spec.js.snap +0 -50
- package/src/components/__tests__/__snapshots__/RuleRangePercentage.spec.js.snap +0 -303
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mount } from "enzyme";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
2
|
import { ExecutionGroupLoader } from "../ExecutionGroupLoader";
|
|
4
3
|
|
|
5
|
-
jest.mock("react-router
|
|
6
|
-
...jest.requireActual("react-router
|
|
7
|
-
useParams: () => ({ id: 1 })
|
|
4
|
+
jest.mock("react-router", () => ({
|
|
5
|
+
...jest.requireActual("react-router"),
|
|
6
|
+
useParams: () => ({ id: 1 }),
|
|
8
7
|
}));
|
|
9
8
|
|
|
10
9
|
describe("<ExecutionGroupLoader />", () => {
|
|
11
|
-
|
|
12
|
-
const clearExecutionGroup = jest.fn();
|
|
13
|
-
|
|
14
|
-
it("calls fetchExecutionGroup when component mounts but not when it unmounts", () => {
|
|
10
|
+
it("calls fetchExecutionGroup when component mounts but not when it unmounts", async () => {
|
|
15
11
|
const fetchExecutionGroup = jest.fn();
|
|
12
|
+
const clearExecutionGroup = jest.fn();
|
|
16
13
|
const props = { clearExecutionGroup, fetchExecutionGroup };
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
const rendered = render(<ExecutionGroupLoader {...props} />);
|
|
15
|
+
await waitForLoad(rendered);
|
|
16
|
+
expect(fetchExecutionGroup).toHaveBeenCalledTimes(1);
|
|
17
|
+
rendered.unmount();
|
|
18
|
+
expect(fetchExecutionGroup).toHaveBeenCalledTimes(1);
|
|
21
19
|
});
|
|
22
20
|
|
|
23
|
-
it("calls clearExecutionGroup when component unmounts but not when it mounts", () => {
|
|
21
|
+
it("calls clearExecutionGroup when component unmounts but not when it mounts", async () => {
|
|
22
|
+
const fetchExecutionGroup = jest.fn();
|
|
24
23
|
const clearExecutionGroup = jest.fn();
|
|
25
24
|
const props = { clearExecutionGroup, fetchExecutionGroup };
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
const rendered = render(<ExecutionGroupLoader {...props} />);
|
|
26
|
+
await waitForLoad(rendered);
|
|
27
|
+
expect(clearExecutionGroup).not.toHaveBeenCalled();
|
|
28
|
+
rendered.unmount();
|
|
29
|
+
expect(clearExecutionGroup).toHaveBeenCalledTimes(1);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { shallow } from "enzyme";
|
|
3
|
-
import { intl } from "@truedat/test/intl-stub";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
4
2
|
import { ExecutionGroupMessage } from "../ExecutionGroupMessage";
|
|
5
3
|
|
|
6
|
-
// workaround for enzyme issue with React.useContext
|
|
7
|
-
// see https://github.com/airbnb/enzyme/issues/2176#issuecomment-532361526
|
|
8
|
-
jest.spyOn(React, "useContext").mockImplementation(() => intl);
|
|
9
|
-
|
|
10
4
|
describe("<ExecutionGroupMessage />", () => {
|
|
11
|
-
it("matches the latest snapshot (pending)", () => {
|
|
12
|
-
const
|
|
13
|
-
|
|
5
|
+
it("matches the latest snapshot (pending)", async () => {
|
|
6
|
+
const rendered = render(<ExecutionGroupMessage pending={10} />);
|
|
7
|
+
await waitForLoad(rendered);
|
|
8
|
+
expect(rendered.container).toMatchSnapshot();
|
|
14
9
|
});
|
|
15
10
|
|
|
16
|
-
it("matches the latest snapshot (completed)", () => {
|
|
17
|
-
const
|
|
18
|
-
|
|
11
|
+
it("matches the latest snapshot (completed)", async () => {
|
|
12
|
+
const rendered = render(<ExecutionGroupMessage pending={0} count={10} />);
|
|
13
|
+
await waitForLoad(rendered);
|
|
14
|
+
expect(rendered.container).toMatchSnapshot();
|
|
19
15
|
});
|
|
20
16
|
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { render } from "@truedat/test/render";
|
|
3
2
|
import ImplementationExecutionFilters from "../ImplementationExecutionFilters";
|
|
4
3
|
import { implementationExecutionFiltersMock } from "./__fixtures__/executionMocks";
|
|
5
4
|
|
|
6
|
-
jest.mock("react-router
|
|
7
|
-
...jest.requireActual("react-router
|
|
5
|
+
jest.mock("react-router", () => ({
|
|
6
|
+
...jest.requireActual("react-router"),
|
|
8
7
|
useParams: () => ({ implementation_id: "123" }),
|
|
9
8
|
}));
|
|
10
9
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { render } from "@truedat/test/render";
|
|
3
2
|
import ImplementationExecutions from "../ImplementationExecutions";
|
|
4
3
|
import {
|
|
@@ -6,8 +5,8 @@ import {
|
|
|
6
5
|
implementationExecutionsMock,
|
|
7
6
|
} from "./__fixtures__/executionMocks";
|
|
8
7
|
|
|
9
|
-
jest.mock("react-router
|
|
10
|
-
...jest.requireActual("react-router
|
|
8
|
+
jest.mock("react-router", () => ({
|
|
9
|
+
...jest.requireActual("react-router"),
|
|
11
10
|
useParams: () => ({ implementation_id: "123" }),
|
|
12
11
|
}));
|
|
13
12
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { render } from "@truedat/test/render";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
2
|
import ImplementationResultBar from "../ImplementationResultBar";
|
|
4
3
|
|
|
5
4
|
const implementation = {
|
|
@@ -13,33 +12,41 @@ const implementation = {
|
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
describe("<ImplementationResultBar />", () => {
|
|
16
|
-
it("render overGoal implementation", () => {
|
|
15
|
+
it("render overGoal implementation", async () => {
|
|
17
16
|
const props = {
|
|
18
17
|
implementation: {
|
|
19
18
|
...implementation,
|
|
20
19
|
results: [{ date: "2021-07-19T00:01:20Z", result: "99.99" }],
|
|
21
20
|
},
|
|
22
21
|
};
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
expect(container
|
|
26
|
-
expect(container
|
|
22
|
+
const rendered = render(<ImplementationResultBar {...props} />);
|
|
23
|
+
await waitForLoad(rendered);
|
|
24
|
+
expect(rendered.container).toMatchSnapshot();
|
|
25
|
+
expect(rendered.container.querySelector(".over-goal-color")).not.toBeNull();
|
|
26
|
+
expect(rendered.container).toHaveTextContent(
|
|
27
|
+
/quality.result.percentage.date/i
|
|
28
|
+
);
|
|
27
29
|
});
|
|
28
30
|
|
|
29
|
-
it("render underGoal implementation", () => {
|
|
31
|
+
it("render underGoal implementation", async () => {
|
|
30
32
|
const props = {
|
|
31
33
|
implementation: {
|
|
32
34
|
...implementation,
|
|
33
35
|
results: [{ date: "2021-07-19T00:01:20Z", result: "70" }],
|
|
34
36
|
},
|
|
35
37
|
};
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
expect(container
|
|
39
|
-
expect(
|
|
38
|
+
const rendered = render(<ImplementationResultBar {...props} />);
|
|
39
|
+
await waitForLoad(rendered);
|
|
40
|
+
expect(rendered.container).toMatchSnapshot();
|
|
41
|
+
expect(
|
|
42
|
+
rendered.container.querySelector(".under-goal-color")
|
|
43
|
+
).not.toBeNull();
|
|
44
|
+
expect(rendered.container).toHaveTextContent(
|
|
45
|
+
/quality.result.percentage.date/i
|
|
46
|
+
);
|
|
40
47
|
});
|
|
41
48
|
|
|
42
|
-
it("render underMinimum implementation", () => {
|
|
49
|
+
it("render underMinimum implementation", async () => {
|
|
43
50
|
const props = {
|
|
44
51
|
implementation: {
|
|
45
52
|
...implementation,
|
|
@@ -48,26 +55,35 @@ describe("<ImplementationResultBar />", () => {
|
|
|
48
55
|
],
|
|
49
56
|
},
|
|
50
57
|
};
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
expect(container
|
|
54
|
-
|
|
58
|
+
const rendered = render(<ImplementationResultBar {...props} />);
|
|
59
|
+
await waitForLoad(rendered);
|
|
60
|
+
expect(rendered.container).toMatchSnapshot();
|
|
61
|
+
|
|
62
|
+
expect(
|
|
63
|
+
rendered.container.querySelector(".under-minimum-color")
|
|
64
|
+
).not.toBeNull();
|
|
65
|
+
expect(rendered.container).toHaveTextContent(
|
|
66
|
+
/quality.result.percentage.date/i
|
|
67
|
+
);
|
|
55
68
|
});
|
|
56
69
|
|
|
57
|
-
it("render not executed implementation", () => {
|
|
70
|
+
it("render not executed implementation", async () => {
|
|
58
71
|
const props = {
|
|
59
72
|
implementation: {
|
|
60
73
|
...implementation,
|
|
61
74
|
results: [],
|
|
62
75
|
},
|
|
63
76
|
};
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
expect(container
|
|
67
|
-
expect(
|
|
77
|
+
const rendered = render(<ImplementationResultBar {...props} />);
|
|
78
|
+
await waitForLoad(rendered);
|
|
79
|
+
expect(rendered.container).toMatchSnapshot();
|
|
80
|
+
expect(
|
|
81
|
+
rendered.container.querySelector(".not-executed-color")
|
|
82
|
+
).not.toBeNull();
|
|
83
|
+
expect(rendered.container).toHaveTextContent(/quality.result.no.data/i);
|
|
68
84
|
});
|
|
69
85
|
|
|
70
|
-
it("render failed implementation", () => {
|
|
86
|
+
it("render failed implementation", async () => {
|
|
71
87
|
const props = {
|
|
72
88
|
implementation: {
|
|
73
89
|
...implementation,
|
|
@@ -75,9 +91,10 @@ describe("<ImplementationResultBar />", () => {
|
|
|
75
91
|
event_type: "FAILED",
|
|
76
92
|
},
|
|
77
93
|
};
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
expect(container
|
|
81
|
-
expect(container
|
|
94
|
+
const rendered = render(<ImplementationResultBar {...props} />);
|
|
95
|
+
await waitForLoad(rendered);
|
|
96
|
+
expect(rendered.container).toMatchSnapshot();
|
|
97
|
+
expect(rendered.container.querySelector(".failed-color")).not.toBeNull();
|
|
98
|
+
expect(rendered.container).toHaveTextContent(/quality.error/i);
|
|
82
99
|
});
|
|
83
100
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { shallow } from "enzyme";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
2
|
import { ImplementationSearchResults } from "../ImplementationSearchResults";
|
|
4
3
|
|
|
5
4
|
jest.mock("@truedat/core/hooks", () => ({
|
|
@@ -10,35 +9,27 @@ jest.mock("@truedat/core/hooks", () => ({
|
|
|
10
9
|
}));
|
|
11
10
|
|
|
12
11
|
describe("<ImplementationSearchResults />", () => {
|
|
13
|
-
it("matches the latest snapshot", () => {
|
|
12
|
+
it("matches the latest snapshot", async () => {
|
|
14
13
|
const props = {
|
|
15
14
|
loading: false,
|
|
16
15
|
};
|
|
17
|
-
const
|
|
18
|
-
|
|
16
|
+
const rendered = render(<ImplementationSearchResults {...props} />);
|
|
17
|
+
await waitForLoad(rendered);
|
|
18
|
+
expect(rendered.container).toMatchSnapshot();
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
it("renders executions on when executionEnabled is true", () => {
|
|
21
|
+
it("renders executions on when executionEnabled is true", async () => {
|
|
22
22
|
const props = {
|
|
23
23
|
loading: false,
|
|
24
24
|
implementationQuery: { filters: { executable: [true] } },
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
.prop("executeImplementationsOn")
|
|
32
|
-
).toBeTruthy();
|
|
33
|
-
expect(
|
|
34
|
-
wrapper
|
|
35
|
-
.find("Connect(RuleImplementationsActions)")
|
|
36
|
-
.prop("executeImplementationsOn")
|
|
37
|
-
).toBeTruthy();
|
|
26
|
+
const rendered = render(<ImplementationSearchResults {...props} />);
|
|
27
|
+
await waitForLoad(rendered);
|
|
28
|
+
|
|
29
|
+
expect(rendered.container).toMatchSnapshot();
|
|
30
|
+
|
|
38
31
|
expect(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.prop("executeImplementationsOn")
|
|
42
|
-
).toBeTruthy();
|
|
32
|
+
rendered.container.querySelector(".rules-label-results")
|
|
33
|
+
).toBeInTheDocument();
|
|
43
34
|
});
|
|
44
35
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Suspense } from "react";
|
|
2
2
|
import { waitFor } from "@testing-library/react";
|
|
3
3
|
import { render } from "@truedat/test/render";
|
|
4
4
|
import { ImplementationStructures } from "../ImplementationStructures";
|
|
@@ -53,7 +53,6 @@ const groups = [
|
|
|
53
53
|
|
|
54
54
|
describe("<ImplementationStructures />", () => {
|
|
55
55
|
const renderOpts = {
|
|
56
|
-
fallback: "lazy",
|
|
57
56
|
messages: {
|
|
58
57
|
en: {
|
|
59
58
|
"implementationsRelation.master.table.title": "Links to Structures",
|
|
@@ -1,34 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { render } from "@truedat/test/render";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
2
|
import { ImplementationStructuresNew } from "../ImplementationStructuresNew";
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
4
|
+
jest.mock("@truedat/dd/hooks/useStructures", () => {
|
|
5
|
+
const originalModule = jest.requireActual("@truedat/dd/hooks/useStructures");
|
|
6
|
+
const structures = [1, 2, 3].map((id) => ({
|
|
7
|
+
id,
|
|
8
|
+
name: `structure_${id}`,
|
|
9
|
+
type: "table",
|
|
10
|
+
external_id: `structure_ext_id_${id}`,
|
|
11
|
+
my_grants: [],
|
|
12
|
+
my_grant_request: null,
|
|
13
|
+
user_permissions: {
|
|
14
|
+
request_grant: true,
|
|
17
15
|
},
|
|
16
|
+
last_change_at: "2023-04-27",
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
const data = { data: structures };
|
|
20
|
+
return {
|
|
21
|
+
__esModule: true,
|
|
22
|
+
...originalModule,
|
|
23
|
+
useDataStructureFilters: () => ({
|
|
24
|
+
trigger: () => ({
|
|
25
|
+
then: (callback) =>
|
|
26
|
+
callback({
|
|
27
|
+
data: {},
|
|
28
|
+
}),
|
|
29
|
+
}),
|
|
30
|
+
}),
|
|
31
|
+
useDataStructureSearch: () => ({
|
|
32
|
+
trigger: () => ({
|
|
33
|
+
then: (callback) =>
|
|
34
|
+
callback({
|
|
35
|
+
data,
|
|
36
|
+
headers: {},
|
|
37
|
+
}),
|
|
38
|
+
}),
|
|
39
|
+
}),
|
|
18
40
|
};
|
|
41
|
+
});
|
|
19
42
|
|
|
20
|
-
|
|
43
|
+
describe("<ImplementationStructuresNew />", () => {
|
|
44
|
+
it("matches the latest snapshot", async () => {
|
|
21
45
|
const props = {
|
|
22
46
|
implementation: {},
|
|
23
47
|
creatingImplementationStructure: false,
|
|
24
|
-
createImplementationStructure: ()
|
|
48
|
+
createImplementationStructure: jest.fn(),
|
|
25
49
|
};
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</Suspense>,
|
|
30
|
-
renderOpts
|
|
31
|
-
);
|
|
32
|
-
expect(container).toMatchSnapshot();
|
|
50
|
+
const rendered = render(<ImplementationStructuresNew {...props} />);
|
|
51
|
+
await waitForLoad(rendered);
|
|
52
|
+
expect(rendered.container).toMatchSnapshot();
|
|
33
53
|
});
|
|
34
54
|
});
|
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { render } from "@truedat/test/render";
|
|
1
|
+
import { waitFor } from "@testing-library/react";
|
|
2
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
4
3
|
import { getValues } from "../ConditionCell";
|
|
5
4
|
import { ImplementationSummary } from "../ImplementationSummary";
|
|
6
5
|
|
|
7
|
-
const renderOpts = {
|
|
8
|
-
messages: {
|
|
9
|
-
en: {
|
|
10
|
-
"ruleImplementationForm.step.information": "information",
|
|
11
|
-
"quality.thresholds": "thresholds",
|
|
12
|
-
"quality.threshold": "threshold",
|
|
13
|
-
"quality.goal": "goal",
|
|
14
|
-
"ruleImplementations.props.result_type.percentage": "percentage",
|
|
15
|
-
"ruleImplementations.summary.headers.population.plural": "populations",
|
|
16
|
-
"ruleImplementation.summary.field": "Field",
|
|
17
|
-
"ruleImplementation.summary.operator": "Operator",
|
|
18
|
-
"ruleImplementation.summary.structure": "Structure",
|
|
19
|
-
"ruleImplementation.summary.values": "Values",
|
|
20
|
-
"ruleImplementations.summary.headers.dataset": "Dataset",
|
|
21
|
-
"ruleImplementations.summary.headers.validations": "Validations",
|
|
22
|
-
"ruleImplementation.props.executable.true": "Executable",
|
|
23
|
-
"ruleImplementation.props.executable.false": "Internal",
|
|
24
|
-
"ruleImplementations.summary.headers.implementation":
|
|
25
|
-
"Rule Implementation",
|
|
26
|
-
"ruleImplementation.summary.implementation_key": "Implementation key",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
6
|
const ruleImplementation = {
|
|
32
7
|
implementationKey: "ImplKey",
|
|
33
8
|
executable: true,
|
|
@@ -62,7 +37,7 @@ const ruleImplementation = {
|
|
|
62
37
|
};
|
|
63
38
|
|
|
64
39
|
describe("<ImplementationSummary />", () => {
|
|
65
|
-
it("matches the latest snapshot", () => {
|
|
40
|
+
it("matches the latest snapshot", async () => {
|
|
66
41
|
const steps = [
|
|
67
42
|
"implementationKey",
|
|
68
43
|
"executable",
|
|
@@ -74,22 +49,75 @@ describe("<ImplementationSummary />", () => {
|
|
|
74
49
|
steps,
|
|
75
50
|
ruleImplementation,
|
|
76
51
|
};
|
|
77
|
-
const
|
|
78
|
-
|
|
52
|
+
const renderOpts = {
|
|
53
|
+
state: {
|
|
54
|
+
messages: {
|
|
55
|
+
en: {
|
|
56
|
+
"ruleImplementationForm.step.information": "information",
|
|
57
|
+
"quality.thresholds": "thresholds",
|
|
58
|
+
"quality.threshold": "threshold",
|
|
59
|
+
"quality.goal": "goal",
|
|
60
|
+
"ruleImplementations.props.result_type.percentage": "percentage",
|
|
61
|
+
"ruleImplementations.summary.headers.population.plural":
|
|
62
|
+
"populations",
|
|
63
|
+
"ruleImplementation.summary.field": "Field",
|
|
64
|
+
"ruleImplementation.summary.operator": "Operator",
|
|
65
|
+
"ruleImplementation.summary.structure": "Structure",
|
|
66
|
+
"ruleImplementation.summary.values": "Values",
|
|
67
|
+
"ruleImplementations.summary.headers.dataset": "Dataset",
|
|
68
|
+
"ruleImplementations.summary.headers.validations": "Validations",
|
|
69
|
+
"ruleImplementation.props.executable.true": "Executable",
|
|
70
|
+
"ruleImplementation.props.executable.false": "Internal",
|
|
71
|
+
"ruleImplementations.summary.headers.implementation":
|
|
72
|
+
"Rule Implementation",
|
|
73
|
+
"ruleImplementation.summary.implementation_key":
|
|
74
|
+
"Implementation key",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
const rendered = render(<ImplementationSummary {...props} />, renderOpts);
|
|
80
|
+
await waitForLoad(rendered);
|
|
81
|
+
expect(rendered.container).toMatchSnapshot();
|
|
79
82
|
});
|
|
80
83
|
|
|
81
|
-
it("displays correctly validations values of list type", () => {
|
|
84
|
+
it("displays correctly validations values of list type", async () => {
|
|
82
85
|
const steps = ["dataset", "populations", "validations"];
|
|
83
86
|
const props = {
|
|
84
87
|
steps,
|
|
85
88
|
ruleImplementation,
|
|
86
89
|
};
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
const renderOpts = {
|
|
91
|
+
state: {
|
|
92
|
+
messages: {
|
|
93
|
+
en: {
|
|
94
|
+
"ruleImplementationForm.step.information": "information",
|
|
95
|
+
"quality.thresholds": "thresholds",
|
|
96
|
+
"quality.threshold": "threshold",
|
|
97
|
+
"quality.goal": "goal",
|
|
98
|
+
"ruleImplementations.props.result_type.percentage": "percentage",
|
|
99
|
+
"ruleImplementations.summary.headers.population.plural":
|
|
100
|
+
"populations",
|
|
101
|
+
"ruleImplementation.summary.field": "Field",
|
|
102
|
+
"ruleImplementation.summary.operator": "Operator",
|
|
103
|
+
"ruleImplementation.summary.structure": "Structure",
|
|
104
|
+
"ruleImplementation.summary.values": "Values",
|
|
105
|
+
"ruleImplementations.summary.headers.dataset": "Dataset",
|
|
106
|
+
"ruleImplementations.summary.headers.validations": "Validations",
|
|
107
|
+
"ruleImplementation.props.executable.true": "Executable",
|
|
108
|
+
"ruleImplementation.props.executable.false": "Internal",
|
|
109
|
+
"ruleImplementations.summary.headers.implementation":
|
|
110
|
+
"Rule Implementation",
|
|
111
|
+
"ruleImplementation.summary.implementation_key":
|
|
112
|
+
"Implementation key",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
const rendered = render(<ImplementationSummary {...props} />, renderOpts);
|
|
118
|
+
await waitForLoad(rendered);
|
|
119
|
+
expect(rendered.container).toMatchSnapshot();
|
|
120
|
+
expect(rendered.queryByText(/"4, 5, 6"/i)).toBeInTheDocument();
|
|
93
121
|
});
|
|
94
122
|
|
|
95
123
|
it("getValues returns array of values that contain required keys and adds optional keys for operator with field value_type", () => {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { waitFor } from "@testing-library/react";
|
|
3
|
-
import { render } from "@truedat/test/render";
|
|
1
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
4
2
|
import Implementations from "../Implementations";
|
|
5
3
|
|
|
6
4
|
const props = {
|
|
@@ -13,16 +11,12 @@ const renderOpts = {
|
|
|
13
11
|
query: "foo",
|
|
14
12
|
},
|
|
15
13
|
},
|
|
16
|
-
fallback: "lazy",
|
|
17
14
|
};
|
|
18
15
|
|
|
19
16
|
describe("<Implementations />", () => {
|
|
20
17
|
it("matches the latest snapshot", async () => {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
);
|
|
25
|
-
await waitFor(() => expect(queryByText(/lazy/i)).not.toBeInTheDocument());
|
|
26
|
-
expect(container).toMatchSnapshot();
|
|
18
|
+
const rendered = render(<Implementations {...props} />, renderOpts);
|
|
19
|
+
await waitForLoad(rendered);
|
|
20
|
+
expect(rendered.container).toMatchSnapshot();
|
|
27
21
|
});
|
|
28
22
|
});
|