File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 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"
2626move-cursor-to: ".search-input"
2727assert-count: (".example-wrap:not(:hover) .button-holder.keep-visible", 0)
2828assert-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!");'
2931
3032define-function: (
3133 "check-buttons",
Original file line number Diff line number Diff line change 11// 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: ""
47
58// First we store the size of the button before we click on it.
69store-size: ("#copy-path", {"width": width, "height": height})
710click: "#copy-path"
811// We wait for the new text to appear.
912wait-for: "#copy-path.clicked"
13+ // We check that the clipboard value is the expected one.
14+ assert-clipboard: "test_docs::foreign_impl_order::Foo"
1015// We check that the size didn't change.
1116assert-size: ("#copy-path.clicked", {"width": |width|, "height": |height|})
1217// We wait for the button to turn back to its original state.
You can’t perform that action at this time.
0 commit comments