Skip to content

Commit

Permalink
Rollup merge of rust-lang#127010 - GuillaumeGomez:update-puppeteer, r…
Browse files Browse the repository at this point in the history
…=notriddle

Update browser-ui-test version to `0.18.0`

Should help with rust-lang#126436.

r? `@notriddle`
  • Loading branch information
GuillaumeGomez committed Jun 27, 2024
2 parents df92945 + 315be7d commit 0df1058
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.17.2
0.18.0
3 changes: 3 additions & 0 deletions tests/rustdoc-gui/label-next-to-symbol.goml
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
5 changes: 3 additions & 2 deletions tests/rustdoc-gui/sidebar-source-code-display.goml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0df1058

Please sign in to comment.