Fix changes coming from browser-ui-test version update

This commit is contained in:
Guillaume Gomez 2026-01-02 20:21:44 +01:00
parent ac453d34d2
commit 665781513e
4 changed files with 7 additions and 7 deletions

View file

@ -15,7 +15,7 @@ define-function: (
assert-css: (".main-heading h1 span", {"color": |main_heading_type_color|})
assert-css: (
".rightside a.src",
{"color": |src_link_color|, "text-decoration": "none solid " + |src_link_color|},
{"color": |src_link_color|, "text-decoration": "none"},
ALL,
)
compare-elements-css: (
@ -32,17 +32,17 @@ define-function: (
move-cursor-to: ".main-heading a.src"
assert-css: (
".main-heading a.src",
{"color": |src_link_color|, "text-decoration": "underline solid " + |src_link_color|},
{"color": |src_link_color|, "text-decoration": "underline"},
)
move-cursor-to: ".impl-items .rightside a.src"
assert-css: (
".impl-items .rightside a.src",
{"color": |src_link_color|, "text-decoration": "none solid " + |src_link_color|},
{"color": |src_link_color|, "text-decoration": "none"},
)
move-cursor-to: ".impl-items a.rightside.src"
assert-css: (
".impl-items a.rightside.src",
{"color": |src_link_color|, "text-decoration": "none solid " + |src_link_color|},
{"color": |src_link_color|, "text-decoration": "none"},
)
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.HeavilyDocumentedStruct.html"

View file

@ -41,7 +41,7 @@ define-function: (
move-cursor-to: "dd a[href='long_code_block_link/index.html']"
assert-css: (
"dd a[href='long_code_block_link/index.html']",
{"text-decoration": "underline solid " + |mod|},
{"text-decoration": "underline"},
)
},
)

View file

@ -49,7 +49,7 @@ assert-property: ("rustdoc-topbar", {"clientHeight": "45"})
// so the target is not obscured by the topbar.
click: ".sidebar-menu-toggle"
click: ".sidebar-elems section .block li > a"
assert-position: ("#method\.must_use", {"y": 46})
assert-position: ("#method\.must_use", {"y": 45})
// Check that the bottom-most item on the sidebar menu can be scrolled fully into view.
click: ".sidebar-menu-toggle"

View file

@ -141,7 +141,7 @@ click: "#sidebar-button"
wait-for-css: (".src .sidebar > *", {"visibility": "hidden"})
// We scroll to line 117 to change the scroll position.
scroll-to: '//*[@id="117"]'
store-value: (y_offset, "2567")
store-value: (y_offset, "2568")
assert-window-property: {"pageYOffset": |y_offset|}
// Expanding the sidebar...
click: "#sidebar-button"