We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec754cf commit 1ebc9efCopy full SHA for 1ebc9ef
tests/rustdoc-gui/copy-path.goml
@@ -0,0 +1,15 @@
1
+// Checks that the "copy path" button is not triggering JS error and its display
2
+// isn't broken.
3
+go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
4
+
5
+// First we store the size of the button before we click on it.
6
+store-size: ("#copy-path", {"width": width, "height": height})
7
+click: "#copy-path"
8
+// We wait for the new text to appear.
9
+wait-for: "#copy-path.clicked"
10
+// We check that the size didn't change.
11
+assert-size: ("#copy-path.clicked", {"width": |width|, "height": |height|})
12
+// We wait for the button to turn back to its original state.
13
+wait-for: "#copy-path:not(.clicked)"
14
+// We check that the size is still the same.
15
+assert-size: ("#copy-path:not(.clicked)", {"width": |width|, "height": |height|})
0 commit comments