Skip to content

Commit 4627474

Browse files
committed
rustdoc: when opening the settings popover, reload it
This way, if something else (or another page) changes the setting, it's reflected in the popover.
1 parent 4095fbd commit 4627474

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Checks sidebar resizing stays synced with the setting
2+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
3+
assert-property: (".sidebar", {"clientWidth": "200"})
4+
show-text: true
5+
6+
// Verify that the "hide" option is unchecked
7+
click: "#settings-menu"
8+
wait-for: "#settings"
9+
assert-css: ("#settings", {"display": "block"})
10+
assert-property: ("#hide-sidebar", {"checked": "false"})
11+
press-key: "Escape"
12+
wait-for-css: ("#settings", {"display": "none"})
13+
14+
drag-and-drop: ((205, 100), (5, 100))
15+
assert-css: (".sidebar", {"display": "none"})
16+
17+
// Verify that the "hide" option is checked
18+
focus: "#settings-menu a"
19+
press-key: "Enter"
20+
wait-for-css: ("#settings", {"display": "block"})
21+
assert-property: ("#hide-sidebar", {"checked": "true"})
22+
click: "#hide-sidebar"
23+
assert-property: ("#hide-sidebar", {"checked": "false"})
24+
assert-css: (".sidebar", {"display": "block"})

0 commit comments

Comments
 (0)