summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-gui/run-on-hover.goml
blob: 6c785e1c4bbababd765774154b4d7bc6566fc46b (plain)
1
2
3
4
5
6
7
// Example code blocks sometimes have a "Run" button to run them on the
// Playground. That button is hidden until the user hovers over the code block.
// This test checks that it is hidden, and that it shows on hover.
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
assert-css: (".test-arrow", {"visibility": "hidden"})
move-cursor-to: ".example-wrap"
assert-css: (".test-arrow", {"visibility": "visible"})