@@ -6,12 +6,12 @@ assert-css: ("#help", {"display": "block"})
6
6
assert-css: ("#help dd", {"font-size": "16px"})
7
7
assert-false: "#help-button > a"
8
8
assert-css: ("#help", {"display": "block"})
9
- compare-elements-property: (".sub ", "#help", ["offsetWidth"])
10
- compare-elements-position: (".sub ", "#help", ["x"])
9
+ compare-elements-property: (".main-heading ", "#help", ["offsetWidth"])
10
+ compare-elements-position: (".main-heading ", "#help", ["x"])
11
11
set-window-size: (500, 1000) // Try mobile next.
12
12
assert-css: ("#help", {"display": "block"})
13
- compare-elements-property: (".sub ", "#help", ["offsetWidth"])
14
- compare-elements-position: (".sub ", "#help", ["x"])
13
+ compare-elements-property: (".main-heading ", "#help", ["offsetWidth"])
14
+ compare-elements-position: (".main-heading ", "#help", ["x"])
15
15
16
16
// Checking the color of the elements of the help menu.
17
17
show-text: true
@@ -54,19 +54,17 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=a"
54
54
wait-for: "#search-tabs" // Waiting for the search.js to load.
55
55
set-window-size: (1000, 1000) // Only supported on desktop.
56
56
assert-false: "#help"
57
- click: "# help-button > a"
57
+ click: "rustdoc-toolbar . help-menu > a"
58
58
assert-css: ("#help", {"display": "block"})
59
59
assert-css: ("#help dd", {"font-size": "16px"})
60
- click: "#help-button > a"
61
- assert-css: ("#help", {"display": "none"})
62
- compare-elements-property-false: (".sub", "#help", ["offsetWidth"])
63
- compare-elements-position-false: (".sub", "#help", ["x"])
60
+ click: "rustdoc-toolbar .help-menu > a"
61
+ assert-false: "#help"
64
62
65
63
// This test ensures that the "the rustdoc book" anchor link within the help popover works.
66
64
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=a"
67
65
wait-for: "#search-tabs" // Waiting for the search.js to load.
68
66
set-window-size: (1000, 1000) // Popover only appears when the screen width is >700px.
69
67
assert-false: "#help"
70
- click: "# help-button > a"
68
+ click: "rustdoc-toolbar . help-menu > a"
71
69
click: "//*[@id='help']//a[text()='the rustdoc book']"
72
70
wait-for-document-property: ({"URL": "https://doc.rust-lang.org/"}, STARTS_WITH)
0 commit comments