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:
bors 2024-06-28 04:15:16 +00:00
commit 42add88d22
3 changed files with 7 additions and 3 deletions

View File

@ -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")

View File

@ -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,