Using Cypress (just started), I can't find a way to assert the equality of text in the two input boxes as in the picture. The use case is that when a user sets a pickup location, by default the same location should appear in the drop off box.
To test the above, I wrote this code:
cy.get('input#dropFtsAutocomplete').should("have.value" , cy.get('input#ftsAutocomplete'));
Correctly, Cypress complains with the following error:
Error: AssertionError: expected '' to have value { Object (chainerId, firstCall) }, but the value was 'Manchester Airport (MAN), Manchester, United Kingdom'
What am I missing?
Aucun commentaire:
Enregistrer un commentaire