-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: cy.type in hidden inputs, contenteditable selections #5865
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
@@ -2157,14 +2234,6 @@ describe('src/cy/commands/actions/type', () => { | |||
it('correct events in contenteditable', () => { | |||
const ce = cy.$$('[contenteditable]:first') | |||
|
|||
const keydown = cy.stub().callsFake((e) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was redundant, tested above already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that the code here does fix the issue originally opened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, and if it fixes Piechopper than it is good to fix develop
…#5865) * fix type when previous selection in input * cleanup * cleanup more * more cleanup * more more cleanup final * fix not firing input event in all cases * fix deletion with selection in contenteditables + tests * remove only * fix hidden input selections
fix #5835 cy.type with force:true on hidden inputs (regression from 3.5.0)
fix cy.type in contenteditable with selections (regression from #5854 develop, unreleased)
User facing changelog
3.5.0
with.type({ force: true })
on hidden inputs cy.clear({ force: true }) only deletes first character of hidden input in 3.5.0 #5835Additional details
How has the user experience changed?
PR Tasks