-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to newest browser-ui-test version
- Loading branch information
1 parent
09d562d
commit c6a348d
Showing
5 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Checks the content of the 404 page. | ||
goto: |DOC_PATH|/non-existing-crate | ||
go-to: |DOC_PATH| + "/non-existing-crate" | ||
assert-text: ("#crate-title", "The requested crate does not exist") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
// Checks that the "latest" URL leads us to the last version of the `sysinfo` crate. | ||
goto: |DOC_PATH|/sysinfo | ||
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. | ||
goto: |DOC_PATH|/crate/sysinfo/latest | ||
go-to: |DOC_PATH| + "/crate/sysinfo/0.23.5" | ||
assert-false: "#rustdoc_body_wrapper" | ||
assert-text: ("#crate-title", "sysinfo 0.23.5", CONTAINS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters