rustdoc: rip out all the gui tests for <100% width mobile sidebar
stuff like "clicking the settings menu closes the mobile sidebar" is now impossible for users to observe, since the mobile sidebar will always cover the settings menu due to being full-width, which is good because that behavior is also now impossible for our testing framework to observe.
This commit is contained in:
@@ -244,10 +244,6 @@ click: ".sidebar-menu-toggle"
|
||||
assert: "//*[@class='sidebar shown']"
|
||||
assert-count: ("//*[@class='tooltip popover']", 0)
|
||||
assert-false: "#method\.create_an_iterator_from_read .tooltip:focus"
|
||||
// Clicking a notable trait tooltip popover should close the sidebar.
|
||||
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']"
|
||||
assert-count: ("//*[@class='tooltip popover']", 1)
|
||||
assert-false: "//*[@class='sidebar shown']"
|
||||
|
||||
// Also check the focus handling for the settings button.
|
||||
set-window-size: (1100, 600)
|
||||
|
||||
@@ -68,16 +68,3 @@ assert-css: ("#settings-menu .popover", {"display": "block"})
|
||||
click: ".sidebar-menu-toggle"
|
||||
assert: "//*[@class='sidebar shown']"
|
||||
assert-css: ("#settings-menu .popover", {"display": "none"})
|
||||
// Opening the settings popover should close the sidebar.
|
||||
click: "#settings-menu a"
|
||||
assert-css: ("#settings-menu .popover", {"display": "block"})
|
||||
assert-false: "//*[@class='sidebar shown']"
|
||||
|
||||
// Opening the settings popover at start (which async loads stuff) should also close.
|
||||
reload:
|
||||
click: ".sidebar-menu-toggle"
|
||||
assert: "//*[@class='sidebar shown']"
|
||||
assert-false: "#settings-menu .popover"
|
||||
click: "#settings-menu a"
|
||||
assert-false: "//*[@class='sidebar shown']"
|
||||
wait-for: "#settings-menu .popover"
|
||||
|
||||
@@ -32,8 +32,8 @@ assert-css: (
|
||||
{"display": "block"}
|
||||
)
|
||||
|
||||
// Click elsewhere.
|
||||
click: "body"
|
||||
// Click the toggle to close it
|
||||
click: ".sidebar-menu-toggle"
|
||||
assert-css: (".sidebar", {"display": "block", "left": "-1000px"})
|
||||
|
||||
// Open the sidebar menu, and make sure pressing Escape closes it.
|
||||
@@ -57,6 +57,7 @@ scroll-to: ".block.keyword li:nth-child(1)"
|
||||
compare-elements-position-near: (".block.keyword li:nth-child(1)", ".mobile-topbar", {"y": 544})
|
||||
|
||||
// Now checking the background color of the sidebar.
|
||||
reload:
|
||||
show-text: true
|
||||
|
||||
define-function: (
|
||||
@@ -72,6 +73,8 @@ define-function: (
|
||||
"background-color": |background|,
|
||||
"color": |color|,
|
||||
})
|
||||
// Close the sidebar menu.
|
||||
press-key: "Escape"
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user