Update browser-ui-test version to 0.18.0

This commit is contained in:
Guillaume Gomez 2024-06-27 00:04:23 +02:00
parent 2c243d9570
commit 315be7d483
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,