tests: add tryAssertion command to replace cy.wait

This commit is contained in:
braks
2022-10-13 23:23:43 +02:00
committed by Braks
parent 0613350554
commit 5aa94e2e13
11 changed files with 78 additions and 42 deletions
@@ -33,7 +33,7 @@ describe('Store State: `selectionKeyCode`', () => {
cy.get('body').trigger('keyup', { key: 'Shift', release: true })
cy.wait(1).then(() => {
cy.tryAssertion(() => {
expect(store.getSelectedElements.value).to.not.have.length(0)
})
})
@@ -60,7 +60,7 @@ describe('Store State: `selectionKeyCode`', () => {
cy.get('body').trigger('keyup', { key: 'Control', release: true })
cy.wait(1).then(() => {
cy.tryAssertion(() => {
expect(store.getSelectedElements.value).to.not.have.length(0)
})
})
@@ -84,7 +84,7 @@ describe('Store State: `selectionKeyCode`', () => {
})
.click()
cy.wait(1).then(() => {
cy.tryAssertion(() => {
expect(store.getSelectedElements.value).to.not.have.length(0)
})
})