tests: update nodes tests

This commit is contained in:
braks
2023-05-25 20:48:26 +02:00
committed by Braks
parent 910a3543f6
commit 669a2a3f8c
5 changed files with 60 additions and 23 deletions
@@ -36,14 +36,10 @@ describe('Store Action: `removeSelectedNodes`', () => {
if (index >= randomNumber2 && index < randomNumber) {
expect(!!storedNode?.selected).to.eq(true)
cy.tryAssertion(() => {
expect(node).to.have.class('selected')
})
expect(node).to.have.class('selected')
} else {
expect(!!storedNode?.selected).to.eq(false)
cy.tryAssertion(() => {
expect(node).to.not.have.class('selected')
})
expect(node).to.not.have.class('selected')
}
})
})