diff --git a/src/sections/dataset/dataset-action-buttons/link-dataset-button/LinkDatasetButton.tsx b/src/sections/dataset/dataset-action-buttons/link-dataset-button/LinkDatasetButton.tsx index 3d0ef983a..3c3ee4c03 100644 --- a/src/sections/dataset/dataset-action-buttons/link-dataset-button/LinkDatasetButton.tsx +++ b/src/sections/dataset/dataset-action-buttons/link-dataset-button/LinkDatasetButton.tsx @@ -12,7 +12,6 @@ export function LinkDatasetButton({ dataset }: LinkDatasetButtonProps) { const { t } = useTranslation('dataset') const { user } = useSession() const handleClick = () => { - // TODO - Implement upload files showModal() } const { showModal } = useNotImplementedModal() diff --git a/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts b/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts index 247aa1fc3..bab6c46b0 100644 --- a/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts +++ b/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts @@ -322,8 +322,7 @@ describe('Dataset JSDataverse Repository', () => { }) }) - it.skip('gets the dataset by persistentId when the dataset is deaccessioned', async () => { - // TODO - Implement once the getDatasetCitation includes deaccessioned datasets + it('gets the dataset by persistentId when the dataset is deaccessioned', async () => { const datasetResponse = await DatasetHelper.create(collectionId) await DatasetHelper.publish(datasetResponse.persistentId) @@ -337,8 +336,10 @@ describe('Dataset JSDataverse Repository', () => { const datasetExpected = datasetData(dataset.persistentId, dataset.version.id) expect(dataset.version.title).to.deep.equal(datasetExpected.title) + expect(dataset.version.publishingStatus).to.equal(DatasetPublishingStatus.DEACCESSIONED) }) }) + it('gets the dataset by persistentId when is locked', async () => { const datasetResponse = await DatasetHelper.create(collectionId) await DatasetHelper.lock(datasetResponse.id, DatasetLockReason.FINALIZE_PUBLICATION)