Skip to content

Commit 3289333

Browse files
committed
Update EditDatasetTerms.spec.tsx
1 parent 157e907 commit 3289333

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/e2e-integration/e2e/sections/edit-dataset-terms/EditDatasetTerms.spec.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ describe('Edit Dataset Terms', () => {
5252

5353
cy.findByText(/The license for this dataset has been updated./i).should('exist')
5454

55-
const datasetPage = `/spa${Route.DATASETS}?${QueryParamKey.PERSISTENT_ID}=${dataset.persistentId}&${QueryParamKey.VERSION}=${DatasetNonNumericVersionSearchParam.DRAFT}`
55+
const datasetPage =
56+
`datasets?${QueryParamKey.PERSISTENT_ID}=${dataset.persistentId}&${QueryParamKey.VERSION}=${DatasetNonNumericVersionSearchParam.DRAFT}`
57+
.replace(':', '%3A')
58+
.replace(/\//g, '%2F')
59+
5660
cy.url().should('include', datasetPage)
57-
cy.findByRole('heading', { name: datasetTitle }).should('exist')
5861
})
5962
})
6063
})

0 commit comments

Comments
 (0)