Skip to content

Commit

Permalink
fix: add 'DRAFT' to url
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Aug 1, 2024
1 parent 596c61b commit 94921e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Dataset', () => {
cy.wrap(DatasetHelper.create())
.its('persistentId')
.then((persistentId: string) => {
cy.visit(`/spa/datasets?persistentId=${persistentId}`)
cy.visit(`/spa/datasets?persistentId=${persistentId}&version=${DRAFT_PARAM}`)
cy.findByText('Draft').should('exist')
cy.findByRole('button', { name: 'Publish Dataset' }).should('exist').click()
cy.findByRole('button', { name: 'Publish' }).should('exist')
Expand All @@ -69,7 +69,7 @@ describe('Dataset', () => {
cy.wrap(DatasetHelper.create().then((dataset) => DatasetHelper.publish(dataset.persistentId)))
.its('persistentId')
.then((persistentId: string) => {
cy.visit(`/spa/datasets?persistentId=${persistentId}`)
cy.visit(`/spa/datasets?persistentId=${persistentId}&version=${DRAFT_PARAM}`)
cy.findByText('Published').should('exist')
// TODO: edit the dataset
cy.findByRole('button', { name: 'Publish Dataset' }).should('exist').click()
Expand Down

0 comments on commit 94921e0

Please sign in to comment.