Skip to content

Commit

Permalink
test: fix moderation dashboard test order
Browse files Browse the repository at this point in the history
  • Loading branch information
gminetoma committed Feb 4, 2025
1 parent 989417a commit 819a841
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/cypress/e2e/moderationDashboard.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ describe('Moderation dashboard', () => {
cy.get('[data-testid="mod-submission-list-item-1"]').should('exist')
})

it('it shows the moderation top nav', () => {
cy.get('[data-testid="mod-submission-list-item-1"]').click()
cy.get('[data-testid="mod-edit-submission-copy-submission-id"]').click()

// Check that the value copied to the clipboard is the same that's displayed.
const clipboardResult = cy.window().then(win => win.navigator.clipboard.readText())

// The timeout is to give time for the clipboard to be read.
clipboardResult.should('exist', 10000)
})

it('toggle between submissions and healthcare professionals submissions', () => {
cy.get('[data-testid="mod-healthcare-professional-list-item-1"]').should('not.exist')
cy.get('[data-testid="mod-facility-list-item-1"]').should('not.exist')
Expand All @@ -105,5 +94,16 @@ describe('Moderation dashboard', () => {
cy.get('[data-testid="mod-facility-list-item-1"]').should('not.exist')
cy.get('[data-testid="mod-submission-list-item-1').should('exist')
})

it('it shows the moderation top nav', () => {
cy.get('[data-testid="mod-submission-list-item-1"]').click()
cy.get('[data-testid="mod-edit-submission-copy-submission-id"]').click()

// Check that the value copied to the clipboard is the same that's displayed.
const clipboardResult = cy.window().then(win => win.navigator.clipboard.readText())

// The timeout is to give time for the clipboard to be read.
clipboardResult.should('exist', 10000)
})
})
})

0 comments on commit 819a841

Please sign in to comment.