@truedat/dd 8.6.7 → 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/BucketView.js +2 -2
- package/src/components/CatalogCustomViewCards.js +1 -1
- package/src/components/DictionaryRoutes.js +3 -3
- package/src/components/FilteredNav.js +3 -3
- package/src/components/Grant.js +4 -4
- package/src/components/GrantApprovalRule.js +1 -1
- package/src/components/GrantApprovalRuleConditions.js +1 -1
- package/src/components/GrantApprovalRuleDeleteButton.js +1 -1
- package/src/components/GrantApprovalRuleEdit.js +1 -1
- package/src/components/GrantApprovalRuleForm.js +6 -6
- package/src/components/GrantApprovalRules.js +1 -1
- package/src/components/GrantFilters.js +1 -1
- package/src/components/GrantFiltersLoader.js +1 -1
- package/src/components/GrantRemovalDirectButton.js +1 -1
- package/src/components/GrantRemovalWorkflow.js +2 -2
- package/src/components/GrantRemovalWorkflowDropdown.js +1 -1
- package/src/components/GrantRequest.js +3 -3
- package/src/components/GrantRequestApprovalForm.js +2 -2
- package/src/components/GrantRequestApprovalResults.js +1 -1
- package/src/components/GrantRequestBulkActions.js +2 -2
- package/src/components/GrantRequestBulkRoleSelector.js +1 -1
- package/src/components/GrantRequestCartResult.js +13 -3
- package/src/components/GrantRequestSummary.js +1 -1
- package/src/components/GrantRequests.js +2 -2
- package/src/components/GrantRequestsSearchResults.js +7 -7
- package/src/components/GrantRoutes.js +3 -9
- package/src/components/Grants.js +14 -4
- package/src/components/GrantsDownloadButton.js +1 -1
- package/src/components/GrantsLabelResults.js +2 -5
- package/src/components/GrantsLoader.js +2 -2
- package/src/components/GrantsTable.js +3 -8
- package/src/components/GraphLoader.js +1 -1
- package/src/components/LineageContextMenu.js +1 -1
- package/src/components/LineageDownloadButton.js +2 -2
- package/src/components/LineageEventsTable.js +1 -1
- package/src/components/LineageGraph.js +7 -6
- package/src/components/LineageGroup.js +2 -7
- package/src/components/LinkLabelsSelector.js +1 -1
- package/src/components/MyGrantRequests.js +1 -1
- package/src/components/ProfileGroup.js +2 -2
- package/src/components/ReferenceDatasetActions.js +1 -1
- package/src/components/ReferenceDatasetCreate.js +1 -1
- package/src/components/ReferenceDatasetDetail.js +1 -1
- package/src/components/ReferenceDatasetFieldSelector.js +5 -5
- package/src/components/ReferenceDatasetForm.js +3 -3
- package/src/components/ReferenceDatasetSelectorInputField.js +3 -3
- package/src/components/ReferenceDatasetsTable.js +1 -1
- package/src/components/StructureChildrenRelations.js +1 -1
- package/src/components/StructureConfidentialButton.js +1 -1
- package/src/components/StructureCrumbs.js +3 -3
- package/src/components/StructureDeleteButton.js +1 -1
- package/src/components/StructureFields.js +3 -3
- package/src/components/StructureFieldsDropdown.js +10 -10
- package/src/components/StructureGrantCart.js +3 -3
- package/src/components/StructureGrantCartCheckout.js +9 -4
- package/src/components/StructureGrantCartInformation.js +2 -7
- package/src/components/StructureGrantListButton.js +5 -5
- package/src/components/StructureGrantRequestAddCart.js +1 -1
- package/src/components/StructureGrantSummaryButton.js +2 -2
- package/src/components/StructureGrants.js +2 -2
- package/src/components/StructureItem.js +4 -4
- package/src/components/StructureItemRoot.js +1 -1
- package/src/components/StructureLoader.js +1 -2
- package/src/components/StructureMetadata.js +23 -17
- package/src/components/StructureNav.js +1 -1
- package/src/components/StructureNavClassified.js +1 -1
- package/src/components/StructureNoteActions.js +1 -1
- package/src/components/StructureNotes.js +3 -3
- package/src/components/StructureNotesEdit.js +4 -4
- package/src/components/StructureProfileButton.js +1 -1
- package/src/components/StructureProperties.js +1 -1
- package/src/components/StructureSelector.js +3 -3
- package/src/components/StructureSelectorInputFieldJoin.js +2 -2
- package/src/components/StructureStructureForm.js +2 -2
- package/src/components/StructureStructureLinks.js +5 -5
- package/src/components/StructureTabPane.js +5 -5
- package/src/components/StructureTabPaneRoutes.js +92 -80
- package/src/components/StructureTabRoutes.js +30 -8
- package/src/components/StructureTabs.js +17 -16
- package/src/components/StructureTagForm.js +2 -2
- package/src/components/StructureTags.js +1 -1
- package/src/components/StructureTypeForm.js +3 -3
- package/src/components/StructureTypeLoader.js +1 -1
- package/src/components/StructureTypesLoader.js +1 -1
- package/src/components/StructureTypesRoutes.js +1 -1
- package/src/components/StructureVersions.js +17 -16
- package/src/components/StructureView.js +1 -1
- package/src/components/StructuresBulkUpdate.js +4 -4
- package/src/components/StructuresDomainsUploadOption.js +1 -1
- package/src/components/StructuresDownloadOption.js +1 -1
- package/src/components/StructuresGrantRequestView.js +1 -1
- package/src/components/StructuresLoader.js +1 -1
- package/src/components/StructuresRoutes.js +2 -2
- package/src/components/StructuresTable.js +4 -4
- package/src/components/StructuresUpdateOption.js +3 -3
- package/src/components/StructuresUploadEventsTable.js +9 -9
- package/src/components/StructuresUploadOption.js +14 -14
- package/src/components/StructuresView.js +1 -1
- package/src/components/SystemCards.js +7 -7
- package/src/components/SystemForm.js +2 -2
- package/src/components/SystemLoader.js +1 -1
- package/src/components/SystemStructures.js +2 -2
- package/src/components/SystemView.js +3 -3
- package/src/components/Task.js +6 -6
- package/src/components/Tasks.js +1 -1
- package/src/components/ValueConditionStructure.js +2 -2
- package/src/components/__tests__/BucketView.spec.js +2 -2
- package/src/components/__tests__/CatalogCustomViewCards.spec.js +1 -1
- package/src/components/__tests__/CatalogViewConfigForm.spec.js +2 -2
- package/src/components/__tests__/CatalogViewConfigs.spec.js +2 -2
- package/src/components/__tests__/DictionaryRoutes.spec.js +7 -3
- package/src/components/__tests__/EditDomainForm.spec.js +3 -3
- package/src/components/__tests__/FilteredNav.spec.js +4 -4
- package/src/components/__tests__/Grant.spec.js +4 -4
- package/src/components/__tests__/GrantApprovalRuleConditions.spec.js +6 -6
- package/src/components/__tests__/GrantApprovalRuleDeleteButton.spec.js +2 -2
- package/src/components/__tests__/GrantApprovalRuleForm.spec.js +9 -7
- package/src/components/__tests__/GrantApprovalRules.spec.js +3 -3
- package/src/components/__tests__/GrantRemoval.spec.js +4 -4
- package/src/components/__tests__/GrantRemovalDirectButton.spec.js +8 -8
- package/src/components/__tests__/GrantRemovalWorkflow.spec.js +8 -8
- package/src/components/__tests__/GrantRequest.spec.js +1 -1
- package/src/components/__tests__/GrantRequestApprovalForm.spec.js +6 -6
- package/src/components/__tests__/GrantRequestApprovalPopup.spec.js +1 -1
- package/src/components/__tests__/GrantRequestBulkActions.spec.js +8 -8
- package/src/components/__tests__/GrantRequestBulkApprovalForm.spec.js +2 -2
- package/src/components/__tests__/GrantRequestBulkRoleSelector.spec.js +2 -2
- package/src/components/__tests__/GrantRequestCartResult.spec.js +13 -3
- package/src/components/__tests__/GrantRequestHeader.spec.js +2 -2
- package/src/components/__tests__/GrantRequestRow.spec.js +4 -4
- package/src/components/__tests__/GrantRequestSummary.spec.js +1 -1
- package/src/components/__tests__/GrantRequests.spec.js +2 -2
- package/src/components/__tests__/GrantRequestsLabelResults.spec.js +3 -3
- package/src/components/__tests__/GrantRequestsSearchResults.spec.js +2 -2
- package/src/components/__tests__/GrantRequestsTable.spec.js +1 -1
- package/src/components/__tests__/GrantRoutes.spec.js +16 -16
- package/src/components/__tests__/GrantsDownloadButton.spec.js +68 -40
- package/src/components/__tests__/GrantsLabelResults.spec.js +2 -2
- package/src/components/__tests__/GrantsLoader.spec.js +1 -1
- package/src/components/__tests__/GrantsTable.spec.js +4 -4
- package/src/components/__tests__/LineageForm.spec.js +5 -5
- package/src/components/__tests__/LineageGroup.spec.js +6 -6
- package/src/components/__tests__/LineageResource.spec.js +5 -5
- package/src/components/__tests__/LineageRoutes.spec.js +6 -6
- package/src/components/__tests__/PendingStructureNoteRow.spec.js +4 -4
- package/src/components/__tests__/PendingStructureNotes.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesLabelResults.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesPagination.spec.js +1 -1
- package/src/components/__tests__/PendingStructureNotesTable.spec.js +2 -2
- package/src/components/__tests__/ProfileExecution.spec.js +2 -2
- package/src/components/__tests__/ProfileGroup.spec.js +2 -2
- package/src/components/__tests__/ReferenceDataset.spec.js +7 -5
- package/src/components/__tests__/ReferenceDatasetCreate.spec.js +1 -1
- package/src/components/__tests__/ReferenceDatasetDetail.spec.js +1 -1
- package/src/components/__tests__/ReferenceDatasetFieldSelector.spec.js +9 -9
- package/src/components/__tests__/ReferenceDatasetForm.spec.js +9 -7
- package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +1 -1
- package/src/components/__tests__/StructureFieldRow.spec.js +3 -3
- package/src/components/__tests__/StructureFieldsDropdown.spec.js +5 -5
- package/src/components/__tests__/StructureGrantCartCheckout.spec.js +2 -2
- package/src/components/__tests__/StructureGrantCartInformation.spec.js +1 -1
- package/src/components/__tests__/StructureGrantCartUserSelector.spec.js +4 -4
- package/src/components/__tests__/StructureGrantDropdown.spec.js +3 -3
- package/src/components/__tests__/StructureGrantListButton.spec.js +4 -4
- package/src/components/__tests__/StructureGrantSummaryButton.spec.js +5 -5
- package/src/components/__tests__/StructureItem.spec.js +3 -3
- package/src/components/__tests__/StructureMetadata.spec.js +2 -4
- package/src/components/__tests__/StructureNavClassified.spec.js +1 -1
- package/src/components/__tests__/StructureNoteActions.spec.js +17 -15
- package/src/components/__tests__/StructureNoteLink.spec.js +8 -9
- package/src/components/__tests__/StructureNotes.spec.js +3 -3
- package/src/components/__tests__/StructureNotesDownloadButton.spec.js +15 -15
- package/src/components/__tests__/StructureNotesEdit.spec.js +1 -1
- package/src/components/__tests__/StructureRelationRow.spec.js +2 -2
- package/src/components/__tests__/StructureRelations.spec.js +2 -2
- package/src/components/__tests__/StructureRow.spec.js +2 -2
- package/src/components/__tests__/StructureSelectorInputField.spec.js +2 -2
- package/src/components/__tests__/StructureSelectorInputFieldJoin.spec.js +1 -1
- package/src/components/__tests__/StructureStructureForm.spec.js +1 -1
- package/src/components/__tests__/StructureStructureLinks.spec.js +15 -15
- package/src/components/__tests__/StructureSummary.spec.js +1 -1
- package/src/components/__tests__/StructureTabPane.spec.js +10 -12
- package/src/components/__tests__/StructureTabRoutes.spec.js +1 -1
- package/src/components/__tests__/StructureTabs.spec.js +24 -8
- package/src/components/__tests__/StructureTag.spec.js +11 -11
- package/src/components/__tests__/StructureTagForm.spec.js +17 -17
- package/src/components/__tests__/StructureTypesRoutes.spec.js +4 -4
- package/src/components/__tests__/StructureVersions.spec.js +0 -1
- package/src/components/__tests__/StructuresBulkUpdate.spec.js +3 -3
- package/src/components/__tests__/StructuresDownloadOption.spec.js +3 -3
- package/src/components/__tests__/StructuresEditableDownloadOption.spec.js +2 -2
- package/src/components/__tests__/StructuresGrantRequestView.spec.js +2 -2
- package/src/components/__tests__/StructuresLabelResults.spec.js +1 -1
- package/src/components/__tests__/StructuresLoader.spec.js +1 -1
- package/src/components/__tests__/StructuresOptions.spec.js +15 -9
- package/src/components/__tests__/StructuresRoutes.spec.js +1 -1
- package/src/components/__tests__/StructuresSearchResults.spec.js +2 -2
- package/src/components/__tests__/StructuresTable.spec.js +5 -5
- package/src/components/__tests__/StructuresUpdateOption.spec.js +2 -2
- package/src/components/__tests__/StructuresUploadOption.spec.js +2 -2
- package/src/components/__tests__/StructuresView.spec.js +6 -6
- package/src/components/__tests__/SystemCards.spec.js +2 -2
- package/src/components/__tests__/SystemFilteredNav.spec.js +1 -1
- package/src/components/__tests__/SystemStructuresLoader.spec.js +1 -1
- package/src/components/__tests__/SystemsRoutes.spec.js +1 -1
- package/src/components/__tests__/TagForm.spec.js +7 -5
- package/src/components/__tests__/TagsRoutes.spec.js +1 -1
- package/src/components/__tests__/Tasks.spec.js +9 -9
- package/src/components/__tests__/TasksRoutes.spec.js +1 -1
- package/src/components/__tests__/ValueConditionStructure.spec.js +2 -2
- package/src/hooks/useBucketPaths.js +1 -1
- package/src/hooks/useBucketStructures.js +1 -1
- package/src/hooks/useCustomTabs.js +1 -1
- package/src/hooks/useGrant.js +7 -3
- package/src/hooks/useGrantRequest.js +4 -4
- package/src/hooks/useStructures.js +4 -5
- package/src/hooks/useTemplatesByIds.js +10 -5
- package/src/messages/en.js +1 -2
- package/src/messages/es.js +1 -2
- package/src/messages/index.js +1 -1
- package/src/reducers/__tests__/bulkUpdateStructuresLoading.spec.js +5 -5
- package/src/reducers/__tests__/creatingGrantRequestApproval.spec.js +3 -3
- package/src/reducers/__tests__/csvGraphDownloading.spec.js +4 -4
- package/src/reducers/__tests__/ddMessage.spec.js +3 -3
- package/src/reducers/__tests__/grantFilters.spec.js +1 -1
- package/src/reducers/__tests__/grantQuery.spec.js +6 -6
- package/src/reducers/__tests__/grantRequests.spec.js +2 -2
- package/src/reducers/__tests__/grantRequestsCart.spec.js +31 -31
- package/src/reducers/__tests__/grantRequestsLoading.spec.js +3 -3
- package/src/reducers/__tests__/grantRequestsQuery.spec.js +2 -2
- package/src/reducers/__tests__/grants.spec.js +2 -2
- package/src/reducers/__tests__/graph.spec.js +1 -1
- package/src/reducers/__tests__/graphLoading.spec.js +6 -4
- package/src/reducers/__tests__/graphRedirect.spec.js +11 -7
- package/src/reducers/__tests__/lineageEventsLoading.spec.js +2 -2
- package/src/reducers/__tests__/lineageQuery.spec.js +6 -6
- package/src/reducers/__tests__/nodes.spec.js +1 -1
- package/src/reducers/__tests__/nodesLoading.spec.js +2 -2
- package/src/reducers/__tests__/profileExecution.spec.js +6 -6
- package/src/reducers/__tests__/profileExecutionLoading.spec.js +5 -3
- package/src/reducers/__tests__/profileGroup.spec.js +12 -12
- package/src/reducers/__tests__/profileGroupLoading.spec.js +6 -6
- package/src/reducers/__tests__/referenceDatasetSaving.spec.js +8 -4
- package/src/reducers/__tests__/selectedGroups.spec.js +2 -2
- package/src/reducers/__tests__/selectedNode.spec.js +5 -5
- package/src/reducers/__tests__/selectedResources.spec.js +5 -5
- package/src/reducers/__tests__/selectedUserSearchFilter.spec.js +3 -3
- package/src/reducers/__tests__/structure.spec.js +2 -2
- package/src/reducers/__tests__/structureActions.spec.js +4 -4
- package/src/reducers/__tests__/structureAncestry.spec.js +6 -6
- package/src/reducers/__tests__/structureChildren.spec.js +2 -2
- package/src/reducers/__tests__/structureFields.spec.js +5 -5
- package/src/reducers/__tests__/structureImpactGraph.spec.js +6 -6
- package/src/reducers/__tests__/structureImpactId.spec.js +7 -7
- package/src/reducers/__tests__/structureLineageGraph.spec.js +7 -7
- package/src/reducers/__tests__/structureLineageId.spec.js +7 -7
- package/src/reducers/__tests__/structureLinks.spec.js +6 -6
- package/src/reducers/__tests__/structureLoading.spec.js +2 -2
- package/src/reducers/__tests__/structureNotes.spec.js +1 -1
- package/src/reducers/__tests__/structureParents.spec.js +2 -2
- package/src/reducers/__tests__/structureProfile.spec.js +9 -6
- package/src/reducers/__tests__/structureQuery.spec.js +4 -4
- package/src/reducers/__tests__/structureRedirect.spec.js +9 -9
- package/src/reducers/__tests__/structureRelations.spec.js +4 -4
- package/src/reducers/__tests__/structureSiblings.spec.js +2 -2
- package/src/reducers/__tests__/structureSystem.spec.js +3 -3
- package/src/reducers/__tests__/structureTagSaving.spec.js +2 -2
- package/src/reducers/__tests__/structureType.spec.js +2 -2
- package/src/reducers/__tests__/structureTypeLoading.spec.js +6 -6
- package/src/reducers/__tests__/structureVersion.spec.js +4 -4
- package/src/reducers/__tests__/structureVersions.spec.js +9 -5
- package/src/reducers/__tests__/structures.spec.js +3 -3
- package/src/reducers/__tests__/structuresAliasNameMode.spec.js +5 -5
- package/src/reducers/__tests__/structuresUploadEvents.spec.js +1 -1
- package/src/reducers/__tests__/structuresUploadEventsLoading.spec.js +4 -4
- package/src/reducers/__tests__/system.spec.js +2 -2
- package/src/reducers/__tests__/systemId.spec.js +3 -3
- package/src/reducers/__tests__/systemStructures.spec.js +3 -3
- package/src/reducers/__tests__/systemStructuresLoading.spec.js +2 -2
- package/src/reducers/ddMessage.js +1 -1
- package/src/reducers/grantFilters.js +1 -1
- package/src/reducers/grantRequestsCart.js +16 -13
- package/src/reducers/grantSelectedFilter.js +1 -1
- package/src/reducers/profileGroup.js +1 -1
- package/src/reducers/selectedResources.js +1 -1
- package/src/reducers/selectedUserSearchFilter.js +1 -1
- package/src/reducers/structure.js +1 -1
- package/src/reducers/structureImpactGraph.js +1 -1
- package/src/reducers/structureLineageGraph.js +1 -1
- package/src/reducers/structureRedirect.js +1 -1
- package/src/reducers/structuresAliasNameMode.js +1 -1
- package/src/reducers/structuresUploadEvents.js +1 -1
- package/src/reducers/systemId.js +1 -1
- package/src/reducers/userSearchFilters.js +1 -1
- package/src/routines.js +31 -32
- package/src/sagas/__tests__/createGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/createGrantRequestApproval.spec.js +1 -1
- package/src/sagas/__tests__/createGrantRequestStatus.spec.js +1 -1
- package/src/sagas/__tests__/createGraph.spec.js +5 -5
- package/src/sagas/__tests__/createProfileGroup.spec.js +10 -10
- package/src/sagas/__tests__/deleteGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/deleteStructureStructureLink.spec.js +1 -1
- package/src/sagas/__tests__/doStructureNoteAction.spec.js +6 -6
- package/src/sagas/__tests__/downloadCsvGraph.spec.js +2 -2
- package/src/sagas/__tests__/fetchGrantFilters.spec.js +1 -1
- package/src/sagas/__tests__/fetchGrantRequestsFilters.spec.js +3 -3
- package/src/sagas/__tests__/fetchProfileExecution.spec.js +3 -3
- package/src/sagas/__tests__/fetchProfileGroup.spec.js +6 -6
- package/src/sagas/__tests__/fetchStructureNotes.spec.js +3 -3
- package/src/sagas/__tests__/fetchStructures.spec.js +2 -2
- package/src/sagas/__tests__/fetchStructuresUploadEvents.spec.js +1 -1
- package/src/sagas/__tests__/fetchSystemStructures.spec.js +4 -4
- package/src/sagas/__tests__/requestGrantRemoval.spec.js +2 -2
- package/src/sagas/__tests__/updateGrantApprovalRule.spec.js +1 -1
- package/src/sagas/__tests__/updateStructure.spec.js +1 -1
- package/src/sagas/__tests__/uploadStructuresDomains.spec.js +3 -3
- package/src/sagas/bulkUpdateStructures.js +1 -1
- package/src/sagas/createGrantApprovalRule.js +1 -1
- package/src/sagas/createGrantRequestApproval.js +1 -1
- package/src/sagas/createGrantRequestStatus.js +2 -2
- package/src/sagas/createGraph.js +3 -3
- package/src/sagas/createProfileGroup.js +1 -1
- package/src/sagas/createSystem.js +2 -2
- package/src/sagas/deleteCatalogViewConfig.js +1 -1
- package/src/sagas/deleteGrantApprovalRule.js +1 -1
- package/src/sagas/deleteStructureStructureLink.js +1 -1
- package/src/sagas/doStructureNoteAction.js +9 -4
- package/src/sagas/downloadCsvGraph.js +2 -2
- package/src/sagas/downloadReferenceDataset.js +1 -1
- package/src/sagas/fetchGrantRequestsFilters.js +1 -1
- package/src/sagas/fetchGraph.js +1 -1
- package/src/sagas/fetchStructuresUploadEvents.js +1 -1
- package/src/sagas/graph/polling.js +4 -4
- package/src/sagas/linkStructureToStructure.js +2 -2
- package/src/sagas/requestGrantRemoval.js +1 -1
- package/src/sagas/updateGrantApprovalRule.js +1 -1
- package/src/sagas/updateStructure.js +1 -1
- package/src/sagas/uploadStructuresDomains.js +2 -2
- package/src/sagas/upsertCatalogViewConfig.js +1 -1
- package/src/selectors/__tests__/getActiveTab.spec.js +99 -28
- package/src/selectors/__tests__/getBusinessConceptsLinksToStructuresColumnsSelector.spec.js +1 -1
- package/src/selectors/__tests__/getGrantRequestsColumns.spec.js +2 -2
- package/src/selectors/__tests__/getGrantRequestsSearchColumns.spec.js +1 -1
- package/src/selectors/__tests__/getGrantsColumns.spec.js +4 -4
- package/src/selectors/__tests__/getParsedEvents.spec.js +1 -1
- package/src/selectors/__tests__/getSortedRelations.spec.js +5 -5
- package/src/selectors/__tests__/getStructureFieldColumns.spec.js +1 -1
- package/src/selectors/__tests__/getStructureRelations.spec.js +1 -1
- package/src/selectors/__tests__/getTabVisibility.spec.js +38 -28
- package/src/selectors/__tests__/messages.spec.js +4 -4
- package/src/selectors/getActiveTab.js +16 -4
- package/src/selectors/getBusinessConceptsLinksToStructuresColumnsSelector.js +1 -1
- package/src/selectors/getGrantAvailableFilters.js +2 -2
- package/src/selectors/getGrantRequestTemplate.js +1 -1
- package/src/selectors/getGrantRequests.js +2 -2
- package/src/selectors/getGrantRequestsColumns.js +6 -6
- package/src/selectors/getGrantRequestsQuery.js +1 -1
- package/src/selectors/getGrantRequestsSearchColumns.js +2 -2
- package/src/selectors/getGrantSelectedFilters.js +1 -1
- package/src/selectors/getGrantsColumns.js +5 -5
- package/src/selectors/getLineageLevels.js +1 -1
- package/src/selectors/getLinkedImplementationsToStructuresColumns.js +1 -1
- package/src/selectors/getRelationSortingCriteria.js +1 -1
- package/src/selectors/getSortedRelations.js +5 -5
- package/src/selectors/getSortedStructureNotes.js +4 -4
- package/src/selectors/getStructureDeletedAt.js +2 -2
- package/src/selectors/getStructureFieldColumns.js +1 -1
- package/src/selectors/getStructureLinks.js +1 -1
- package/src/selectors/getStructureParent.js +2 -2
- package/src/selectors/getStructureProperties.js +1 -1
- package/src/selectors/getStructureRelations.js +4 -4
- package/src/selectors/getStructureSortingCriteria.js +1 -1
- package/src/selectors/getStructureUpdatedAt.js +1 -1
- package/src/selectors/getStructuresFields.js +5 -5
- package/src/selectors/getStructuresUploadEventColumns.js +1 -1
- package/src/selectors/getSystem.js +1 -1
- package/src/selectors/getSystemTemplate.js +1 -1
- package/src/selectors/getTabVisibility.js +2 -2
- package/src/selectors/groupOptionsSelector.js +2 -2
- package/src/selectors/leafClassesSelector.js +1 -1
- package/src/selectors/messages.js +1 -1
- package/src/selectors/metadataViewsSelector.js +6 -6
- package/src/selectors/resourceOptionsSelector.js +2 -2
- package/src/selectors/structureColumnsSelector.js +2 -2
- package/src/selectors/structureNotesColumnsSelector.js +1 -1
- package/src/selectors/templateNamesSelector.js +1 -1
- package/src/selectors/utils/decorators.js +32 -20
|
@@ -22,7 +22,7 @@ describe("<GrantRequestsSearchResults />", () => {
|
|
|
22
22
|
const rendered = render(
|
|
23
23
|
<SearchContext value={baseSearchContext}>
|
|
24
24
|
<GrantRequestsSearchResults />
|
|
25
|
-
</SearchContext
|
|
25
|
+
</SearchContext>,
|
|
26
26
|
);
|
|
27
27
|
await waitForLoad(rendered);
|
|
28
28
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -32,7 +32,7 @@ describe("<GrantRequestsSearchResults />", () => {
|
|
|
32
32
|
const rendered = render(
|
|
33
33
|
<SearchContext value={baseSearchContext}>
|
|
34
34
|
<GrantRequestsSearchResults />
|
|
35
|
-
</SearchContext
|
|
35
|
+
</SearchContext>,
|
|
36
36
|
);
|
|
37
37
|
await waitForLoad(rendered);
|
|
38
38
|
|
|
@@ -26,112 +26,112 @@ jest.mock(
|
|
|
26
26
|
() =>
|
|
27
27
|
function Grant() {
|
|
28
28
|
return <div>Grant</div>;
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
30
|
);
|
|
31
31
|
jest.mock(
|
|
32
32
|
"../GrantApprovalRule",
|
|
33
33
|
() =>
|
|
34
34
|
function GrantApprovalRule() {
|
|
35
35
|
return <div>GrantApprovalRule</div>;
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
);
|
|
38
38
|
jest.mock(
|
|
39
39
|
"../GrantApprovalRuleEdit",
|
|
40
40
|
() =>
|
|
41
41
|
function GrantApprovalRuleEdit() {
|
|
42
42
|
return <div>GrantApprovalRuleEdit</div>;
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
44
|
);
|
|
45
45
|
jest.mock(
|
|
46
46
|
"../GrantApprovalRuleNew",
|
|
47
47
|
() =>
|
|
48
48
|
function GrantApprovalRuleNew() {
|
|
49
49
|
return <div>GrantApprovalRuleNew</div>;
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
51
|
);
|
|
52
52
|
jest.mock(
|
|
53
53
|
"../GrantApprovalRules",
|
|
54
54
|
() =>
|
|
55
55
|
function GrantApprovalRules() {
|
|
56
56
|
return <div>GrantApprovalRules</div>;
|
|
57
|
-
}
|
|
57
|
+
},
|
|
58
58
|
);
|
|
59
59
|
jest.mock(
|
|
60
60
|
"../GrantFiltersLoader",
|
|
61
61
|
() =>
|
|
62
62
|
function GrantFiltersLoader() {
|
|
63
63
|
return <div>GrantFiltersLoader</div>;
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
65
|
);
|
|
66
66
|
jest.mock(
|
|
67
67
|
"../GrantRequest",
|
|
68
68
|
() =>
|
|
69
69
|
function GrantRequest() {
|
|
70
70
|
return <div>GrantRequest</div>;
|
|
71
|
-
}
|
|
71
|
+
},
|
|
72
72
|
);
|
|
73
73
|
jest.mock(
|
|
74
74
|
"../GrantRequestLoader",
|
|
75
75
|
() =>
|
|
76
76
|
function GrantRequestLoader() {
|
|
77
77
|
return <div>GrantRequestLoader</div>;
|
|
78
|
-
}
|
|
78
|
+
},
|
|
79
79
|
);
|
|
80
80
|
jest.mock(
|
|
81
81
|
"../GrantRequestsLoader",
|
|
82
82
|
() =>
|
|
83
83
|
function GrantRequestsLoader() {
|
|
84
84
|
return <div>GrantRequestsLoader</div>;
|
|
85
|
-
}
|
|
85
|
+
},
|
|
86
86
|
);
|
|
87
87
|
jest.mock(
|
|
88
88
|
"../GrantRequestsSearchResults",
|
|
89
89
|
() =>
|
|
90
90
|
function GrantRequestsSearchResults() {
|
|
91
91
|
return <div>GrantRequestsSearchResults</div>;
|
|
92
|
-
}
|
|
92
|
+
},
|
|
93
93
|
);
|
|
94
94
|
jest.mock(
|
|
95
95
|
"../GrantRequestApprovalResults",
|
|
96
96
|
() =>
|
|
97
97
|
function GrantRequestApprovalResults() {
|
|
98
98
|
return <div>GrantRequestApprovalResults</div>;
|
|
99
|
-
}
|
|
99
|
+
},
|
|
100
100
|
);
|
|
101
101
|
jest.mock(
|
|
102
102
|
"../Grants",
|
|
103
103
|
() =>
|
|
104
104
|
function Grants() {
|
|
105
105
|
return <div>Grants</div>;
|
|
106
|
-
}
|
|
106
|
+
},
|
|
107
107
|
);
|
|
108
108
|
jest.mock(
|
|
109
109
|
"../GrantsLoader",
|
|
110
110
|
() =>
|
|
111
111
|
function GrantsLoader() {
|
|
112
112
|
return <div>GrantsLoader</div>;
|
|
113
|
-
}
|
|
113
|
+
},
|
|
114
114
|
);
|
|
115
115
|
jest.mock(
|
|
116
116
|
"../MyGrantRequests",
|
|
117
117
|
() =>
|
|
118
118
|
function MyGrantRequests() {
|
|
119
119
|
return <div>MyGrantRequests</div>;
|
|
120
|
-
}
|
|
120
|
+
},
|
|
121
121
|
);
|
|
122
122
|
jest.mock(
|
|
123
123
|
"../StructureGrantCartCheckout",
|
|
124
124
|
() =>
|
|
125
125
|
function StructureGrantCartCheckout() {
|
|
126
126
|
return <div>StructureGrantCartCheckout</div>;
|
|
127
|
-
}
|
|
127
|
+
},
|
|
128
128
|
);
|
|
129
129
|
jest.mock(
|
|
130
130
|
"../StructuresGrantRequestView",
|
|
131
131
|
() =>
|
|
132
132
|
function StructuresGrantRequestView() {
|
|
133
133
|
return <div>StructuresGrantRequestView</div>;
|
|
134
|
-
}
|
|
134
|
+
},
|
|
135
135
|
);
|
|
136
136
|
|
|
137
137
|
describe("<GrantRoutes />", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
2
2
|
import { screen } from "@testing-library/react";
|
|
3
|
-
import { GrantsDownloadButton } from "../GrantsDownloadButton";
|
|
4
3
|
import SearchContext from "@truedat/core/search/SearchContext";
|
|
4
|
+
import { GrantsDownloadButton } from "../GrantsDownloadButton";
|
|
5
5
|
|
|
6
6
|
jest.mock("@truedat/dd/hooks/useGrant", () => ({
|
|
7
7
|
useGrantDownload: jest.fn(() => ({
|
|
@@ -31,34 +31,40 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
31
31
|
|
|
32
32
|
const searchContext = {
|
|
33
33
|
searchData: {
|
|
34
|
-
data: [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
data: [
|
|
35
|
+
{
|
|
36
|
+
id: 1,
|
|
37
|
+
end_date: "2025-05-16",
|
|
38
|
+
start_date: "2025-01-01",
|
|
39
|
+
detail: {},
|
|
40
|
+
user: { full_name: "Jane Doe" },
|
|
41
|
+
data_structure_version: {
|
|
42
|
+
name: "country",
|
|
43
|
+
path: ["postgres", "public"],
|
|
44
|
+
domain: { name: "demo", id: 5 },
|
|
45
|
+
system: { name: "PostgreSQL", id: 7 },
|
|
46
|
+
external_id: "postgres://postgresql/postgres/public/country",
|
|
47
|
+
data_structure_id: 241939,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
49
51
|
},
|
|
50
52
|
loading: false,
|
|
51
53
|
filterParams: {},
|
|
52
54
|
};
|
|
53
55
|
|
|
54
56
|
it("matches the latest snapshot", async () => {
|
|
55
|
-
const props = {
|
|
57
|
+
const props = {
|
|
58
|
+
hasFilterApplied: true,
|
|
59
|
+
onlyMyGrants: false,
|
|
60
|
+
setDownloading: jest.fn(),
|
|
61
|
+
};
|
|
56
62
|
|
|
57
63
|
const rendered = render(
|
|
58
64
|
<SearchContext value={searchContext}>
|
|
59
|
-
<GrantsDownloadButton {...props}/>
|
|
65
|
+
<GrantsDownloadButton {...props} />
|
|
60
66
|
</SearchContext>,
|
|
61
|
-
renderOpts
|
|
67
|
+
renderOpts,
|
|
62
68
|
);
|
|
63
69
|
|
|
64
70
|
await waitForLoad(rendered);
|
|
@@ -66,13 +72,17 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
66
72
|
});
|
|
67
73
|
|
|
68
74
|
it("is enabled if there is any grant to be downloaded", async () => {
|
|
69
|
-
const props = {
|
|
75
|
+
const props = {
|
|
76
|
+
hasFilterApplied: true,
|
|
77
|
+
onlyMyGrants: false,
|
|
78
|
+
setDownloading: jest.fn(),
|
|
79
|
+
};
|
|
70
80
|
|
|
71
81
|
render(
|
|
72
82
|
<SearchContext value={searchContext}>
|
|
73
|
-
<GrantsDownloadButton {...props}/>
|
|
83
|
+
<GrantsDownloadButton {...props} />
|
|
74
84
|
</SearchContext>,
|
|
75
|
-
renderOpts
|
|
85
|
+
renderOpts,
|
|
76
86
|
);
|
|
77
87
|
|
|
78
88
|
const button = await screen.findByRole("button");
|
|
@@ -82,19 +92,23 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
82
92
|
it("is disabled if there are no grants to be downloaded", async () => {
|
|
83
93
|
const searchContext = {
|
|
84
94
|
searchData: {
|
|
85
|
-
data: []
|
|
95
|
+
data: [],
|
|
86
96
|
},
|
|
87
97
|
loading: false,
|
|
88
98
|
filterParams: {},
|
|
89
99
|
};
|
|
90
100
|
|
|
91
|
-
const props = {
|
|
101
|
+
const props = {
|
|
102
|
+
hasFilterApplied: false,
|
|
103
|
+
onlyMyGrants: false,
|
|
104
|
+
setDownloading: jest.fn(),
|
|
105
|
+
};
|
|
92
106
|
|
|
93
107
|
render(
|
|
94
108
|
<SearchContext value={searchContext}>
|
|
95
|
-
<GrantsDownloadButton {...props}/>
|
|
109
|
+
<GrantsDownloadButton {...props} />
|
|
96
110
|
</SearchContext>,
|
|
97
|
-
renderOpts
|
|
111
|
+
renderOpts,
|
|
98
112
|
);
|
|
99
113
|
|
|
100
114
|
const button = await screen.getByRole("button");
|
|
@@ -104,18 +118,24 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
104
118
|
it("calls triggerDownload with the correct parameters on click", async () => {
|
|
105
119
|
const triggerMock = jest.fn();
|
|
106
120
|
|
|
107
|
-
jest
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
jest
|
|
122
|
+
.mocked(require("@truedat/dd/hooks/useGrant").useGrantDownload)
|
|
123
|
+
.mockReturnValue({
|
|
124
|
+
trigger: triggerMock,
|
|
125
|
+
isMutating: false,
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
const props = {
|
|
129
|
+
hasFilterApplied: true,
|
|
130
|
+
onlyMyGrants: true,
|
|
131
|
+
setDownloading: jest.fn(),
|
|
132
|
+
};
|
|
113
133
|
|
|
114
134
|
render(
|
|
115
135
|
<SearchContext value={searchContext}>
|
|
116
136
|
<GrantsDownloadButton {...props} />
|
|
117
137
|
</SearchContext>,
|
|
118
|
-
renderOpts
|
|
138
|
+
renderOpts,
|
|
119
139
|
);
|
|
120
140
|
|
|
121
141
|
const button = await screen.findByRole("button");
|
|
@@ -126,7 +146,7 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
126
146
|
search_by: "user",
|
|
127
147
|
header_labels: expect.any(Object),
|
|
128
148
|
lang: "en",
|
|
129
|
-
})
|
|
149
|
+
}),
|
|
130
150
|
);
|
|
131
151
|
});
|
|
132
152
|
|
|
@@ -135,7 +155,11 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
135
155
|
|
|
136
156
|
const grantHook = require("@truedat/dd/hooks/useGrant");
|
|
137
157
|
|
|
138
|
-
const props = {
|
|
158
|
+
const props = {
|
|
159
|
+
hasFilterApplied: true,
|
|
160
|
+
onlyMyGrants: false,
|
|
161
|
+
setDownloading: setDownloadingMock,
|
|
162
|
+
};
|
|
139
163
|
|
|
140
164
|
grantHook.useGrantDownload.mockReturnValue({
|
|
141
165
|
trigger: jest.fn(),
|
|
@@ -143,10 +167,10 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
143
167
|
});
|
|
144
168
|
|
|
145
169
|
const { rerender } = render(
|
|
146
|
-
<SearchContext value={searchContext}
|
|
170
|
+
<SearchContext value={searchContext}>
|
|
147
171
|
<GrantsDownloadButton {...props} />
|
|
148
172
|
</SearchContext>,
|
|
149
|
-
renderOpts
|
|
173
|
+
renderOpts,
|
|
150
174
|
);
|
|
151
175
|
|
|
152
176
|
grantHook.useGrantDownload.mockReturnValue({
|
|
@@ -154,13 +178,17 @@ describe("<GrantsDownloadButton />", () => {
|
|
|
154
178
|
isMutating: true,
|
|
155
179
|
});
|
|
156
180
|
|
|
157
|
-
const newProps = {
|
|
181
|
+
const newProps = {
|
|
182
|
+
hasFilterApplied: true,
|
|
183
|
+
onlyMyGrants: false,
|
|
184
|
+
setDownloading: setDownloadingMock,
|
|
185
|
+
};
|
|
158
186
|
|
|
159
187
|
rerender(
|
|
160
|
-
<SearchContext value={searchContext}
|
|
188
|
+
<SearchContext value={searchContext}>
|
|
161
189
|
<GrantsDownloadButton {...newProps} />
|
|
162
190
|
</SearchContext>,
|
|
163
|
-
renderOpts
|
|
191
|
+
renderOpts,
|
|
164
192
|
);
|
|
165
193
|
|
|
166
194
|
expect(setDownloadingMock).toHaveBeenCalledWith(true);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
2
|
-
import { GrantsLabelResults } from "../GrantsLabelResults";
|
|
3
2
|
import SearchContext from "@truedat/core/search/SearchContext";
|
|
3
|
+
import { GrantsLabelResults } from "../GrantsLabelResults";
|
|
4
4
|
|
|
5
5
|
describe("<GrantsLabelResults />", () => {
|
|
6
6
|
const renderOpts = {
|
|
@@ -20,7 +20,7 @@ describe("<GrantsLabelResults />", () => {
|
|
|
20
20
|
<SearchContext value={searchContext}>
|
|
21
21
|
<GrantsLabelResults {...props} />
|
|
22
22
|
</SearchContext>,
|
|
23
|
-
renderOpts
|
|
23
|
+
renderOpts,
|
|
24
24
|
);
|
|
25
25
|
await waitForLoad(rendered);
|
|
26
26
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
2
|
import { render, waitForLoad } from "@truedat/test/render";
|
|
3
|
+
import SearchContext from "@truedat/core/search/SearchContext";
|
|
3
4
|
import { GrantsTable } from "../GrantsTable";
|
|
4
5
|
import { defaultGrantsTableColumns } from "../../selectors/getGrantsColumns";
|
|
5
|
-
import SearchContext from "@truedat/core/search/SearchContext";
|
|
6
6
|
|
|
7
7
|
describe("<GrantsTable />", () => {
|
|
8
8
|
const renderOpts = {
|
|
@@ -97,7 +97,7 @@ describe("<GrantsTable />", () => {
|
|
|
97
97
|
<SearchContext value={searchContext}>
|
|
98
98
|
<GrantsTable {...props} />
|
|
99
99
|
</SearchContext>,
|
|
100
|
-
renderOpts
|
|
100
|
+
renderOpts,
|
|
101
101
|
);
|
|
102
102
|
await waitForLoad(rendered);
|
|
103
103
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -108,7 +108,7 @@ describe("<GrantsTable />", () => {
|
|
|
108
108
|
<SearchContext value={searchContext}>
|
|
109
109
|
<GrantsTable {...props} />
|
|
110
110
|
</SearchContext>,
|
|
111
|
-
renderOpts
|
|
111
|
+
renderOpts,
|
|
112
112
|
);
|
|
113
113
|
await waitForLoad(rendered);
|
|
114
114
|
|
|
@@ -124,7 +124,7 @@ describe("<GrantsTable />", () => {
|
|
|
124
124
|
<SearchContext value={searchContext}>
|
|
125
125
|
<GrantsTable {...props} />
|
|
126
126
|
</SearchContext>,
|
|
127
|
-
renderOpts
|
|
127
|
+
renderOpts,
|
|
128
128
|
);
|
|
129
129
|
await waitForLoad(rendered);
|
|
130
130
|
|
|
@@ -41,7 +41,7 @@ describe("<LineageForm />", () => {
|
|
|
41
41
|
const selectGroup = jest.fn();
|
|
42
42
|
const rendered = render(
|
|
43
43
|
<LineageForm {...props} selectGroup={selectGroup} />,
|
|
44
|
-
renderOpts
|
|
44
|
+
renderOpts,
|
|
45
45
|
);
|
|
46
46
|
await waitForLoad(rendered);
|
|
47
47
|
const user = userEvent.setup({ delay: null });
|
|
@@ -56,7 +56,7 @@ describe("<LineageForm />", () => {
|
|
|
56
56
|
const selectResources = jest.fn();
|
|
57
57
|
const rendered = render(
|
|
58
58
|
<LineageForm {...props} selectResources={selectResources} />,
|
|
59
|
-
renderOpts
|
|
59
|
+
renderOpts,
|
|
60
60
|
);
|
|
61
61
|
await waitForLoad(rendered);
|
|
62
62
|
const user = userEvent.setup({ delay: null });
|
|
@@ -77,7 +77,7 @@ describe("<LineageForm />", () => {
|
|
|
77
77
|
createGraph={createGraph}
|
|
78
78
|
selectedResources={selectedResources}
|
|
79
79
|
/>,
|
|
80
|
-
renderOpts
|
|
80
|
+
renderOpts,
|
|
81
81
|
);
|
|
82
82
|
await waitForLoad(rendered);
|
|
83
83
|
const user = userEvent.setup({ delay: null });
|
|
@@ -86,7 +86,7 @@ describe("<LineageForm />", () => {
|
|
|
86
86
|
await user.click(
|
|
87
87
|
rendered.getByRole("button", {
|
|
88
88
|
name: /navigation.lineage.lineage/i,
|
|
89
|
-
})
|
|
89
|
+
}),
|
|
90
90
|
);
|
|
91
91
|
|
|
92
92
|
expect(createGraph).toHaveBeenCalledTimes(1);
|
|
@@ -102,7 +102,7 @@ describe("<LineageForm />", () => {
|
|
|
102
102
|
const clearNodes = jest.fn();
|
|
103
103
|
const rendered = render(
|
|
104
104
|
<LineageForm {...props} resourceOptions={[]} clearNodes={clearNodes} />,
|
|
105
|
-
renderOpts
|
|
105
|
+
renderOpts,
|
|
106
106
|
);
|
|
107
107
|
await waitForLoad(rendered);
|
|
108
108
|
|
|
@@ -45,7 +45,7 @@ describe("<LineageGroup />", () => {
|
|
|
45
45
|
const rendered = render(
|
|
46
46
|
<svg>
|
|
47
47
|
<LineageGroup {...props} />
|
|
48
|
-
</svg
|
|
48
|
+
</svg>,
|
|
49
49
|
);
|
|
50
50
|
await waitForLoad(rendered);
|
|
51
51
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -55,7 +55,7 @@ describe("<LineageGroup />", () => {
|
|
|
55
55
|
const rendered = render(
|
|
56
56
|
<svg>
|
|
57
57
|
<LineageGroup selected {...props} />
|
|
58
|
-
</svg
|
|
58
|
+
</svg>,
|
|
59
59
|
);
|
|
60
60
|
await waitForLoad(rendered);
|
|
61
61
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -66,7 +66,7 @@ describe("<LineageGroup />", () => {
|
|
|
66
66
|
const rendered = render(
|
|
67
67
|
<svg>
|
|
68
68
|
<LineageGroup {...customProps} />
|
|
69
|
-
</svg
|
|
69
|
+
</svg>,
|
|
70
70
|
);
|
|
71
71
|
await waitForLoad(rendered);
|
|
72
72
|
expect(rendered.getByText("Context Menu Mock")).toBeInTheDocument();
|
|
@@ -76,7 +76,7 @@ describe("<LineageGroup />", () => {
|
|
|
76
76
|
const rendered = render(
|
|
77
77
|
<svg>
|
|
78
78
|
<LineageGroup {...props} />
|
|
79
|
-
</svg
|
|
79
|
+
</svg>,
|
|
80
80
|
);
|
|
81
81
|
await waitForLoad(rendered);
|
|
82
82
|
expect(rendered.container.querySelector(".popup")).not.toBeInTheDocument();
|
|
@@ -86,7 +86,7 @@ describe("<LineageGroup />", () => {
|
|
|
86
86
|
const rendered = render(
|
|
87
87
|
<svg>
|
|
88
88
|
<LineageGroup {...props} />
|
|
89
|
-
</svg
|
|
89
|
+
</svg>,
|
|
90
90
|
);
|
|
91
91
|
await waitForLoad(rendered);
|
|
92
92
|
|
|
@@ -99,7 +99,7 @@ describe("<LineageGroup />", () => {
|
|
|
99
99
|
const rendered = render(
|
|
100
100
|
<svg>
|
|
101
101
|
<LineageGroup {...props} z={0} />
|
|
102
|
-
</svg
|
|
102
|
+
</svg>,
|
|
103
103
|
);
|
|
104
104
|
await waitForLoad(rendered);
|
|
105
105
|
|
|
@@ -41,7 +41,7 @@ describe("<LineageResource />", () => {
|
|
|
41
41
|
const rendered = render(
|
|
42
42
|
<svg>
|
|
43
43
|
<LineageResource {...props} />
|
|
44
|
-
</svg
|
|
44
|
+
</svg>,
|
|
45
45
|
);
|
|
46
46
|
await waitForLoad(rendered);
|
|
47
47
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -51,7 +51,7 @@ describe("<LineageResource />", () => {
|
|
|
51
51
|
const rendered = render(
|
|
52
52
|
<svg>
|
|
53
53
|
<LineageResource selected {...props} />
|
|
54
|
-
</svg
|
|
54
|
+
</svg>,
|
|
55
55
|
);
|
|
56
56
|
await waitForLoad(rendered);
|
|
57
57
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -62,7 +62,7 @@ describe("<LineageResource />", () => {
|
|
|
62
62
|
const rendered = render(
|
|
63
63
|
<svg>
|
|
64
64
|
<LineageResource {...customProps} />
|
|
65
|
-
</svg
|
|
65
|
+
</svg>,
|
|
66
66
|
);
|
|
67
67
|
await waitForLoad(rendered);
|
|
68
68
|
expect(rendered.getByText(/context menu mock/i)).toBeInTheDocument();
|
|
@@ -72,7 +72,7 @@ describe("<LineageResource />", () => {
|
|
|
72
72
|
const rendered = render(
|
|
73
73
|
<svg>
|
|
74
74
|
<LineageResource {...props} />
|
|
75
|
-
</svg
|
|
75
|
+
</svg>,
|
|
76
76
|
);
|
|
77
77
|
await waitForLoad(rendered);
|
|
78
78
|
expect(rendered.container.querySelector(".popup")).not.toBeInTheDocument();
|
|
@@ -82,7 +82,7 @@ describe("<LineageResource />", () => {
|
|
|
82
82
|
const rendered = render(
|
|
83
83
|
<svg>
|
|
84
84
|
<LineageResource {...props} />
|
|
85
|
-
</svg
|
|
85
|
+
</svg>,
|
|
86
86
|
);
|
|
87
87
|
await waitForLoad(rendered);
|
|
88
88
|
|
|
@@ -12,42 +12,42 @@ jest.mock(
|
|
|
12
12
|
() =>
|
|
13
13
|
function LineageEvents() {
|
|
14
14
|
return <div>LineageEvents</div>;
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
16
|
);
|
|
17
17
|
jest.mock(
|
|
18
18
|
"../LineageGraph",
|
|
19
19
|
() =>
|
|
20
20
|
function LineageGraph() {
|
|
21
21
|
return <div>LineageGraph</div>;
|
|
22
|
-
}
|
|
22
|
+
},
|
|
23
23
|
);
|
|
24
24
|
jest.mock(
|
|
25
25
|
"../LineageSample",
|
|
26
26
|
() =>
|
|
27
27
|
function LineageSample() {
|
|
28
28
|
return <div>LineageSample</div>;
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
30
|
);
|
|
31
31
|
jest.mock(
|
|
32
32
|
"../LineageForm",
|
|
33
33
|
() =>
|
|
34
34
|
function LineageForm() {
|
|
35
35
|
return <div>LineageForm</div>;
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
);
|
|
38
38
|
jest.mock(
|
|
39
39
|
"../GraphLoader",
|
|
40
40
|
() =>
|
|
41
41
|
function GraphLoader() {
|
|
42
42
|
return <div>GraphLoader</div>;
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
44
|
);
|
|
45
45
|
jest.mock(
|
|
46
46
|
"../GraphRedirector",
|
|
47
47
|
() =>
|
|
48
48
|
function GraphRedirector() {
|
|
49
49
|
return <div>GraphRedirector</div>;
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
51
|
);
|
|
52
52
|
jest.mock("@truedat/core/components", () => ({
|
|
53
53
|
Unauthorized: function Unauthorized() {
|
|
@@ -54,7 +54,7 @@ describe("<PendingStructureNoteRow />", () => {
|
|
|
54
54
|
<PendingStructureNoteRow {...props} />
|
|
55
55
|
</tbody>
|
|
56
56
|
</table>,
|
|
57
|
-
renderOpts
|
|
57
|
+
renderOpts,
|
|
58
58
|
);
|
|
59
59
|
|
|
60
60
|
expect(container).toMatchSnapshot();
|
|
@@ -68,7 +68,7 @@ describe("<PendingStructureNoteRow />", () => {
|
|
|
68
68
|
<PendingStructureNoteRow {...props} />
|
|
69
69
|
</tbody>
|
|
70
70
|
</table>,
|
|
71
|
-
renderOpts
|
|
71
|
+
renderOpts,
|
|
72
72
|
);
|
|
73
73
|
const link = getByText("bar_name");
|
|
74
74
|
expect(link).toHaveAttribute("href", "/structures/7207/notes");
|
|
@@ -85,7 +85,7 @@ describe("<PendingStructureNoteRow />", () => {
|
|
|
85
85
|
/>
|
|
86
86
|
</tbody>
|
|
87
87
|
</table>,
|
|
88
|
-
renderOpts
|
|
88
|
+
renderOpts,
|
|
89
89
|
);
|
|
90
90
|
expect(queryByText("bar system")).not.toBeInTheDocument();
|
|
91
91
|
});
|
|
@@ -101,7 +101,7 @@ describe("<PendingStructureNoteRow />", () => {
|
|
|
101
101
|
/>
|
|
102
102
|
</tbody>
|
|
103
103
|
</table>,
|
|
104
|
-
renderOpts
|
|
104
|
+
renderOpts,
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
expect(queryByText("bar system")).not.toBeInTheDocument();
|
|
@@ -58,7 +58,7 @@ describe("<PendingStructureNotes />", () => {
|
|
|
58
58
|
await waitForLoad(rendered);
|
|
59
59
|
|
|
60
60
|
await waitFor(() =>
|
|
61
|
-
expect(rendered.getByText(/foo system/i)).toBeInTheDocument()
|
|
61
|
+
expect(rendered.getByText(/foo system/i)).toBeInTheDocument(),
|
|
62
62
|
);
|
|
63
63
|
|
|
64
64
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -36,7 +36,7 @@ describe("<PendingStructureNotesLabelResults />", () => {
|
|
|
36
36
|
const rendered = render(
|
|
37
37
|
<SearchContextProvider {...searchProps}>
|
|
38
38
|
<PendingStructureNotesLabelResults />
|
|
39
|
-
</SearchContextProvider
|
|
39
|
+
</SearchContextProvider>,
|
|
40
40
|
);
|
|
41
41
|
await waitForLoad(rendered);
|
|
42
42
|
await rendered.findByText(/structures.retrieved.results/i);
|
|
@@ -35,7 +35,7 @@ describe("<PendingStructureNotesPagination />", () => {
|
|
|
35
35
|
const { container, findByText } = render(
|
|
36
36
|
<SearchContextProvider {...searchProps}>
|
|
37
37
|
<PendingStructureNotesPagination />
|
|
38
|
-
</SearchContextProvider
|
|
38
|
+
</SearchContextProvider>,
|
|
39
39
|
);
|
|
40
40
|
await findByText(/1/);
|
|
41
41
|
expect(container).toMatchSnapshot();
|