Skip to content

Commit 2399df2

Browse files
committed
Add test case to click popover child link
1 parent 6c254ed commit 2399df2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/rustdoc-gui/help-page.goml

+8
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,11 @@ click: "#help-button > a"
6161
assert-css: ("#help", {"display": "none"})
6262
compare-elements-property-false: (".sub", "#help", ["offsetWidth"])
6363
compare-elements-position-false: (".sub", "#help", ("x"))
64+
65+
// This test ensures that the "the rustdoc book" anchor link within the help popover works.
66+
goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
67+
size: (1000, 1000) // Popover only appears when the screen width is >700px.
68+
assert-false: "#help"
69+
click: "#help-button > a"
70+
click: ".popover a[href='https://doc.rust-lang.org/rustdoc/']"
71+
assert-document-property: {"URL": "https://doc.rust-lang.org/rustdoc/"}

0 commit comments

Comments
 (0)