@@ -82,15 +82,6 @@ call-function: ("check-notable-tooltip-position", {
82
82
"i_x": 528,
83
83
})
84
84
85
- // Checking on mobile now.
86
- set-window-size: (650, 600)
87
- wait-for-size: ("body", {"width": 650})
88
- call-function: ("check-notable-tooltip-position-complete", {
89
- "x": 26,
90
- "i_x": 305,
91
- "popover_x": 0,
92
- })
93
-
94
85
// Now check the colors.
95
86
define-function: (
96
87
"check-colors",
@@ -176,6 +167,15 @@ call-function: (
176
167
},
177
168
)
178
169
170
+ // Checking on mobile now.
171
+ set-window-size: (650, 600)
172
+ wait-for-size: ("body", {"width": 650})
173
+ call-function: ("check-notable-tooltip-position-complete", {
174
+ "x": 26,
175
+ "i_x": 305,
176
+ "popover_x": 0,
177
+ })
178
+
179
179
reload:
180
180
181
181
// Check that pressing escape works
@@ -189,7 +189,7 @@ assert: "#method\.create_an_iterator_from_read .tooltip:focus"
189
189
// Check that clicking outside works.
190
190
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']"
191
191
assert-count: ("//*[@class='tooltip popover']", 1)
192
- click: ".search-input "
192
+ click: ".main-heading h1 "
193
193
assert-count: ("//*[@class='tooltip popover']", 0)
194
194
assert-false: "#method\.create_an_iterator_from_read .tooltip:focus"
195
195
@@ -219,14 +219,14 @@ define-function: (
219
219
store-window-property: {"scrollY": scroll}
220
220
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']"
221
221
wait-for: "//*[@class='tooltip popover']"
222
- click: "#settings-menu a "
222
+ click: ".main-heading h1 "
223
223
}
224
224
)
225
225
226
226
// Now we check that the focus isn't given back to the wrong item when opening
227
227
// another popover.
228
228
call-function: ("setup-popup", {})
229
- click: ".search-input "
229
+ click: ".main-heading h1 "
230
230
// We ensure we didn't come back to the previous focused item.
231
231
assert-window-property-false: {"scrollY": |scroll|}
232
232
@@ -255,7 +255,7 @@ reload:
255
255
assert-count: ("//*[@class='tooltip popover']", 0)
256
256
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']"
257
257
assert-count: ("//*[@class='tooltip popover']", 1)
258
- click: "# settings-menu a"
258
+ click: "rustdoc-toolbar . settings-menu a"
259
259
wait-for: "#settings"
260
260
assert-count: ("//*[@class='tooltip popover']", 0)
261
261
assert-false: "#method\.create_an_iterator_from_read .tooltip:focus"
0 commit comments