mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Auto merge of #127010 - GuillaumeGomez:update-puppeteer, r=notriddle
Update browser-ui-test version to `0.18.0` Should help with #126436. r? `@notriddle`
This commit is contained in:
commit
42add88d22
@ -1 +1 @@
|
||||
0.17.2
|
||||
0.18.0
|
@ -1,7 +1,10 @@
|
||||
// These tests verify that labels like "UNIX" and "Deprecated" stay on the same line as their symbol.
|
||||
// It also verifies the staggered layout on mobile.
|
||||
include: "utils.goml"
|
||||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
|
||||
|
||||
call-function: ("switch-theme", {"theme": "light"})
|
||||
|
||||
// Desktop view
|
||||
set-window-size: (1080, 600)
|
||||
assert: (".stab.deprecated")
|
||||
|
@ -141,14 +141,15 @@ click: "#sidebar-button"
|
||||
wait-for-css: (".src .sidebar > *", {"visibility": "hidden"})
|
||||
// We scroll to line 117 to change the scroll position.
|
||||
scroll-to: '//*[@id="117"]'
|
||||
assert-window-property: {"pageYOffset": "2516"}
|
||||
store-value: (y_offset, "2493")
|
||||
assert-window-property: {"pageYOffset": |y_offset|}
|
||||
// Expanding the sidebar...
|
||||
click: "#sidebar-button"
|
||||
wait-for-css: (".sidebar", {"left": "0px"})
|
||||
click: "#sidebar-button"
|
||||
wait-for-css: (".sidebar", {"left": "-1000px"})
|
||||
// The "scrollTop" property should be the same.
|
||||
assert-window-property: {"pageYOffset": "2516"}
|
||||
assert-window-property: {"pageYOffset": |y_offset|}
|
||||
|
||||
// We now check that opening the sidebar and clicking a link will close it.
|
||||
// The behavior here on mobile is different than the behavior on desktop,
|
||||
|
Loading…
Reference in New Issue
Block a user