File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
3
3
// Check that we can click on the line number.
4
4
click: ".line-numbers > span:nth-child(4)" // This is the span for line 4.
5
- // Unfortunately, "#4" isn't a valid query selector, so we have to go around that limitation
6
- // by instead getting the nth span.
7
- assert-attribute: (".line-numbers > span:nth-child(4) ", {"class": "line-highlighted"})
5
+ // Ensure that the page URL was updated.
6
+ assert-document-property: ({"URL": "#4"}, ENDS_WITH)
7
+ assert-attribute: ("//*[@id='4'] ", {"class": "line-highlighted"})
8
8
// We now check that the good spans are highlighted
9
9
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html#4-6
10
10
assert-attribute-false: (".line-numbers > span:nth-child(3)", {"class": "line-highlighted"})
You can’t perform that action at this time.
0 commit comments