Skip to content

Commit

Permalink
chore: add check for no item context menu button in fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Dec 3, 2024
1 parent 629f7bf commit b3b1f97
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cypress/e2e/slideshow/slideshow.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ Then('item 1 is shown in fullscreen', () => {
assertItemIsNotVisible(2)

cy.getByDataTest('slideshow-page-counter').should('have.text', '1 / 11')

// visible item does not have context menu button
getDashboardItem(sortedDashboardItemIds[0])
.findByDataTest('dashboarditem-menu-button')
.should('not.exist')
})

When('I click the exit slideshow button', () => {
Expand All @@ -51,6 +56,15 @@ Then('the normal view is shown', () => {
assertItemIsVisible(0)
assertItemIsVisible(1)
assertItemIsVisible(2)

// items have context menu button
getDashboardItem(sortedDashboardItemIds[0])
.findByDataTest('dashboarditem-menu-button')
.should('be.visible')

getDashboardItem(sortedDashboardItemIds[1])
.findByDataTest('dashboarditem-menu-button')
.should('be.visible')
})

// When I click the next slide button
Expand Down

0 comments on commit b3b1f97

Please sign in to comment.