@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,30 +1,43 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
3
|
import { waitFor } from "@testing-library/react";
|
|
4
|
-
import userEvent from "@testing-library/user-event";
|
|
5
|
-
import { render } from "@truedat/test/render";
|
|
6
4
|
import { DOMAIN_QUERY, DOMAINS_QUERY } from "@truedat/core/api/queries";
|
|
7
5
|
import { multipleTemplatesMock } from "@truedat/test/mocks";
|
|
8
6
|
import { RuleImplementationBasicForm } from "../RuleImplementationBasicForm";
|
|
9
7
|
|
|
10
|
-
jest.setTimeout(30000);
|
|
11
|
-
|
|
12
8
|
const domains = [
|
|
13
|
-
{
|
|
9
|
+
{
|
|
10
|
+
id: 1,
|
|
11
|
+
name: "domain1",
|
|
12
|
+
actions: ["publishImplementation"],
|
|
13
|
+
parentId: null,
|
|
14
|
+
externalId: "extid1",
|
|
15
|
+
},
|
|
14
16
|
];
|
|
15
17
|
const domainsMock = {
|
|
16
|
-
request: {
|
|
18
|
+
request: {
|
|
19
|
+
query: DOMAINS_QUERY,
|
|
20
|
+
variables: {
|
|
21
|
+
action: "manageBasicRulelessImplementations",
|
|
22
|
+
domainActions: ["publishImplementation"],
|
|
23
|
+
ids: undefined,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
17
26
|
result: { data: { domains: domains } },
|
|
18
27
|
};
|
|
19
28
|
|
|
20
29
|
const domainMock = {
|
|
21
|
-
request: {
|
|
30
|
+
request: {
|
|
31
|
+
query: DOMAIN_QUERY,
|
|
32
|
+
variables: { id: 1, actions: ["publishImplementation"] },
|
|
33
|
+
},
|
|
22
34
|
result: { data: { domain: domains } },
|
|
23
35
|
};
|
|
24
36
|
|
|
25
37
|
const renderOpts = {
|
|
26
38
|
mocks: [
|
|
27
39
|
multipleTemplatesMock({ scope: "ri", domainIds: [1] }),
|
|
40
|
+
multipleTemplatesMock({ scope: "ri", domainIds: null }),
|
|
28
41
|
domainMock,
|
|
29
42
|
domainsMock,
|
|
30
43
|
],
|
|
@@ -32,7 +45,6 @@ const renderOpts = {
|
|
|
32
45
|
rule: { domain_id: 1 },
|
|
33
46
|
ruleImplementationCreating: false,
|
|
34
47
|
},
|
|
35
|
-
fallback: "lazy",
|
|
36
48
|
};
|
|
37
49
|
|
|
38
50
|
const props = {
|
|
@@ -53,31 +65,29 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
53
65
|
const updatedProps = _.flow(_.set("ruleImplementation.domain_id", 1))(
|
|
54
66
|
props
|
|
55
67
|
);
|
|
56
|
-
const
|
|
68
|
+
const rendered = render(
|
|
57
69
|
<RuleImplementationBasicForm {...updatedProps} />,
|
|
58
70
|
renderOpts
|
|
59
71
|
);
|
|
60
|
-
await
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
await waitFor(() =>
|
|
64
|
-
expect(queryByText(/loading/i)).not.toBeInTheDocument()
|
|
65
|
-
);
|
|
66
|
-
expect(container).toMatchSnapshot();
|
|
72
|
+
await waitForLoad(rendered);
|
|
73
|
+
expect(rendered.container).toMatchSnapshot();
|
|
67
74
|
});
|
|
68
75
|
|
|
69
|
-
it("Implementation_key field is editable with status published", () => {
|
|
76
|
+
it("Implementation_key field is editable with status published", async () => {
|
|
70
77
|
const updatedProps = _.flow(
|
|
71
78
|
_.set("ruleImplementation.domain_id", 1),
|
|
72
79
|
_.set("ruleImplementation.status", "published"),
|
|
73
80
|
_.set("ruleImplementation.implementation_key", "implementation_test")
|
|
74
81
|
)(props);
|
|
75
|
-
const
|
|
82
|
+
const rendered = render(
|
|
76
83
|
<RuleImplementationBasicForm {...updatedProps} />,
|
|
77
84
|
renderOpts
|
|
78
85
|
);
|
|
86
|
+
await waitForLoad(rendered);
|
|
79
87
|
expect(
|
|
80
|
-
queryByPlaceholderText(
|
|
88
|
+
rendered.queryByPlaceholderText(
|
|
89
|
+
/ruleImplementation.props.name.placeholder/i
|
|
90
|
+
)
|
|
81
91
|
).not.toBeDisabled();
|
|
82
92
|
});
|
|
83
93
|
|
|
@@ -91,12 +101,13 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
91
101
|
...updatedProps,
|
|
92
102
|
};
|
|
93
103
|
|
|
94
|
-
const
|
|
104
|
+
const rendered = render(
|
|
95
105
|
<RuleImplementationBasicForm {...customProps} />,
|
|
96
106
|
renderOpts
|
|
97
107
|
);
|
|
108
|
+
await waitForLoad(rendered);
|
|
98
109
|
await waitFor(() => {
|
|
99
|
-
expect(getByRole("button", { name:
|
|
110
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled();
|
|
100
111
|
});
|
|
101
112
|
});
|
|
102
113
|
|
|
@@ -111,26 +122,29 @@ describe("<RuleImplementationBasicForm />", () => {
|
|
|
111
122
|
rule: { id: 5, name: "regla" },
|
|
112
123
|
};
|
|
113
124
|
|
|
114
|
-
const
|
|
125
|
+
const rendered = render(
|
|
115
126
|
<RuleImplementationBasicForm {...customProps} />,
|
|
116
127
|
renderOpts
|
|
117
128
|
);
|
|
118
|
-
|
|
129
|
+
await waitForLoad(rendered);
|
|
130
|
+
expect(
|
|
131
|
+
await rendered.findByRole("button", { name: /save/i })
|
|
132
|
+
).toBeEnabled();
|
|
119
133
|
});
|
|
120
134
|
|
|
121
135
|
it("submit button disabled if there is invalid content in form", async () => {
|
|
122
136
|
const updatedProps = _.flow(
|
|
123
|
-
_.set("ruleImplementation.domain_id", 1),
|
|
124
137
|
_.set("ruleImplementation.dfName", "template1"),
|
|
125
138
|
_.set("ruleImplementation.dfContent", {})
|
|
126
139
|
)(props);
|
|
127
140
|
const customProps = {
|
|
128
141
|
...updatedProps,
|
|
129
142
|
};
|
|
130
|
-
const
|
|
143
|
+
const rendered = render(
|
|
131
144
|
<RuleImplementationBasicForm {...customProps} />,
|
|
132
145
|
renderOpts
|
|
133
146
|
);
|
|
134
|
-
|
|
147
|
+
await waitForLoad(rendered);
|
|
148
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled();
|
|
135
149
|
});
|
|
136
150
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { waitFor } from "@testing-library/react";
|
|
3
2
|
import { render } from "@truedat/test/render";
|
|
4
3
|
import { multipleTemplatesMock } from "@truedat/test/mocks";
|
|
@@ -29,7 +28,6 @@ const renderOpts = {
|
|
|
29
28
|
rule: {},
|
|
30
29
|
ruleImplementationCreating: true,
|
|
31
30
|
},
|
|
32
|
-
fallback: "lazy",
|
|
33
31
|
};
|
|
34
32
|
|
|
35
33
|
describe("<RuleImplementationForm />", () => {
|
|
@@ -1,27 +1,43 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { waitFor } from "@testing-library/react";
|
|
4
2
|
import userEvent from "@testing-library/user-event";
|
|
5
|
-
import {
|
|
3
|
+
import { waitFor } from "@testing-library/react";
|
|
4
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
6
5
|
import { DOMAIN_QUERY, DOMAINS_QUERY } from "@truedat/core/api/queries";
|
|
7
6
|
import { multipleTemplatesMock } from "@truedat/test/mocks";
|
|
8
7
|
import { RuleImplementationRawForm } from "../RuleImplementationRawForm";
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const domains = [
|
|
10
|
+
{
|
|
11
|
+
id: 1,
|
|
12
|
+
name: "domain1",
|
|
13
|
+
actions: [],
|
|
14
|
+
parentId: null,
|
|
15
|
+
externalId: "ext_id_1",
|
|
16
|
+
},
|
|
17
|
+
];
|
|
13
18
|
const domainsMock = {
|
|
14
|
-
request: {
|
|
19
|
+
request: {
|
|
20
|
+
query: DOMAINS_QUERY,
|
|
21
|
+
variables: {
|
|
22
|
+
action: "manageRawRulelessImplementations",
|
|
23
|
+
domainActions: ["publishImplementation"],
|
|
24
|
+
ids: undefined,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
15
27
|
result: { data: { domains: domains } },
|
|
16
28
|
};
|
|
17
29
|
|
|
18
30
|
const domainMock = {
|
|
19
|
-
request: {
|
|
31
|
+
request: {
|
|
32
|
+
query: DOMAIN_QUERY,
|
|
33
|
+
variables: { id: 1, actions: ["publishImplementation"] },
|
|
34
|
+
},
|
|
20
35
|
result: { data: { domain: domains } },
|
|
21
36
|
};
|
|
22
37
|
|
|
23
38
|
const renderOpts = {
|
|
24
39
|
mocks: [
|
|
40
|
+
multipleTemplatesMock({ scope: "ri", domainIds: null }),
|
|
25
41
|
multipleTemplatesMock({ scope: "ri", domainIds: [1] }),
|
|
26
42
|
domainMock,
|
|
27
43
|
domainsMock,
|
|
@@ -30,7 +46,6 @@ const renderOpts = {
|
|
|
30
46
|
rule: { domain_id: 1 },
|
|
31
47
|
ruleImplementationCreating: false,
|
|
32
48
|
},
|
|
33
|
-
fallback: "lazy",
|
|
34
49
|
};
|
|
35
50
|
|
|
36
51
|
const props = {
|
|
@@ -94,40 +109,41 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
94
109
|
const updatedProps = _.flow(_.set("ruleImplementation.domain_id", 1))(
|
|
95
110
|
props
|
|
96
111
|
);
|
|
97
|
-
const
|
|
112
|
+
const rendered = render(
|
|
98
113
|
<RuleImplementationRawForm {...updatedProps} />,
|
|
99
114
|
renderOpts
|
|
100
115
|
);
|
|
101
|
-
await
|
|
102
|
-
|
|
103
|
-
});
|
|
104
|
-
await waitFor(() =>
|
|
105
|
-
expect(queryByText(/loading/i)).not.toBeInTheDocument()
|
|
106
|
-
);
|
|
107
|
-
expect(container).toMatchSnapshot();
|
|
116
|
+
await waitForLoad(rendered);
|
|
117
|
+
expect(rendered.container).toMatchSnapshot();
|
|
108
118
|
});
|
|
109
119
|
|
|
110
|
-
it("Implementation_key field is editable with status published", () => {
|
|
120
|
+
it("Implementation_key field is editable with status published", async () => {
|
|
111
121
|
const updatedProps = _.flow(
|
|
112
122
|
_.set("ruleImplementation.domain_id", 1),
|
|
113
123
|
_.set("ruleImplementation.status", "published"),
|
|
114
124
|
_.set("ruleImplementation.implementation_key", "implementation_test")
|
|
115
125
|
)(props);
|
|
116
|
-
const
|
|
126
|
+
const rendered = render(
|
|
117
127
|
<RuleImplementationRawForm {...updatedProps} />,
|
|
118
128
|
renderOpts
|
|
119
129
|
);
|
|
130
|
+
await waitForLoad(rendered);
|
|
120
131
|
expect(
|
|
121
|
-
queryByPlaceholderText(
|
|
132
|
+
rendered.queryByPlaceholderText(
|
|
133
|
+
/ruleImplementation.props.name.placeholder/i
|
|
134
|
+
)
|
|
122
135
|
).not.toBeDisabled();
|
|
123
136
|
});
|
|
124
137
|
|
|
125
|
-
it("renders sources", () => {
|
|
126
|
-
const
|
|
138
|
+
it("renders sources", async () => {
|
|
139
|
+
const rendered = render(
|
|
127
140
|
<RuleImplementationRawForm {...props} />,
|
|
128
141
|
renderOpts
|
|
129
142
|
);
|
|
130
|
-
|
|
143
|
+
await waitForLoad(rendered);
|
|
144
|
+
expect(
|
|
145
|
+
rendered.getByRole("option", { name: /ext_id_1/i })
|
|
146
|
+
).toBeInTheDocument();
|
|
131
147
|
});
|
|
132
148
|
|
|
133
149
|
it("renders databases dropdown if selected source has databases", async () => {
|
|
@@ -141,17 +157,16 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
141
157
|
},
|
|
142
158
|
};
|
|
143
159
|
|
|
144
|
-
const
|
|
160
|
+
const rendered = render(
|
|
145
161
|
<RuleImplementationRawForm {...customProps} />,
|
|
146
162
|
renderOpts
|
|
147
163
|
);
|
|
164
|
+
await waitForLoad(rendered);
|
|
148
165
|
|
|
149
|
-
|
|
150
|
-
expect(queryByRole("option", { name: "db1" })).toBeInTheDocument();
|
|
151
|
-
});
|
|
166
|
+
expect(rendered.getByRole("option", { name: /db1/i })).toBeInTheDocument();
|
|
152
167
|
});
|
|
153
168
|
|
|
154
|
-
it("dont renders databases dropdown if selected source doesnt have databases", () => {
|
|
169
|
+
it("dont renders databases dropdown if selected source doesnt have databases", async () => {
|
|
155
170
|
const customProps = {
|
|
156
171
|
...props,
|
|
157
172
|
rawContent: {
|
|
@@ -162,11 +177,14 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
162
177
|
},
|
|
163
178
|
};
|
|
164
179
|
|
|
165
|
-
const
|
|
180
|
+
const rendered = render(
|
|
166
181
|
<RuleImplementationRawForm {...customProps} />,
|
|
167
182
|
renderOpts
|
|
168
183
|
);
|
|
169
|
-
|
|
184
|
+
await waitForLoad(rendered);
|
|
185
|
+
expect(
|
|
186
|
+
rendered.queryByRole("option", { name: /db1/i })
|
|
187
|
+
).not.toBeInTheDocument();
|
|
170
188
|
});
|
|
171
189
|
|
|
172
190
|
it("submit button enabled if there is valid content in form with database without rule", async () => {
|
|
@@ -186,13 +204,12 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
186
204
|
},
|
|
187
205
|
};
|
|
188
206
|
|
|
189
|
-
const
|
|
207
|
+
const rendered = render(
|
|
190
208
|
<RuleImplementationRawForm {...customProps} />,
|
|
191
209
|
renderOpts
|
|
192
210
|
);
|
|
193
|
-
await
|
|
194
|
-
|
|
195
|
-
});
|
|
211
|
+
await waitForLoad(rendered);
|
|
212
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled();
|
|
196
213
|
});
|
|
197
214
|
|
|
198
215
|
it("submit button enabled if there is valid content in form with database", async () => {
|
|
@@ -213,11 +230,12 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
213
230
|
rule: { id: 5, name: "regla" },
|
|
214
231
|
};
|
|
215
232
|
|
|
216
|
-
const
|
|
233
|
+
const rendered = render(
|
|
217
234
|
<RuleImplementationRawForm {...customProps} />,
|
|
218
235
|
renderOpts
|
|
219
236
|
);
|
|
220
|
-
|
|
237
|
+
await waitForLoad(rendered);
|
|
238
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled();
|
|
221
239
|
});
|
|
222
240
|
|
|
223
241
|
it("submit button disabled if databases are available and not selected", async () => {
|
|
@@ -231,23 +249,26 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
231
249
|
},
|
|
232
250
|
};
|
|
233
251
|
|
|
234
|
-
const
|
|
252
|
+
const rendered = render(
|
|
235
253
|
<RuleImplementationRawForm {...customProps} />,
|
|
236
254
|
renderOpts
|
|
237
255
|
);
|
|
238
|
-
|
|
256
|
+
await waitForLoad(rendered);
|
|
257
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled();
|
|
239
258
|
});
|
|
240
259
|
|
|
241
260
|
it("calls setImplementationRawContent when filling raw content input fields", async () => {
|
|
242
261
|
const setImplementationRawContent = jest.fn();
|
|
243
|
-
const
|
|
262
|
+
const rendered = render(
|
|
244
263
|
<RuleImplementationRawForm
|
|
245
264
|
setImplementationRawContent={setImplementationRawContent}
|
|
246
265
|
{...props}
|
|
247
266
|
/>,
|
|
248
267
|
renderOpts
|
|
249
268
|
);
|
|
250
|
-
|
|
269
|
+
await waitForLoad(rendered);
|
|
270
|
+
const user = userEvent.setup({ delay: null });
|
|
271
|
+
await user.type(rendered.getByLabelText(/dataset/i), "A");
|
|
251
272
|
expect(setImplementationRawContent).toBeCalledWith({
|
|
252
273
|
dataset: "A",
|
|
253
274
|
population: "",
|
|
@@ -256,16 +277,18 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
256
277
|
});
|
|
257
278
|
});
|
|
258
279
|
|
|
259
|
-
it("calls setImplementationRawContent when selecting source", () => {
|
|
280
|
+
it("calls setImplementationRawContent when selecting source", async () => {
|
|
260
281
|
const setImplementationRawContent = jest.fn();
|
|
261
|
-
const
|
|
282
|
+
const rendered = render(
|
|
262
283
|
<RuleImplementationRawForm
|
|
263
284
|
setImplementationRawContent={setImplementationRawContent}
|
|
264
285
|
{...props}
|
|
265
286
|
/>,
|
|
266
287
|
renderOpts
|
|
267
288
|
);
|
|
268
|
-
|
|
289
|
+
await waitForLoad(rendered);
|
|
290
|
+
const user = userEvent.setup({ delay: null });
|
|
291
|
+
await user.click(rendered.getByRole("option", { name: /ext_id_2/i }));
|
|
269
292
|
expect(setImplementationRawContent).toBeCalledWith({
|
|
270
293
|
database: "",
|
|
271
294
|
dataset: "",
|
|
@@ -308,12 +331,12 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
308
331
|
validations: "a.city='MADRID'",
|
|
309
332
|
},
|
|
310
333
|
};
|
|
311
|
-
const
|
|
334
|
+
const rendered = render(
|
|
312
335
|
<RuleImplementationRawForm {...customProps} />,
|
|
313
336
|
renderOpts
|
|
314
337
|
);
|
|
315
|
-
|
|
316
|
-
expect(
|
|
338
|
+
await waitForLoad(rendered);
|
|
339
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeEnabled();
|
|
317
340
|
});
|
|
318
341
|
|
|
319
342
|
it("submit button disabled if there is invalid content in form", async () => {
|
|
@@ -330,11 +353,12 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
330
353
|
validations: "a.city='MADRID'",
|
|
331
354
|
},
|
|
332
355
|
};
|
|
333
|
-
const
|
|
356
|
+
const rendered = render(
|
|
334
357
|
<RuleImplementationRawForm {...customProps} />,
|
|
335
358
|
renderOpts
|
|
336
359
|
);
|
|
337
|
-
|
|
360
|
+
await waitForLoad(rendered);
|
|
361
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled();
|
|
338
362
|
});
|
|
339
363
|
|
|
340
364
|
it("input errors if invalid content in dataset field", async () => {
|
|
@@ -347,20 +371,25 @@ describe("<RuleImplementationRawForm />", () => {
|
|
|
347
371
|
validations: "a.city='MADRID'",
|
|
348
372
|
},
|
|
349
373
|
};
|
|
350
|
-
const
|
|
374
|
+
const rendered = render(
|
|
351
375
|
<RuleImplementationRawForm {...customProps} />,
|
|
352
376
|
renderOpts
|
|
353
377
|
);
|
|
354
|
-
|
|
378
|
+
await waitForLoad(rendered);
|
|
379
|
+
expect(
|
|
380
|
+
rendered.getByText(/ruleImplementationRawForm.rawText.error/i)
|
|
381
|
+
).toBeInTheDocument();
|
|
355
382
|
});
|
|
356
383
|
|
|
357
384
|
it("handles executable field", async () => {
|
|
358
385
|
const onChange = jest.fn();
|
|
359
|
-
const
|
|
386
|
+
const rendered = render(
|
|
360
387
|
<RuleImplementationRawForm {...props} onChange={onChange} />,
|
|
361
388
|
renderOpts
|
|
362
389
|
);
|
|
363
|
-
|
|
390
|
+
await waitForLoad(rendered);
|
|
391
|
+
const user = userEvent.setup({ delay: null });
|
|
392
|
+
await user.click(rendered.getByText(/executable/i));
|
|
364
393
|
expect(onChange).toHaveBeenCalledWith("executable", false);
|
|
365
394
|
});
|
|
366
395
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React, { Suspense } from "react";
|
|
2
|
-
import { render } from "@truedat/test/render";
|
|
3
1
|
import { createStore } from "redux";
|
|
4
2
|
import { Provider } from "react-redux";
|
|
3
|
+
import { render, waitForLoad } from "@truedat/test/render";
|
|
5
4
|
import { ValueConditions } from "../ValueConditions";
|
|
6
5
|
|
|
7
6
|
describe("<ValueConditions />", () => {
|
|
@@ -51,29 +50,20 @@ describe("<ValueConditions />", () => {
|
|
|
51
50
|
getOperatorValue,
|
|
52
51
|
};
|
|
53
52
|
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"filtersGrid.field.filters.deletion.popup": "Delete Filters",
|
|
58
|
-
"operator.dropdown.placeholder": "Operator Dropdown",
|
|
59
|
-
"filtersGrid.field.label": "Field",
|
|
60
|
-
"filtersGrid.field.operator": "Operator",
|
|
61
|
-
"filtersGrid.field.value": "Value",
|
|
53
|
+
const renderOpts = {
|
|
54
|
+
state: {
|
|
55
|
+
structuresSiblings,
|
|
62
56
|
},
|
|
63
57
|
};
|
|
64
58
|
|
|
65
|
-
it("matches the latest snapshot when siblings provided", () => {
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<Suspense fallback={null}>
|
|
70
|
-
<ValueConditions {...props} />
|
|
71
|
-
</Suspense>
|
|
59
|
+
it("matches the latest snapshot when siblings provided", async () => {
|
|
60
|
+
const rendered = render(
|
|
61
|
+
<Provider store={createStore(() => ({ structuresSiblings }))}>
|
|
62
|
+
<ValueConditions {...props} />
|
|
72
63
|
</Provider>,
|
|
73
|
-
|
|
74
|
-
messages,
|
|
75
|
-
}
|
|
64
|
+
renderOpts
|
|
76
65
|
);
|
|
77
|
-
|
|
66
|
+
await waitForLoad(rendered);
|
|
67
|
+
expect(rendered.container).toMatchSnapshot();
|
|
78
68
|
});
|
|
79
69
|
});
|
package/src/components/ruleImplementationForm/__tests__/__snapshots__/DataSetForm.spec.js.snap
CHANGED
|
@@ -6,7 +6,7 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
|
|
|
6
6
|
class="field"
|
|
7
7
|
>
|
|
8
8
|
<label>
|
|
9
|
-
|
|
9
|
+
ruleImplementation.props.structure
|
|
10
10
|
</label>
|
|
11
11
|
<div
|
|
12
12
|
class="required seven wide field"
|
|
@@ -16,7 +16,7 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
|
|
|
16
16
|
>
|
|
17
17
|
<input
|
|
18
18
|
class="action-pointer"
|
|
19
|
-
placeholder="
|
|
19
|
+
placeholder="ruleImplementation.props.structure.placeholder"
|
|
20
20
|
required=""
|
|
21
21
|
type="text"
|
|
22
22
|
value=""
|
|
@@ -32,7 +32,7 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
|
|
|
32
32
|
class="field"
|
|
33
33
|
>
|
|
34
34
|
<label>
|
|
35
|
-
|
|
35
|
+
ruleImplementation.props.structure.alias
|
|
36
36
|
</label>
|
|
37
37
|
<div
|
|
38
38
|
class="seven wide field"
|
|
@@ -52,7 +52,7 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
|
|
|
52
52
|
class="field"
|
|
53
53
|
>
|
|
54
54
|
<label>
|
|
55
|
-
|
|
55
|
+
ruleImplementation.props.structure
|
|
56
56
|
<i
|
|
57
57
|
aria-hidden="true"
|
|
58
58
|
class="close icon selectable"
|
|
@@ -66,7 +66,7 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
|
|
|
66
66
|
>
|
|
67
67
|
<input
|
|
68
68
|
class="action-pointer"
|
|
69
|
-
placeholder="
|
|
69
|
+
placeholder="ruleImplementation.props.structure.placeholder"
|
|
70
70
|
required=""
|
|
71
71
|
type="text"
|
|
72
72
|
value=""
|
|
@@ -82,7 +82,7 @@ exports[`<DatasetForm /> matches the latest snapshot 1`] = `
|
|
|
82
82
|
class="field"
|
|
83
83
|
>
|
|
84
84
|
<label>
|
|
85
|
-
|
|
85
|
+
ruleImplementation.props.structure.alias
|
|
86
86
|
</label>
|
|
87
87
|
<div
|
|
88
88
|
class="seven wide field"
|
package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersField.spec.js.snap
CHANGED
|
@@ -1,52 +1,28 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<FiltersField /> matches the latest snapshot 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"name": "name",
|
|
29
|
-
"sort": {
|
|
30
|
-
"name": "name.sort",
|
|
31
|
-
},
|
|
32
|
-
"width": 2,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"fieldSelector": [Function],
|
|
36
|
-
"name": "system",
|
|
37
|
-
"sort": {
|
|
38
|
-
"name": "system.name.sort",
|
|
39
|
-
},
|
|
40
|
-
"width": 1,
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"fieldDecorator": [Function],
|
|
44
|
-
"name": "path",
|
|
45
|
-
"sort": {
|
|
46
|
-
"name": "path_sort",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
/>
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="field"
|
|
7
|
+
>
|
|
8
|
+
<label>
|
|
9
|
+
ruleImplementation.props.structure
|
|
10
|
+
</label>
|
|
11
|
+
<div
|
|
12
|
+
class="required fifteen wide field"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
class="ui fluid icon input"
|
|
16
|
+
>
|
|
17
|
+
<input
|
|
18
|
+
class="action-pointer"
|
|
19
|
+
placeholder="ruleImplementation.props.structure.placeholder"
|
|
20
|
+
required=""
|
|
21
|
+
type="text"
|
|
22
|
+
value=""
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
52
28
|
`;
|