diff --git a/cypress/elements/calculationsModal.js b/cypress/elements/calculationsModal.js index 6160c5ebd3..8ac3b106e8 100644 --- a/cypress/elements/calculationsModal.js +++ b/cypress/elements/calculationsModal.js @@ -1,3 +1,4 @@ +import { EXTENDED_TIMEOUT } from '../support/utils.js' import { clearInput, typeInput } from './common.js' const calculationModalEl = 'calculation-modal' @@ -64,12 +65,13 @@ export const clickDeleteButton = () => .contains('Delete calculation') .click() -export const clickConfirmDeleteButton = () => - cy - .getBySel('calculation-delete-modal') +export const clickConfirmDeleteButton = () => { + cy.getBySel('calculation-delete-modal') .find('button') .contains('Yes, delete') .click() + cy.getBySel(calculationModalEl, EXTENDED_TIMEOUT).should('not.exist') +} export const clickCheckFormulaButton = () => cy