Skip to content

Commit

Permalink
test: add openOptionsModal helper fn
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed Jan 30, 2024
1 parent 379476b commit 6ccfc0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cypress/elements/menuBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ export const clickMenuBarFileButton = () =>

export const clickMenuBarOptionsButton = () =>
cy.getBySel(optionsButton).click()

export const openOptionsModal = (section = 'Data') => {
clickMenuBarOptionsButton()
return cy.getBySel('options-menu-list').contains(section).click()
}

0 comments on commit 6ccfc0d

Please sign in to comment.