-
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
simulated type fixes #4870
simulated type fixes #4870
Conversation
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 |
packages/driver/test/cypress/integration/commands/actions/type_spec.js
Outdated
Show resolved
Hide resolved
packages/driver/test/cypress/integration/commands/actions/type_spec.js
Outdated
Show resolved
Hide resolved
packages/driver/test/cypress/integration/commands/actions/type_spec.js
Outdated
Show resolved
Hide resolved
@@ -2822,6 +3018,10 @@ describe('src/cy/commands/actions/type', () => { | |||
expect($input).to.have.value('FoO') | |||
}) | |||
}) | |||
|
|||
it('{shift} does not capitalize characters', () => { | |||
cy.get('input:first').type('{shift}foo').should('have.value', 'foo') |
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.
likely need a note here to describe our implementation logic of why we consider this to be correct
cy | ||
.get(':text:first').type(val) | ||
.should('have.value', val) | ||
describe('naughtly strings', () => { |
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.
naughtly lol
return chars | ||
}) | ||
} | ||
throw Error(`Not a valid key: ${key}`) |
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'm not sure this error can ever be hit
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.
It cannot
packages/driver/test/cypress/integration/commands/actions/type_spec.js
Outdated
Show resolved
Hide resolved
… properties to regular exports - attach $Mouse + $Keyboard to Cypress
type validation during every character input, type following activeElement/focus
fix cy.type should follow activeElement #2240
fix not borrowing property getter for
maxLength
during type validationfix Filling forms using Hyperform #4587
allow targeting any focusable element during
cy.type
fix cy.get('button').type() only works if button has
tabindex
specified #2166fix Cannot type into a, link, or select element #3661
not updating value in
datetime-local
inputfix Cannot type on datetime-local input #2613
allow typing minus(
-
) sign into number field if entire field is selectedfix cannot
type
negative number into number input with text selection #4767fire input event when {enter} inserts newline
fix type('{enter}') doesn't fire input event #3405
don't input text when non-shift modifier is pressed
fix cy.type should not insert text when non-shift modifier key is pressed #5424
fire 'code' property on keyboard events
fix cy.type doesn't fill in KeyboardEvent.code #3722
use KeyboardEvent constructor instead of Event from app frameforcing certain property values on the event during and after construction is not stable (does not work in chrome 63)use host contenteditable as focusable element when targeting element inside contenteditable (should help with rich text editors)
remove need to intercept
select
command and keep cypress cursor state on form elementsTasks
cy.type
, use definition ofisFocusable
UX Changes:
error message on not typeable element
error message on not clearable element
type follows focus
Pre-merge Tasks