Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(cypress): Create callouts without leaving menu open.
Remove unnecessary `cy.getSubmenuEntry`
as it will open the parent menu.

This is a leftover from e9f54d0.

Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed May 3, 2023
commit 518323eace7611dd76b9c837a38d393c74f28706
19 changes: 9 additions & 10 deletions cypress/e2e/workspace.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,16 @@ describe('Workspace', function() {

// enable callout
cy.getSubmenuEntry('callouts', actionName).click()
cy.getSubmenuEntry('callouts', actionName).then(() => {
// check content
cy.getContent()
.find(`.callout.callout--${type}`)
.should('contain', 'Callout')

// disable
return cy.getSubmenuEntry('callouts', actionName)
.should('have.class', 'is-active')
.click()
})
// check content
cy.getContent()
.find(`.callout.callout--${type}`)
.should('contain', 'Callout')

// disable
cy.getSubmenuEntry('callouts', actionName)
.should('have.class', 'is-active')
.click()
})
})

Expand Down