Skip to content

position sticky and flex, cypress scrolls to the end of page to access element #1475

@RomanHotsiy

Description

@RomanHotsiy
  • Operating System: macOS High Sierra 10.13.3
  • Cypress Version: 2.1.0
  • Browser Version: Chrome 59

Is this a Feature or Bug?

Bug

Current behavior:

When using position: sticky and display: flex combination cypress gets mad when trying to access element inside sticky element:

cy-bug

It scrolls to the end of the page before performing any operations on the element while it is not required as the element is visible and accessible.

Desired behavior:

Should access elements without scrolling

How to reproduce:

https://github.com/RomanGotsiy/cypress-test-tiny

Just run npm run cypress:open and select the only available suite.
There are three tests there:

  • type into the input
  • click on the link
  • both but with {force: true} which works as expected

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions