File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ click: ".example-wrap .copy-button"
26
26
move-cursor-to: ".search-input"
27
27
assert-count: (".example-wrap:not(:hover) .button-holder.keep-visible", 0)
28
28
assert-css: (".example-wrap .copy-button", { "visibility": "hidden" })
29
+ // Since we clicked on the copy button, the clipboard content should have been updated.
30
+ assert-clipboard: 'println!("nothing fancy");\nprintln!("but with two lines!");'
29
31
30
32
define-function: (
31
33
"check-buttons",
Original file line number Diff line number Diff line change 1
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"
2
+ // isn't broken and the copied path is as expected.
3
+ go-to: "file://" + |DOC_PATH| + "/test_docs/foreign_impl_order/trait.Foo.html"
4
+
5
+ // We ensure that the clipboard is empty.
6
+ assert-clipboard: ""
4
7
5
8
// First we store the size of the button before we click on it.
6
9
store-size: ("#copy-path", {"width": width, "height": height})
7
10
click: "#copy-path"
8
11
// We wait for the new text to appear.
9
12
wait-for: "#copy-path.clicked"
13
+ // We check that the clipboard value is the expected one.
14
+ assert-clipboard: "test_docs::foreign_impl_order::Foo"
10
15
// We check that the size didn't change.
11
16
assert-size: ("#copy-path.clicked", {"width": |width|, "height": |height|})
12
17
// We wait for the button to turn back to its original state.
You can’t perform that action at this time.
0 commit comments