Skip to content

selectall / unselect regressions in 3.5.0, 3.6 #5622

@znarf

Description

@znarf

Some regressions were introduced in 3.5 in type() behavior when interacting with selection (selectall / unselect).

Current behavior:

The issue happens in a rich text editor where we are making a text bold by triggering:

  • {selectall} to select the typed text
  • {ctrl}B one time to start
  • unselecting by triggering {rightarrow}.
  • {ctrl}B a second time to stop

It seems:

  • the content is not unselected by triggering {rightarrow}.
  • the {ctrl} is ignored, only B is triggered

Steps to reproduce: (app code and test code)

In a rich text editor supporting this command.

  • Type: Hello{selectall}{ctrl}B{rightarrow}{ctrl}B world!
  • Desired behavior < 3.5: Hello World !
  • Current behavior >= 3.5: B World!

Work in progress, currently trying to generate a minimum reproduction.

Sources

Versions

Introduced in Cypress 3.5, still happening in 3.6. Linux / Mac OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/driverThis is due to an issue in the packages/driver directorytype: regressionA bug that didn't appear until a specific Cy version releasev3.5.0 🐛Issue present since 3.5.0

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions