Missing letters when using type
See original GitHub issueCurrent behavior:
I just upgraded to Cypress 3.2.0 and noticed this strange behavior with type
For some reason the first letter gets cut out, this test used to run fine in 3.1.5.
Desired behavior:
That the typed text does not get cut short
Steps to reproduce: (app code and test code)
The test
it('Successful login', () => {
cy.visit('/')
cy.get('head title')
.should('contain', 'Log in')
cy.get('#email')
.type('Admin{enter}', {force: true, delay: 700})
cy.get('#password')
.type('superSafePassword{enter}')
cy.get('.primary').click()
cy.get('#title')
.should('contain', 'Dashboard')
});
});
The form
<div class='right'>
<p class='greeting'>Log in to your account</p>
<ListErrors {errors}/>
<form on:submit='submit(event)' autocomplete='off'>
<fieldset class='login'>
<img alt='user' src='img/user.svg' class='login-icon' />
<input type='text' placeholder='Email' id='email' autocomplete='off' bind:value=email>
</fieldset>
<fieldset class='login'>
<img alt='password' src='img/password.svg' class='login-icon' />
<input type='password' placeholder='Password' id='password' autocomplete='new-password' bind:value=password>
</fieldset>
<Button kind='primary block' type='submit' disabled='{!email || !password}'>Log in</Button>
</form>
</div>
Versions
Windows 10 Cypress 3.2.0 Chrome 73.0.3683.86 (Official Build) (64-bit)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:61 (9 by maintainers)
Top Results From Across the Web
Solved: missing letters when I type - Dell Community
Solved: I have a Studio 540S and when I type I have letters missing. There is times it in a delayed movement when...
Read more >Why do I keep missing letters and words when I'm writing?
My first question would be, how many letters and words are you missing? I type pretty quickly, and have written a lot of...
Read more >missing letters when typing fast - HP Support Community
I have a new Pavilion laptop with Windows 10 and very annoyingly when I type fast keystrokes are missed.
Read more >Missing letters when typing | CA Service Management
HI Team, when I type some text in description / resolution fields some letters are not typing properly. This is not problem with...
Read more >Initial letters missing while using type() in Cypress
This question leaves out some vital bits that I would like to clear up. If you try out the click-trick on that HTML...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m hitting this bug for the 4th time in 12 months of various fresh installations.
wait()
) that I use is simply to duplicate the very first inputtype()
command. Something like the following:Really hope this can help because persistent bugs like this for what should be simple example really trip me up when trying to evangelise about the joys & ease of testing with awesome tools like Cypress.
Hope this can help any other googlers or at least help me converge towards this workaround much quicker next time 😅
The issue is still exists