diff --git a/frontend/cypress/support/helper/dom-helper/pages/overviewPage.ts b/frontend/cypress/support/helper/dom-helper/pages/overviewPage.ts index 053f7c2ade..6f87b5684d 100644 --- a/frontend/cypress/support/helper/dom-helper/pages/overviewPage.ts +++ b/frontend/cypress/support/helper/dom-helper/pages/overviewPage.ts @@ -169,14 +169,14 @@ export default class CyOverviewPage extends Page { .should('exist'); cy.get('.objective-three-dot-menu') - .should('exist') - .and('be.visible') - .within(() => { - cy.contains(optionName) - .should('be.visible') - .and('have.class', 'objective-menu-option') - .click(); - }); + .contains(optionName) + .as('option') + .scrollIntoView() + .should('be.visible'); + + cy.get('@option') + .should('have.class', 'objective-menu-option') + .click(); } duplicateObjective(objectiveName: string) {