Open
Description
click
- simulated click fixes [moved] Simulated click fixes #2956
- on text-editable click in center move the cursor to the end
- ensure possible in
IE11
without causing side effects
- ensure possible in
-
cy.body().type()
:blur
focused element, send events tobody
- support
.rightClick()
🆕
possible:
- move cursor to beginning if
click('left')
orclick('topleft')
⚠️
not fixed:
- document.execCommand("copy") does not work in cypress document.execCommand("copy") does not work in cypress #2851 (execCommand will not work with untrusted events)
type
- by default issues native events
-
force:true
skips actionability and uses simulated keys - simulated keys have no delay
⚠️ change from 50ms - native keys by default have no delay
⚠️ change from 50ms - support new special
.type()
sequences:{moveToEnd}
,{moveToStart}
🆕 - support new special
.type()
sequences:{tab}
,{shift+tab}
🆕 - type follows focus
⚠️ - trusted native keyboard events 🆕
- checkValidity() returns true instead of false for min length on input checkValidity() returns true instead of false for min length on input #1930
{moveToEnd}/{moveToStart}
- IE: setSelectionRange on all inputs
- chrome/ff: setSelectionRange except for email/number inputs. For those we use
execCommand('selectAll') + selection.modify('...')
- branch logic based on
browserFeatures
object. For ex)
{
setSelectionRangeOnAllInputTypes: true
}
focus
.focus
behavior on certain text editable elements- command should first focusable element
⚠️ change from subject - focus host contenteditable Cannot focus element inside content editable element #2717
- command should first focusable element
contenteditable
- treated as any other text-editable in the commands above.
- By default move cursor to end
- support
{moveToEnd}
/{moveToStart}
- support
{tab}
file uploads 🆕
- proposal Adding Ability to Submit File to Input Element From Local Filesystem (file upload) #170
- tbd
cy.hover 🆕
- proposal Add cy.hover() #10
- tbd
scroll behavior
- scroll into view only if needed
⚠️ - use getElementFromPoint on the pixel needing click
- scroll into center by default
⚠️ - allow user to configure scroll position (center, bottom, top) Enable users to change the scrolling strategy Enable users to change the scrolling strategy #871 🆕
For IE:- scrollIntoView can't center, so calculate coords and try to center it manually
Considerations / Research
select text command? 🆕
- allow user to make arbitrary text selection
mouse state
- tbd
for mouse actions that involve mouse state:
- in open mode, warn if potentially affected test
- includes click (since hover before click), hover, drag-and-drop
For IE11 & firefox, see branch issue-311-ie-ff