Solution scrollBehavior with sticky navigation header? #26846
Unanswered
ray1618
asked this question in
Questions and Help
Replies: 1 comment
-
I have been wondering the same thing. you can set an offset in the scroll function, but I would like a global scroll offset so I can keep cypress auto scroll on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
My navigation header became sticky and now some test are failing because when I cy.get('').click() an element it will fail because the click will auto scroll the element to top. BUT the sticky header will be in front of it 😑.
Ofcourse there are workarounds like manualy scroll to a correct position, force click or make the viewport large enough so it doesn't need to scroll. But is there any (neat) way to offset the default
scrollBehavior: 'top'
?Beta Was this translation helpful? Give feedback.
All reactions