We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing in cypress seems to issue different events to a human doing the same key sequences, see below:
On the left is Chrome automated, on the right Chrome manual.
I'm trying to replicate, in cypress, a bug a customer hit. Where they type and our web app (Angular) looses characters due to a binding mistake.
The cypress spec always passes but when a human does manual testing the bug becomes very obvious.
In the screenshot cypress typed el and got el in the field but if the human types el they end up with e.
el
e
I've tried various options on type such as:
.focus()
.type()
cy.type()
The events Angular says happened for the keyup are different...
Event in Cypress versus KeyboardEvent in the human interaction.
Event
KeyboardEvent
The only other difference I can see if the composed field being false for cypress.
composed
false
Should match how a human types.
Commercial application unfortunatly.
it.only('should work', () => { cy.get('#search') .focus() .clear() .type('e', { delay: 350 }).should('have.value', 'e') .type('l', { delay: 550 }).should('have.value', 'el') .type('l', { delay: 150 }).should('have.value', 'ell') .type('a', { delay: 450 }).should('have.value', 'ella') .type('.', { delay: 350 }).should('have.value', 'ella.'); })
Cypress 4.8.0 MacOS Chrome 83 Node 12 LTS Angular 9.1.x
The text was updated successfully, but these errors were encountered:
Think it might be related to:
#311
and specifically this issue and comment:
#5650 (comment)
This is rather annoying...
Sorry, something went wrong.
@philjones88 Yes, basically as you found, this is related to our not issuing Native Events, but rather simulating events.
Closing as duplicate of #311
No branches or pull requests
Current behavior:
Typing in cypress seems to issue different events to a human doing the same key sequences, see below:
On the left is Chrome automated, on the right Chrome manual.
I'm trying to replicate, in cypress, a bug a customer hit. Where they type and our web app (Angular) looses characters due to a binding mistake.
The cypress spec always passes but when a human does manual testing the bug becomes very obvious.
In the screenshot cypress typed
el
and gotel
in the field but if the human typesel
they end up withe
.I've tried various options on type such as:
.focus()
before.type()
cy.type()
, chained.type()
for individual characters.The events Angular says happened for the keyup are different...
Event
in Cypress versusKeyboardEvent
in the human interaction.The only other difference I can see if the
composed
field beingfalse
for cypress.Desired behavior:
Should match how a human types.
Test code to reproduce
Commercial application unfortunatly.
Versions
Cypress 4.8.0
MacOS
Chrome 83
Node 12 LTS
Angular 9.1.x
The text was updated successfully, but these errors were encountered: