Add test case to click popover child link
This commit is contained in:
parent
6c254ed6dc
commit
2399df288e
1 changed files with 8 additions and 0 deletions
|
@ -61,3 +61,11 @@ click: "#help-button > a"
|
|||
assert-css: ("#help", {"display": "none"})
|
||||
compare-elements-property-false: (".sub", "#help", ["offsetWidth"])
|
||||
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/"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue