1 // This test ensures that the element corresponding to the hash is displayed.
2 goto: file://|DOC_PATH|/test_docs/struct.Foo.html#method.borrow
3 // In the blanket implementations list, "Borrow" is the second one, hence the ":nth(2)".
4 assert-attribute: ("#blanket-implementations-list > details:nth-child(2)", {"open": ""})
5 // We first check that the impl block is open by default.
6 assert-attribute: ("#implementations + details", {"open": ""})
8 click: "#implementations + details > summary"
9 // We check that it was collapsed as expected.
10 assert-attribute-false: ("#implementations + details", {"open": ""})
11 // To ensure that we will click on the currently hidden method.
12 assert-text: (".sidebar-links > a", "must_use")
13 click: ".sidebar-links > a"
14 // We check that the impl block was opened as expected so that we can see the method.
15 assert-attribute: ("#implementations + details", {"open": ""})