-
Notifications
You must be signed in to change notification settings - Fork 193
/
basic.goml
14 lines (13 loc) · 688 Bytes
/
basic.goml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Checks that the "latest" URL leads us to the last version of the `sysinfo` crate.
go-to: |DOC_PATH| + "/sysinfo"
// We first check if the redirection worked as expected:
assert-document-property: ({"URL": "/sysinfo/latest/sysinfo/"}, ENDS_WITH)
// Now we go to the actual version we're interested into.
go-to: |DOC_PATH| + "/sysinfo/0.23.5/sysinfo/index.html"
assert: "//*[@class='title' and text()='sysinfo-0.23.5']"
// And we also confirm we're on a rustdoc page.
assert: "#rustdoc_body_wrapper"
// Let's go to the docs.rs page of the crate.
go-to: |DOC_PATH| + "/crate/sysinfo/0.23.5"
assert-false: "#rustdoc_body_wrapper"
assert-text: ("#crate-title", "sysinfo 0.23.5", CONTAINS)