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

if chaining .clear() with .type(), do not issue 'blur', 'click', etc to input in between #593

Closed
jennifer-shehane opened this issue Aug 16, 2017 · 1 comment · Fixed by #2016
Assignees
Labels
pkg/driver This is due to an issue in the packages/driver directory type: enhancement Requested enhancement of existing feature
Milestone

Comments

@jennifer-shehane
Copy link
Member

  • Operating System: Mac
  • Cypress Version: 0.19.4
  • Browser Version: Chrome

Is this a Feature or Bug?

Enhancement

Current behavior:

If I write a test:

cy.get('input').clear().type('Jane')

After the .clear(), Cypress blurs off the input, then attempts to click back onto the input at the beginning of the type.

These events firing can cause some unexpected results when I'm essentially expecting the caret to clear the input and stay in the input to then type.

Desired behavior:

If .clear() is followed with .type(), keep the caret in the input and do not fire the events to blur the input after clear and click on the input at the start of type.

@jennifer-shehane jennifer-shehane added the type: enhancement Requested enhancement of existing feature label Aug 16, 2017
@jennifer-shehane jennifer-shehane added the pkg/driver This is due to an issue in the packages/driver directory label Sep 25, 2017
@kuceb kuceb self-assigned this Jun 29, 2018
@kuceb
Copy link
Contributor

kuceb commented Jun 29, 2018

@jennifer-shehane I'm currently working on this. An upcoming patch release should fix this issue

@kuceb kuceb added this to the 3.0.3 milestone Jun 29, 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
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: enhancement Requested enhancement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants