Skip to content
New issue

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

.type() does not type random characters (reproducibility is 10%) #1381

Closed
Gennadiii opened this issue Feb 27, 2018 · 5 comments · Fixed by #2016
Closed

.type() does not type random characters (reproducibility is 10%) #1381

Gennadiii opened this issue Feb 27, 2018 · 5 comments · Fixed by #2016
Assignees
Labels
pkg/driver This is due to an issue in the packages/driver directory type: bug
Milestone

Comments

@Gennadiii
Copy link

Gennadiii commented Feb 27, 2018

  • Operating System: Windows 10
  • Cypress Version: 1.4.2
  • Browser Version: Chrome 63

Bug?

Current behavior:

cy.get('some css locator').first().clear().type('1000');

the field I'm typing to is input with type='number'
10% times I get input 100 (without the last character)

@pgroot91
Copy link

pgroot91 commented Feb 27, 2018

How did you came up with the 10 percent reproducibility? Running the same test multiple times in a row and see if or when it fails? so runs 10 times the same test and 1 fails? or...

Is there a reason why you don't run the lastest version of Cypress and Chrome?

@Gennadiii
Copy link
Author

I trigger test run multiple times in a row. 10% is an approximate number. This old version was set up some time ago and I've just joined the project. I'll see if I can upgrade but if there's a solution or a reason why it's happening - would be good to know.
Thanks.

@jennifer-shehane jennifer-shehane added stage: needs information Not enough info to reproduce the issue stage: needs investigating Someone from Cypress needs to look at this labels Feb 27, 2018
@Gennadiii Gennadiii changed the title .type() does not type last character (reproducibility is 10%) .type() does not type random characters (reproducibility is 10%) Apr 30, 2018
@rgkeith3
Copy link

rgkeith3 commented Jun 3, 2018

I have a similar issue, all my tests pass when I run them separately, however when running them all at once, (doing some actions like typing in a field many many times over the course of a test run) I'll occasionally, and inconsistently end up with truncated strings in the inputs. usually missing the last couple letters.

@kuceb
Copy link
Contributor

kuceb commented Jun 29, 2018

I'm looking into this as part of the #1241 cy.type() epic.

@kuceb kuceb self-assigned this Jun 29, 2018
@jennifer-shehane jennifer-shehane added this to the 3.0.3 milestone Jul 12, 2018
@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Jul 12, 2018
@kuceb kuceb added type: bug pkg/driver This is due to an issue in the packages/driver directory and removed stage: needs investigating Someone from Cypress needs to look at this labels Jul 16, 2018
brian-mann pushed a commit that referenced this issue Jul 23, 2018
this grew to a large PR fixing many cy.type issues.

fix #365
fix #420
fix #586 
fix #593 
fix #596 
fix #610 
fix #651
fix #940
fix #1002 
fix #1108
fix #1171
fix #1209 
fix #1234 
fix #1366
fix #1381 
fix #1684 
fix #1686
fix #1926 
fix #2056
fix #2096 
fix #2110 
fix #2173
fix #2187
@jennifer-shehane jennifer-shehane added stage: pending release and removed stage: needs review The PR code is done & tested, needs review stage: needs investigating Someone from Cypress needs to look at this stage: in progress labels Jul 23, 2018
@Floriferous
Copy link

Floriferous commented Dec 20, 2018

I'm still seeing inconsistencies with type(), I can't reproduce them on my local machine, they only happen on circle CI.

It doesn't make it to the end of the string, and then moves on to the next action.

EDIT: Decided to open a new issue #2973

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/driver This is due to an issue in the packages/driver directory type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants