File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 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|})
You can’t perform that action at this time.
0 commit comments