Fix scroll offset when jumping to internal id
This commit is contained in:
parent
e5e2b0be26
commit
801ac0e24f
2 changed files with 14 additions and 1 deletions
|
|
@ -29,3 +29,9 @@ assert-css: (".sidebar", {"display": "block", "left": "-1000px"})
|
|||
|
||||
// Check that the topbar is visible
|
||||
assert-property: (".mobile-topbar", {"clientHeight": "45"})
|
||||
|
||||
// Check that clicking an element from the sidebar scrolls to the right place
|
||||
// so the target is not obscured by the topbar.
|
||||
click: ".sidebar-menu-toggle"
|
||||
click: ".sidebar-links a"
|
||||
assert-position: ("#method\.must_use", {"y": 45})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue