Skip to content

Commit

Permalink
test: force click in options menu test
Browse files Browse the repository at this point in the history
  • Loading branch information
floydnant committed Nov 17, 2023
1 parent c24491d commit 2b2fe3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client-v2/cypress/e2e/workspace.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ describe('Workspace', () => {
cy.get('[data-test-is-loading="false"]') // wait for loading to finish
cy.get(testName('entity-tree-node'))
.first()
.focus()
// .focus()
.within(() => {
cy.get(testName('open-menu')).click()
// we need to force the click because the element might not be visible in ci (even after focusing the parent which should make it visible)
cy.get(testName('open-menu')).click({ force: true })
})

cy.get(testName('drop-down-menu')).should('exist')
Expand Down

0 comments on commit 2b2fe3e

Please sign in to comment.