Skip to content

Commit

Permalink
test: extend timeout after delete has been triggered (#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored and janhenrikoverland committed Aug 15, 2023
1 parent da5d920 commit 378d2be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cypress/elements/calculationsModal.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { EXTENDED_TIMEOUT } from '../support/utils.js'
import { clearInput, typeInput } from './common.js'

const calculationModalEl = 'calculation-modal'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 378d2be

Please sign in to comment.