Cannot chain spoks
bahmutov opened this issue · comments
Gleb Bahmutov commented
This works (single spok with 2 items)
it('spoks several times', () => {
const o = {
one: 1,
two: 2,
three: 3,
}
cy.wrap(o).should(spok({ one: 1, two: 2 }))
})
but adding another assertion there breaks things
it('spoks several times', () => {
const o = {
one: 1,
two: 2,
three: 3,
}
cy.wrap(o)
.should(spok({ one: 1, two: 2 }))
.and(spok({ two: 2 }))
})
Gleb Bahmutov commented
Seems to be caused by cypress-io/cypress#5979 / cypress-io/cypress#4981
Kukhyeon Heo commented
Fixed in cypress-io/cypress#6128 and released Cypress 3.8.2. Now you can chain spoks.
Gleb Bahmutov commented
nice @sainthkh - it is working now, perfect.