forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for sidebar display value on mobile
- Loading branch information
1 parent
e722a08
commit 2818e74
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This test ensure that the sidebar isn't "hidden" on mobile but instead moved out of the viewport. | ||
// This is especially important for devices for "text-first" content (like for users with | ||
// sight issues). | ||
goto: file://|DOC_PATH|/test_docs/struct.Foo.html | ||
// Switching to "mobile view" by reducing the width to 600px. | ||
size: (600, 600) | ||
assert-css: (".sidebar-elems", {"display": "block", "left": "-246px"}) | ||
// Opening the sidebar menu. | ||
click: ".sidebar-menu" | ||
assert-css: (".sidebar-elems", {"display": "block", "left": "0px"}) |