about summary refs log tree commit diff
path: root/tests/rustdoc-gui/code-sidebar-toggle.goml
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-12-17 23:06:31 -0700
committerMichael Howell <michael@notriddle.com>2023-12-17 23:06:31 -0700
commit859bbc5deffbee7870433c541cdbeb4a4a23780f (patch)
tree57e41fe2cc034bc00b157e60682937bdf850ca79 /tests/rustdoc-gui/code-sidebar-toggle.goml
parent43dcc9b786c922251c3fbe75a0142f50f07053ca (diff)
downloadrust-859bbc5deffbee7870433c541cdbeb4a4a23780f.tar.gz
rust-859bbc5deffbee7870433c541cdbeb4a4a23780f.zip
rustdoc: clean up source sidebar hide button
This is a redesign of the feature, with parts pulled from
https://github.com/rust-lang/rust/pull/119049
but with a button that looks more like a button and matches the
one used on other sidebar pages.
Diffstat (limited to 'tests/rustdoc-gui/code-sidebar-toggle.goml')
-rw-r--r--tests/rustdoc-gui/code-sidebar-toggle.goml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-gui/code-sidebar-toggle.goml b/tests/rustdoc-gui/code-sidebar-toggle.goml
index d1efa45dc1d..cdd6507947d 100644
--- a/tests/rustdoc-gui/code-sidebar-toggle.goml
+++ b/tests/rustdoc-gui/code-sidebar-toggle.goml
@@ -1,7 +1,7 @@
 // This test checks that the source code pages sidebar toggle is working as expected.
 go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
 click: "a.src"
-wait-for: "#src-sidebar-toggle"
-click: "#src-sidebar-toggle"
+wait-for: "#src-sidebar"
+click: "#sidebar-button"
 expect-failure: true
 assert-css: ("#src-sidebar", { "left": "-300px" })