about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLukas Markeffsky <@>2023-12-31 20:31:06 +0100
committerLukas Markeffsky <@>2023-12-31 20:31:56 +0100
commitd796ad4209b2c45d66a8e8b2fa8beac462c80671 (patch)
tree0fa24b1049fa8bfa8bdb3177b80bfdea2e70e1a4 /tests
parente51e98dde6a60637b6a71b8105245b629ac3fe77 (diff)
downloadrust-d796ad4209b2c45d66a8e8b2fa8beac462c80671.tar.gz
rust-d796ad4209b2c45d66a8e8b2fa8beac462c80671.zip
rustdoc ui: adjust tooltip z-index to be above sidebar
Diffstat (limited to 'tests')
-rw-r--r--tests/rustdoc-gui/tooltip-over-sidebar.goml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/tooltip-over-sidebar.goml b/tests/rustdoc-gui/tooltip-over-sidebar.goml
new file mode 100644
index 00000000000..71bf6978731
--- /dev/null
+++ b/tests/rustdoc-gui/tooltip-over-sidebar.goml
@@ -0,0 +1,12 @@
+// Check that the doctest info tooltips are above the sidebar.
+go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
+move-cursor-to: ".example-wrap.ignore .tooltip"
+wait-for: ".tooltip.popover"
+
+// Move cursor to top left corner of the tooltip and check that it doesn't fade.
+move-cursor-to: ".tooltip.popover"
+wait-for: 100
+assert: ".tooltip.popover:not(.fade-out)"
+
+move-cursor-to: (0, 0)
+wait-for: ".tooltip.popover.fade-out"