1
Fork 0

Add test case to click popover child link

This commit is contained in:
Ardis Lu 2023-01-03 20:38:07 -08:00
parent 6c254ed6dc
commit 2399df288e
No known key found for this signature in database

View file

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