I have a little problem in writing my test.
Most of fields on my website I can fill only with "type" element. But there are fields that don't want to fill. But it looks like (in cypress) that it's ok. They are movable with arrows (look at picture - enter image description here).
When I'm in playground and I want to get that field it looks like this (enter image description here).
Cypress gets that field but don't want to type in it (than should element tells me that it's OK).
Code:
.cy.get('[data-bind="validationElement: yearOfManufacture"] > .col-sm-4 > .k-widget > .k-numeric-wrap > .k-formatted-value')
.type('2016')
.should('have.value', '2016')
Is there someone who knows what to do?
Aucun commentaire:
Enregistrer un commentaire