-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 issues with cy.type #2016
Fix issues with cy.type #2016
Conversation
@@ -199,6 +203,11 @@ module.exports = (Commands, Cypress, cy, state, config) -> | |||
if domEvents.mouseDown.preventedDefault or not $dom.isAttached($elToClick) | |||
afterMouseDown($elToClick, coords) | |||
else | |||
if $elements.isInput(el) or $elements.isTextarea(el) or $elements.isContentEditable(el) | |||
if $elements.isNeedSingleValueChangeInputElement(el) |
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.
cannot tell what this means from its name 🤔
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.
oh lord, read the comments - maybe...this...is...fine... 😳
i might have found another issue when usinig Cypress.Commands.add('replace', { prevSubject: true }, (subject, value) => {
// only relyable way to replace the content without scrambling the value (adding min or max)
cy.wrap(subject).clear({ force: true });
cy.wrap(subject).clear({ force: true }).type(value);
}); |
@phoet could you open an issue or add your comment to one of the related issues? merged PRs are not very visible. Thanks |
this grew to a large PR fixing many cy.type issues.
fix #365
fix #420
fix #586
fix #593
fix #596
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
fix #2233