Skip to content

Commit 868ffd0

Browse files
Add test for sidebar display value on mobile
1 parent c3c4b9e commit 868ffd0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This test ensure that the sidebar isn't "hidden" on mobile but instead moved out of the viewport.
2+
// This is especially important for devices for "text-first" content (like for users with
3+
// sight issues).
4+
goto: file://|DOC_PATH|/test_docs/struct.Foo.html
5+
// Switching to "mobile view" by reducing the width to 600px.
6+
size: (600, 600)
7+
assert-css: (".sidebar-elems", {"display": "block", "left": "-246px"})
8+
// Opening the sidebar menu.
9+
click: ".sidebar-menu"
10+
assert-css: (".sidebar-elems", {"display": "block", "left": "0px"})

0 commit comments

Comments
 (0)