about summary refs log tree commit diff
path: root/tests/rustdoc-gui/sidebar-source-code.goml
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-09-07 18:45:24 -0700
committerMichael Howell <michael@notriddle.com>2023-10-11 10:26:36 -0700
commit0983438faa0431eb392be1d8ea9761fe4b1e90e2 (patch)
tree6f929fb8f70645811b49d7309a715d72ae496c1f /tests/rustdoc-gui/sidebar-source-code.goml
parent3c23df49352264938a726f6a586d6019e602c5cf (diff)
downloadrust-0983438faa0431eb392be1d8ea9761fe4b1e90e2.tar.gz
rust-0983438faa0431eb392be1d8ea9761fe4b1e90e2.zip
rustdoc: allow resizing the sidebar
Diffstat (limited to 'tests/rustdoc-gui/sidebar-source-code.goml')
-rw-r--r--tests/rustdoc-gui/sidebar-source-code.goml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rustdoc-gui/sidebar-source-code.goml b/tests/rustdoc-gui/sidebar-source-code.goml
index 92b9045b734..aa2ebe92ead 100644
--- a/tests/rustdoc-gui/sidebar-source-code.goml
+++ b/tests/rustdoc-gui/sidebar-source-code.goml
@@ -48,6 +48,7 @@ call-function: (
 
 // Next, desktop mode layout.
 set-window-size: (1100, 800)
+wait-for: "#src-sidebar-toggle"
 // We check that the sidebar isn't expanded and has the expected width.
 assert-css: ("nav.sidebar", {"width": "50px"})
 // We now click on the button to expand the sidebar.
@@ -58,7 +59,7 @@ assert-css: (".src-sidebar-expanded nav.sidebar a", {"font-size": "14px"})
 // We collapse the sidebar.
 click: (10, 10)
 // We ensure that the class has been removed.
-wait-for: "html:not(.expanded)"
+wait-for: "html:not(.src-sidebar-expanded)"
 assert: "nav.sidebar"
 
 // Checking that only the path to the current file is "open".