@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
|
@@ -17,7 +17,7 @@ jest.mock("../../hooks/useBucketStructures", () => {
|
|
|
17
17
|
const elasticSearchMock = (collection, searchValue) => {
|
|
18
18
|
const normalizedSearchValue = lowerDeburrTrim(searchValue);
|
|
19
19
|
return _.filter((structure) =>
|
|
20
|
-
_.contains(normalizedSearchValue)(lowerDeburrTrim(structure.name))
|
|
20
|
+
_.contains(normalizedSearchValue)(lowerDeburrTrim(structure.name)),
|
|
21
21
|
)(collection);
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -75,7 +75,7 @@ describe("<FilteredNav />", () => {
|
|
|
75
75
|
it("FilterNavLoader loads from useBucketStructures and shows structures", async () => {
|
|
76
76
|
const rendered = render(
|
|
77
77
|
<FilteredNavLoader navFilter={navFilter} />,
|
|
78
|
-
renderOpts
|
|
78
|
+
renderOpts,
|
|
79
79
|
);
|
|
80
80
|
await waitForLoad(rendered);
|
|
81
81
|
|
|
@@ -86,7 +86,7 @@ describe("<FilteredNav />", () => {
|
|
|
86
86
|
it("StructureSearch: one element matching", async () => {
|
|
87
87
|
const rendered = render(
|
|
88
88
|
<FilteredNavLoader navFilter={navFilter} />,
|
|
89
|
-
renderOpts
|
|
89
|
+
renderOpts,
|
|
90
90
|
);
|
|
91
91
|
await waitForLoad(rendered);
|
|
92
92
|
const user = userEvent.setup({ delay: null });
|
|
@@ -105,7 +105,7 @@ describe("<FilteredNav />", () => {
|
|
|
105
105
|
it("StructureSearch: no elements matching", async () => {
|
|
106
106
|
const rendered = render(
|
|
107
107
|
<FilteredNavLoader navFilter={navFilter} />,
|
|
108
|
-
renderOpts
|
|
108
|
+
renderOpts,
|
|
109
109
|
);
|
|
110
110
|
await waitForLoad(rendered);
|
|
111
111
|
const user = userEvent.setup({ delay: null });
|
|
@@ -90,12 +90,12 @@ describe("<Grant />", () => {
|
|
|
90
90
|
|
|
91
91
|
const user = userEvent.setup({ delay: null });
|
|
92
92
|
await user.click(
|
|
93
|
-
await rendered.findByText(/grant.actions.markpendingremoval.button/i)
|
|
93
|
+
await rendered.findByText(/grant.actions.markpendingremoval.button/i),
|
|
94
94
|
);
|
|
95
95
|
expect(
|
|
96
96
|
await rendered.findByText(
|
|
97
|
-
/grant.actions.markpendingremoval.confirmation.header/i
|
|
98
|
-
)
|
|
97
|
+
/grant.actions.markpendingremoval.confirmation.header/i,
|
|
98
|
+
),
|
|
99
99
|
).toBeInTheDocument();
|
|
100
100
|
|
|
101
101
|
await user.click(await rendered.findByText(/yes/i));
|
|
@@ -121,7 +121,7 @@ describe("<Grant />", () => {
|
|
|
121
121
|
const rendered = render(<Grant {...updatedProps} />);
|
|
122
122
|
await waitForLoad(rendered);
|
|
123
123
|
expect(
|
|
124
|
-
rendered.queryByText(/grantrequest.header.update/i)
|
|
124
|
+
rendered.queryByText(/grantrequest.header.update/i),
|
|
125
125
|
).not.toBeInTheDocument();
|
|
126
126
|
});
|
|
127
127
|
});
|
|
@@ -29,7 +29,7 @@ describe("<GrantApprovalRuleConditions />", () => {
|
|
|
29
29
|
};
|
|
30
30
|
const rendered = render(
|
|
31
31
|
<GrantApprovalRuleConditions {...props} />,
|
|
32
|
-
renderOpts
|
|
32
|
+
renderOpts,
|
|
33
33
|
);
|
|
34
34
|
expect(rendered.container).toMatchSnapshot();
|
|
35
35
|
});
|
|
@@ -41,7 +41,7 @@ describe("<GrantApprovalRuleConditions />", () => {
|
|
|
41
41
|
};
|
|
42
42
|
const rendered = render(
|
|
43
43
|
<GrantApprovalRuleConditions {...props} />,
|
|
44
|
-
renderOpts
|
|
44
|
+
renderOpts,
|
|
45
45
|
);
|
|
46
46
|
expect(rendered.container).toMatchSnapshot();
|
|
47
47
|
});
|
|
@@ -52,7 +52,7 @@ describe("<GrantApprovalRuleConditions />", () => {
|
|
|
52
52
|
};
|
|
53
53
|
const rendered = render(
|
|
54
54
|
<GrantApprovalRuleConditions {...props} />,
|
|
55
|
-
renderOpts
|
|
55
|
+
renderOpts,
|
|
56
56
|
);
|
|
57
57
|
expect(rendered.container).toMatchSnapshot();
|
|
58
58
|
});
|
|
@@ -65,7 +65,7 @@ describe("<GrantApprovalRuleConditions />", () => {
|
|
|
65
65
|
};
|
|
66
66
|
const rendered = render(
|
|
67
67
|
<GrantApprovalRuleConditions {...props} />,
|
|
68
|
-
renderOpts
|
|
68
|
+
renderOpts,
|
|
69
69
|
);
|
|
70
70
|
expect(rendered.container).toMatchSnapshot();
|
|
71
71
|
});
|
|
@@ -78,7 +78,7 @@ describe("<GrantApprovalRuleConditions />", () => {
|
|
|
78
78
|
};
|
|
79
79
|
const rendered = render(
|
|
80
80
|
<GrantApprovalRuleConditions {...props} />,
|
|
81
|
-
renderOpts
|
|
81
|
+
renderOpts,
|
|
82
82
|
);
|
|
83
83
|
|
|
84
84
|
const user = userEvent.setup({ delay: null });
|
|
@@ -107,7 +107,7 @@ describe("<GrantApprovalRuleConditions />", () => {
|
|
|
107
107
|
};
|
|
108
108
|
const rendered = render(
|
|
109
109
|
<GrantApprovalRuleConditions {...props} />,
|
|
110
|
-
renderOpts
|
|
110
|
+
renderOpts,
|
|
111
111
|
);
|
|
112
112
|
|
|
113
113
|
const user = userEvent.setup({ delay: null });
|
|
@@ -27,7 +27,7 @@ describe("<GrantApprovalRuleDeleteButton />", () => {
|
|
|
27
27
|
|
|
28
28
|
await user.click(rendered.getByRole("button", { name: /delete/i }));
|
|
29
29
|
await user.click(
|
|
30
|
-
rendered.getByRole("button", { name: /modal-affirmative-action/i })
|
|
30
|
+
rendered.getByRole("button", { name: /modal-affirmative-action/i }),
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
expect(dispatch).toHaveBeenLastCalledWith({
|
|
@@ -47,7 +47,7 @@ describe("<GrantApprovalRuleDeleteButton />", () => {
|
|
|
47
47
|
|
|
48
48
|
await user.click(rendered.getByRole("button", { name: /delete/i }));
|
|
49
49
|
await user.click(
|
|
50
|
-
rendered.getByRole("button", { name: /modal-negative-action/i })
|
|
50
|
+
rendered.getByRole("button", { name: /modal-negative-action/i }),
|
|
51
51
|
);
|
|
52
52
|
|
|
53
53
|
expect(dispatch).toHaveBeenCalledTimes(0);
|
|
@@ -69,20 +69,20 @@ describe("<GrantApprovalRuleForm />", () => {
|
|
|
69
69
|
const user = userEvent.setup({ delay: null });
|
|
70
70
|
|
|
71
71
|
await waitFor(() =>
|
|
72
|
-
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled()
|
|
72
|
+
expect(rendered.getByRole("button", { name: /save/i })).toBeDisabled(),
|
|
73
73
|
);
|
|
74
74
|
|
|
75
75
|
await user.type(
|
|
76
76
|
rendered.getByRole("textbox", { name: /grantapprovalrule.name/i }),
|
|
77
|
-
"rule_name"
|
|
77
|
+
"rule_name",
|
|
78
78
|
);
|
|
79
79
|
|
|
80
80
|
await user.click(await rendered.findByText(/foodomain/i));
|
|
81
81
|
|
|
82
82
|
await waitFor(() =>
|
|
83
83
|
expect(
|
|
84
|
-
rendered.getByRole("textbox", { name: /comment/i })
|
|
85
|
-
).not.toBeDisabled()
|
|
84
|
+
rendered.getByRole("textbox", { name: /comment/i }),
|
|
85
|
+
).not.toBeDisabled(),
|
|
86
86
|
);
|
|
87
87
|
|
|
88
88
|
await user.click(await rendered.findByText(/role1/i));
|
|
@@ -90,11 +90,11 @@ describe("<GrantApprovalRuleForm />", () => {
|
|
|
90
90
|
|
|
91
91
|
await user.type(
|
|
92
92
|
rendered.getByRole("textbox", { name: /comment/i }),
|
|
93
|
-
"rule_comment"
|
|
93
|
+
"rule_comment",
|
|
94
94
|
);
|
|
95
95
|
|
|
96
96
|
await user.click(
|
|
97
|
-
await rendered.findByText(/conditions.field_prefix.request/i)
|
|
97
|
+
await rendered.findByText(/conditions.field_prefix.request/i),
|
|
98
98
|
);
|
|
99
99
|
await user.type(rendered.getByRole("textbox", { name: /field/i }), "field");
|
|
100
100
|
await user.click(await rendered.findByText("eq"));
|
|
@@ -102,7 +102,9 @@ describe("<GrantApprovalRuleForm />", () => {
|
|
|
102
102
|
await user.click(within(rendered.getByRole("combobox")).getByText(/add/i));
|
|
103
103
|
|
|
104
104
|
await waitFor(() =>
|
|
105
|
-
expect(
|
|
105
|
+
expect(
|
|
106
|
+
rendered.getByRole("button", { name: /save/i }),
|
|
107
|
+
).not.toBeDisabled(),
|
|
106
108
|
);
|
|
107
109
|
|
|
108
110
|
await user.click(rendered.getByRole("button", { name: /save/i }));
|
|
@@ -53,7 +53,7 @@ describe("<GrantApprovalRules />", () => {
|
|
|
53
53
|
it("matches the last snapshot", async () => {
|
|
54
54
|
const { container, queryByText } = render(
|
|
55
55
|
<GrantApprovalRules />,
|
|
56
|
-
renderOpts(grantApprovalRules)
|
|
56
|
+
renderOpts(grantApprovalRules),
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
await waitFor(() => {
|
|
@@ -66,7 +66,7 @@ describe("<GrantApprovalRules />", () => {
|
|
|
66
66
|
it("matches snapshot for empty data", async () => {
|
|
67
67
|
const { container, queryByText } = render(
|
|
68
68
|
<GrantApprovalRules />,
|
|
69
|
-
renderOpts(emptyGrantApprovalRules)
|
|
69
|
+
renderOpts(emptyGrantApprovalRules),
|
|
70
70
|
);
|
|
71
71
|
|
|
72
72
|
await waitFor(() => {
|
|
@@ -79,7 +79,7 @@ describe("<GrantApprovalRules />", () => {
|
|
|
79
79
|
it("renders ApprovalRule name as Link", async () => {
|
|
80
80
|
const { container, queryByText, getByText } = render(
|
|
81
81
|
<GrantApprovalRules />,
|
|
82
|
-
renderOpts(grantApprovalRules)
|
|
82
|
+
renderOpts(grantApprovalRules),
|
|
83
83
|
);
|
|
84
84
|
|
|
85
85
|
await waitFor(() => {
|
|
@@ -15,11 +15,11 @@ describe("<GrantRemoval />", () => {
|
|
|
15
15
|
<GrantRemoval
|
|
16
16
|
grant={{ ...grant, pending_removal: false }}
|
|
17
17
|
actions={actions_with_request_cancel}
|
|
18
|
-
|
|
18
|
+
/>,
|
|
19
19
|
);
|
|
20
20
|
await waitForLoad(rendered);
|
|
21
21
|
expect(
|
|
22
|
-
rendered.queryByText(/grant.actions.markPendingRemoval.button/i)
|
|
22
|
+
rendered.queryByText(/grant.actions.markPendingRemoval.button/i),
|
|
23
23
|
).toBeInTheDocument();
|
|
24
24
|
});
|
|
25
25
|
|
|
@@ -28,11 +28,11 @@ describe("<GrantRemoval />", () => {
|
|
|
28
28
|
<GrantRemoval
|
|
29
29
|
grant={{ ...grant, pending_removal: true }}
|
|
30
30
|
actions={actions_with_request_cancel}
|
|
31
|
-
|
|
31
|
+
/>,
|
|
32
32
|
);
|
|
33
33
|
await waitForLoad(rendered);
|
|
34
34
|
expect(
|
|
35
|
-
rendered.queryByText(/grant.actions.unmarkPendingRemoval.button/i)
|
|
35
|
+
rendered.queryByText(/grant.actions.unmarkPendingRemoval.button/i),
|
|
36
36
|
).toBeInTheDocument();
|
|
37
37
|
});
|
|
38
38
|
});
|
|
@@ -19,18 +19,18 @@ describe("<GrantRemovalDirectButton />", () => {
|
|
|
19
19
|
actions={{ manage_grant_removal: {} }}
|
|
20
20
|
requestGrantRemoval={requestGrantRemoval}
|
|
21
21
|
previousStructureQuery={{}}
|
|
22
|
-
|
|
22
|
+
/>,
|
|
23
23
|
);
|
|
24
24
|
await waitForLoad(rendered);
|
|
25
25
|
const user = userEvent.setup({ delay: null });
|
|
26
26
|
|
|
27
27
|
await user.click(
|
|
28
|
-
await rendered.findByText(/grant.actions.markpendingremoval.button/i)
|
|
28
|
+
await rendered.findByText(/grant.actions.markpendingremoval.button/i),
|
|
29
29
|
);
|
|
30
30
|
expect(
|
|
31
31
|
await rendered.findByText(
|
|
32
|
-
/grant.actions.markpendingremoval.confirmation.header/i
|
|
33
|
-
)
|
|
32
|
+
/grant.actions.markpendingremoval.confirmation.header/i,
|
|
33
|
+
),
|
|
34
34
|
).toBeInTheDocument();
|
|
35
35
|
|
|
36
36
|
await user.click(await rendered.findByText(/confirmation.yes/i));
|
|
@@ -53,18 +53,18 @@ describe("<GrantRemovalDirectButton />", () => {
|
|
|
53
53
|
actions={{ manage_grant_removal: {} }}
|
|
54
54
|
onConfirm={onConfirm}
|
|
55
55
|
previousStructureQuery={{}}
|
|
56
|
-
|
|
56
|
+
/>,
|
|
57
57
|
);
|
|
58
58
|
await waitForLoad(rendered);
|
|
59
59
|
const user = userEvent.setup({ delay: null });
|
|
60
60
|
|
|
61
61
|
await user.click(
|
|
62
|
-
await rendered.findByText(/grant.actions.markpendingremoval.button/i)
|
|
62
|
+
await rendered.findByText(/grant.actions.markpendingremoval.button/i),
|
|
63
63
|
);
|
|
64
64
|
expect(
|
|
65
65
|
await rendered.findByText(
|
|
66
|
-
/grant.actions.markpendingremoval.confirmation.header/i
|
|
67
|
-
)
|
|
66
|
+
/grant.actions.markpendingremoval.confirmation.header/i,
|
|
67
|
+
),
|
|
68
68
|
).toBeInTheDocument();
|
|
69
69
|
|
|
70
70
|
await user.click(await rendered.findByText(/confirmation.yes/i));
|
|
@@ -45,7 +45,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
45
45
|
grant={{ ...grant, pending_removal: false }}
|
|
46
46
|
actions={{}}
|
|
47
47
|
/>,
|
|
48
|
-
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, null)] }
|
|
48
|
+
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, null)] },
|
|
49
49
|
);
|
|
50
50
|
await waitForLoad(rendered);
|
|
51
51
|
expect(await rendered.findByRole("button")).toHaveClass("orange");
|
|
@@ -57,7 +57,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
57
57
|
grant={{ ...grant, pending_removal: false }}
|
|
58
58
|
actions={{}}
|
|
59
59
|
/>,
|
|
60
|
-
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] }
|
|
60
|
+
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] },
|
|
61
61
|
);
|
|
62
62
|
await waitForLoad(rendered);
|
|
63
63
|
const button = await rendered.findByRole("button");
|
|
@@ -72,7 +72,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
72
72
|
grant={{ ...grant, pending_removal: false }}
|
|
73
73
|
actions={{}}
|
|
74
74
|
/>,
|
|
75
|
-
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] }
|
|
75
|
+
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] },
|
|
76
76
|
);
|
|
77
77
|
await waitForLoad(rendered);
|
|
78
78
|
expect(await rendered.findByRole("button")).toHaveClass("red");
|
|
@@ -84,7 +84,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
84
84
|
grant={{ ...grant, pending_removal: true }}
|
|
85
85
|
actions={{}}
|
|
86
86
|
/>,
|
|
87
|
-
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] }
|
|
87
|
+
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] },
|
|
88
88
|
);
|
|
89
89
|
await waitForLoad(rendered);
|
|
90
90
|
expect(await rendered.findByRole("button")).toHaveClass("brown");
|
|
@@ -96,7 +96,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
96
96
|
grant={{ ...grant, pending_removal: false }}
|
|
97
97
|
actions={{}}
|
|
98
98
|
/>,
|
|
99
|
-
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] }
|
|
99
|
+
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "approved")] },
|
|
100
100
|
);
|
|
101
101
|
await waitForLoad(rendered);
|
|
102
102
|
expect(await rendered.findByRole("button")).toHaveClass("grey");
|
|
@@ -108,7 +108,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
108
108
|
grant={{ ...grant, pending_removal: true }}
|
|
109
109
|
actions={{}}
|
|
110
110
|
/>,
|
|
111
|
-
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] }
|
|
111
|
+
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "pending")] },
|
|
112
112
|
);
|
|
113
113
|
await waitForLoad(rendered);
|
|
114
114
|
expect(await rendered.findByRole("button")).toHaveClass("grey");
|
|
@@ -120,7 +120,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
120
120
|
grant={{ ...grant, pending_removal: true }}
|
|
121
121
|
actions={{}}
|
|
122
122
|
/>,
|
|
123
|
-
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] }
|
|
123
|
+
{ mocks: [latestGrantRequestByGrantMock(latestRequestVars, "rejected")] },
|
|
124
124
|
);
|
|
125
125
|
await waitForLoad(rendered);
|
|
126
126
|
expect(await rendered.findByRole("button")).toHaveClass("grey");
|
|
@@ -134,7 +134,7 @@ describe("<GrantRemovalWorkflow />", () => {
|
|
|
134
134
|
/>,
|
|
135
135
|
{
|
|
136
136
|
mocks: [latestGrantRequestByGrantMock(latestRequestVars, "processing")],
|
|
137
|
-
}
|
|
137
|
+
},
|
|
138
138
|
);
|
|
139
139
|
await waitForLoad(rendered);
|
|
140
140
|
expect(await rendered.findByRole("button")).toHaveClass("grey");
|
|
@@ -29,12 +29,12 @@ describe("<GrantRequestApprovalForm />", () => {
|
|
|
29
29
|
const user = userEvent.setup({ delay: null });
|
|
30
30
|
|
|
31
31
|
expect(
|
|
32
|
-
rendered.queryByText(/grantRequest.actions.approve/i)
|
|
32
|
+
rendered.queryByText(/grantRequest.actions.approve/i),
|
|
33
33
|
).toBeDisabled();
|
|
34
34
|
await user.click(await rendered.findByText(/role1/i));
|
|
35
35
|
await waitFor(() => {
|
|
36
36
|
expect(
|
|
37
|
-
rendered.queryByText(/grantRequest.actions.approve/i)
|
|
37
|
+
rendered.queryByText(/grantRequest.actions.approve/i),
|
|
38
38
|
).not.toBeDisabled();
|
|
39
39
|
});
|
|
40
40
|
});
|
|
@@ -45,18 +45,18 @@ describe("<GrantRequestApprovalForm />", () => {
|
|
|
45
45
|
const user = userEvent.setup({ delay: null });
|
|
46
46
|
|
|
47
47
|
expect(
|
|
48
|
-
rendered.queryByText(/grantRequest.actions.approve/i)
|
|
48
|
+
rendered.queryByText(/grantRequest.actions.approve/i),
|
|
49
49
|
).toBeDisabled();
|
|
50
50
|
await user.click(await rendered.findByText(/role1/i));
|
|
51
51
|
await waitFor(() => {
|
|
52
52
|
expect(
|
|
53
|
-
rendered.queryByText(/grantRequest.actions.approve/i)
|
|
53
|
+
rendered.queryByText(/grantRequest.actions.approve/i),
|
|
54
54
|
).not.toBeDisabled();
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
await user.type(rendered.queryByTestId("comment-id"), "comment");
|
|
58
58
|
await user.click(
|
|
59
|
-
await rendered.findByText(/grantRequest.actions.approve/i)
|
|
59
|
+
await rendered.findByText(/grantRequest.actions.approve/i),
|
|
60
60
|
);
|
|
61
61
|
await waitFor(() => {
|
|
62
62
|
expect(createGrantRequestApproval).toHaveBeenCalledTimes(1);
|
|
@@ -69,7 +69,7 @@ describe("<GrantRequestApprovalForm />", () => {
|
|
|
69
69
|
role: "role1",
|
|
70
70
|
comment: "comment",
|
|
71
71
|
},
|
|
72
|
-
})
|
|
72
|
+
}),
|
|
73
73
|
);
|
|
74
74
|
});
|
|
75
75
|
});
|
|
@@ -11,7 +11,7 @@ jest.mock("react-router", () => ({
|
|
|
11
11
|
|
|
12
12
|
jest.mock("@truedat/dd/hooks/useGrantRequest", () => {
|
|
13
13
|
const originalModule = jest.requireActual(
|
|
14
|
-
"@truedat/dd/hooks/useGrantRequest"
|
|
14
|
+
"@truedat/dd/hooks/useGrantRequest",
|
|
15
15
|
);
|
|
16
16
|
|
|
17
17
|
return {
|
|
@@ -74,7 +74,7 @@ describe("<GrantRequestBulkActions />", () => {
|
|
|
74
74
|
<SearchContext value={searchContextWithData}>
|
|
75
75
|
<GrantRequestBulkActions {...props} />
|
|
76
76
|
</SearchContext>,
|
|
77
|
-
renderOpts
|
|
77
|
+
renderOpts,
|
|
78
78
|
);
|
|
79
79
|
await waitForLoad(rendered);
|
|
80
80
|
expect(rendered.container).toMatchSnapshot();
|
|
@@ -85,11 +85,11 @@ describe("<GrantRequestBulkActions />", () => {
|
|
|
85
85
|
<SearchContext value={searchContextWithData}>
|
|
86
86
|
<GrantRequestBulkActions {...props} />,
|
|
87
87
|
</SearchContext>,
|
|
88
|
-
renderOpts
|
|
88
|
+
renderOpts,
|
|
89
89
|
);
|
|
90
90
|
await waitForLoad(rendered);
|
|
91
91
|
expect(
|
|
92
|
-
rendered.getByRole("button", { name: /approve_request/i })
|
|
92
|
+
rendered.getByRole("button", { name: /approve_request/i }),
|
|
93
93
|
).toBeEnabled();
|
|
94
94
|
expect(rendered.getByRole("button", { name: /reject/i })).toBeEnabled();
|
|
95
95
|
});
|
|
@@ -99,11 +99,11 @@ describe("<GrantRequestBulkActions />", () => {
|
|
|
99
99
|
<SearchContext value={baseSearchContext}>
|
|
100
100
|
<GrantRequestBulkActions {...props} />,
|
|
101
101
|
</SearchContext>,
|
|
102
|
-
renderOpts
|
|
102
|
+
renderOpts,
|
|
103
103
|
);
|
|
104
104
|
await waitForLoad(rendered);
|
|
105
105
|
expect(
|
|
106
|
-
rendered.getByRole("button", { name: /approve_request/i })
|
|
106
|
+
rendered.getByRole("button", { name: /approve_request/i }),
|
|
107
107
|
).toBeDisabled();
|
|
108
108
|
expect(rendered.getByRole("button", { name: /reject/i })).toBeDisabled();
|
|
109
109
|
});
|
|
@@ -113,7 +113,7 @@ describe("<GrantRequestBulkActions />", () => {
|
|
|
113
113
|
<SearchContext value={searchContextWithData}>
|
|
114
114
|
<GrantRequestBulkActions {...props} />,
|
|
115
115
|
</SearchContext>,
|
|
116
|
-
renderOpts
|
|
116
|
+
renderOpts,
|
|
117
117
|
);
|
|
118
118
|
await waitForLoad(rendered);
|
|
119
119
|
const user = userEvent.setup({ delay: null });
|
|
@@ -139,7 +139,7 @@ describe("<GrantRequestBulkActions />", () => {
|
|
|
139
139
|
await user.type(await rendered.getByRole("textbox"), "Approve comment");
|
|
140
140
|
|
|
141
141
|
await act(
|
|
142
|
-
async () => await user.click(rendered.getByTestId("approve-button-id"))
|
|
142
|
+
async () => await user.click(rendered.getByTestId("approve-button-id")),
|
|
143
143
|
);
|
|
144
144
|
});
|
|
145
145
|
});
|
|
@@ -23,7 +23,7 @@ describe("<GrantRequestBulkApprovalForm />", () => {
|
|
|
23
23
|
};
|
|
24
24
|
const { container } = render(
|
|
25
25
|
<GrantRequestBulkApprovalForm {...props} />,
|
|
26
|
-
renderOpts
|
|
26
|
+
renderOpts,
|
|
27
27
|
);
|
|
28
28
|
expect(container).toMatchSnapshot();
|
|
29
29
|
});
|
|
@@ -37,7 +37,7 @@ describe("<GrantRequestBulkApprovalForm />", () => {
|
|
|
37
37
|
|
|
38
38
|
const { getByRole } = render(
|
|
39
39
|
<GrantRequestBulkApprovalForm {...props} />,
|
|
40
|
-
renderOpts
|
|
40
|
+
renderOpts,
|
|
41
41
|
);
|
|
42
42
|
await waitFor(() => {
|
|
43
43
|
expect(getByRole("button", { name: "reject" })).toBeEnabled();
|
|
@@ -23,7 +23,7 @@ describe("<GrantRequestBulkRoleSelector />", () => {
|
|
|
23
23
|
it("matches the latest snapshot", () => {
|
|
24
24
|
const { container } = render(
|
|
25
25
|
<GrantRequestBulkRoleSelector {...props} />,
|
|
26
|
-
renderOpts
|
|
26
|
+
renderOpts,
|
|
27
27
|
);
|
|
28
28
|
expect(container).toMatchSnapshot();
|
|
29
29
|
});
|
|
@@ -31,7 +31,7 @@ describe("<GrantRequestBulkRoleSelector />", () => {
|
|
|
31
31
|
it("test select role", async () => {
|
|
32
32
|
const { getByRole } = render(
|
|
33
33
|
<GrantRequestBulkRoleSelector {...props} />,
|
|
34
|
-
renderOpts
|
|
34
|
+
renderOpts,
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
await waitFor(() => {
|
|
@@ -13,8 +13,10 @@ jest.mock("react-router", () => {
|
|
|
13
13
|
};
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
const { useGrantRequestGroupsByIds } = require("../../hooks/useGrantRequestGroupsByIds");
|
|
17
16
|
const { useParams } = require("react-router");
|
|
17
|
+
const {
|
|
18
|
+
useGrantRequestGroupsByIds,
|
|
19
|
+
} = require("../../hooks/useGrantRequestGroupsByIds");
|
|
18
20
|
|
|
19
21
|
describe("GrantRequestCartResult", () => {
|
|
20
22
|
it("matches snapshot when no ids in URL (empty)", async () => {
|
|
@@ -55,12 +57,20 @@ describe("GrantRequestCartResult", () => {
|
|
|
55
57
|
requests: [
|
|
56
58
|
{
|
|
57
59
|
_embedded: {
|
|
58
|
-
data_structure: {
|
|
60
|
+
data_structure: {
|
|
61
|
+
id: 10,
|
|
62
|
+
name: "Structure One",
|
|
63
|
+
external_id: "ext-1",
|
|
64
|
+
},
|
|
59
65
|
},
|
|
60
66
|
},
|
|
61
67
|
{
|
|
62
68
|
_embedded: {
|
|
63
|
-
data_structure: {
|
|
69
|
+
data_structure: {
|
|
70
|
+
id: 20,
|
|
71
|
+
name: "Structure Two",
|
|
72
|
+
external_id: "ext-2",
|
|
73
|
+
},
|
|
64
74
|
},
|
|
65
75
|
},
|
|
66
76
|
],
|
|
@@ -16,7 +16,7 @@ describe("<GrantRequestHeader />", () => {
|
|
|
16
16
|
<Suspense fallback={null}>
|
|
17
17
|
<GrantRequestHeader grantRequest={grantRequest} />
|
|
18
18
|
</Suspense>,
|
|
19
|
-
renderOpts
|
|
19
|
+
renderOpts,
|
|
20
20
|
);
|
|
21
21
|
expect(container).toMatchSnapshot();
|
|
22
22
|
});
|
|
@@ -27,7 +27,7 @@ describe("<GrantRequestHeader />", () => {
|
|
|
27
27
|
<Suspense fallback={null}>
|
|
28
28
|
<GrantRequestHeader grantRequest={grantRequest} />
|
|
29
29
|
</Suspense>,
|
|
30
|
-
renderOpts
|
|
30
|
+
renderOpts,
|
|
31
31
|
);
|
|
32
32
|
expect(container).toMatchSnapshot();
|
|
33
33
|
});
|
|
@@ -50,7 +50,7 @@ describe("<GrantRequestRow />", () => {
|
|
|
50
50
|
<tbody>
|
|
51
51
|
<GrantRequestRow {...props} />
|
|
52
52
|
</tbody>
|
|
53
|
-
</table
|
|
53
|
+
</table>,
|
|
54
54
|
);
|
|
55
55
|
expect(rendered.container).toMatchSnapshot();
|
|
56
56
|
});
|
|
@@ -65,7 +65,7 @@ describe("<GrantRequestRow />", () => {
|
|
|
65
65
|
<tbody>
|
|
66
66
|
<GrantRequestRow {...newProps} />
|
|
67
67
|
</tbody>
|
|
68
|
-
</table
|
|
68
|
+
</table>,
|
|
69
69
|
);
|
|
70
70
|
expect(rendered.container).toMatchSnapshot();
|
|
71
71
|
});
|
|
@@ -76,7 +76,7 @@ describe("<GrantRequestRow />", () => {
|
|
|
76
76
|
<tbody>
|
|
77
77
|
<GrantRequestRow {...props} />
|
|
78
78
|
</tbody>
|
|
79
|
-
</table
|
|
79
|
+
</table>,
|
|
80
80
|
);
|
|
81
81
|
const user = userEvent.setup({ delay: null });
|
|
82
82
|
|
|
@@ -96,7 +96,7 @@ describe("<GrantRequestRow />", () => {
|
|
|
96
96
|
<tbody>
|
|
97
97
|
<GrantRequestRow {...props} />
|
|
98
98
|
</tbody>
|
|
99
|
-
</table
|
|
99
|
+
</table>,
|
|
100
100
|
);
|
|
101
101
|
const user = userEvent.setup({ delay: null });
|
|
102
102
|
|
|
@@ -18,7 +18,7 @@ describe("<GrantRequests />", () => {
|
|
|
18
18
|
const props = { columns, grantRequests, grantRequestsLoading };
|
|
19
19
|
const { container, queryByText } = render(
|
|
20
20
|
<GrantRequests {...props} />,
|
|
21
|
-
renderOpts
|
|
21
|
+
renderOpts,
|
|
22
22
|
);
|
|
23
23
|
expect(container).toMatchSnapshot();
|
|
24
24
|
await waitFor(() => {
|
|
@@ -37,7 +37,7 @@ describe("<GrantRequests />", () => {
|
|
|
37
37
|
const props = { columns, grantRequests, grantRequestsLoading };
|
|
38
38
|
const { container, queryByText } = render(
|
|
39
39
|
<GrantRequests {...props} />,
|
|
40
|
-
renderOpts
|
|
40
|
+
renderOpts,
|
|
41
41
|
);
|
|
42
42
|
expect(container).toMatchSnapshot();
|
|
43
43
|
await waitFor(() => {
|
|
@@ -27,7 +27,7 @@ describe("<GrantRequestsLabelResults />", () => {
|
|
|
27
27
|
<SearchContext value={searchContext}>
|
|
28
28
|
<GrantRequestsLabelResults {...props} />
|
|
29
29
|
</SearchContext>,
|
|
30
|
-
renderOpts
|
|
30
|
+
renderOpts,
|
|
31
31
|
);
|
|
32
32
|
expect(container).toMatchSnapshot();
|
|
33
33
|
});
|
|
@@ -38,7 +38,7 @@ describe("<GrantRequestsLabelResults />", () => {
|
|
|
38
38
|
<SearchContext value={searchContext}>
|
|
39
39
|
<GrantRequestsLabelResults {...newProps} />
|
|
40
40
|
</SearchContext>,
|
|
41
|
-
renderOpts
|
|
41
|
+
renderOpts,
|
|
42
42
|
);
|
|
43
43
|
expect(container).toMatchSnapshot();
|
|
44
44
|
});
|
|
@@ -49,7 +49,7 @@ describe("<GrantRequestsLabelResults />", () => {
|
|
|
49
49
|
<SearchContext value={newSearchContext}>
|
|
50
50
|
<GrantRequestsLabelResults {...props} />,
|
|
51
51
|
</SearchContext>,
|
|
52
|
-
renderOpts
|
|
52
|
+
renderOpts,
|
|
53
53
|
);
|
|
54
54
|
expect(container).toMatchSnapshot();
|
|
55
55
|
});
|