From 378d2be87d554336fa20c856ab6bbc809d9d52e6 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 22 Jun 2023 10:26:53 +0200 Subject: [PATCH] test: extend timeout after delete has been triggered (#2499) --- cypress/elements/calculationsModal.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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