-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2531 from GuillaumeGomez/regression-test-2529
Add GUI regression test for #2529
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
merge_group: | ||
|
||
env: | ||
BROWSER_UI_TEST_VERSION: '0.18.2' | ||
BROWSER_UI_TEST_VERSION: '0.19.0' | ||
|
||
jobs: | ||
test: | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This GUI test checks that the sidebar takes the whole height when it's inside | ||
// an iframe (because of JS disabled). | ||
// Regression test for <https://github.com/rust-lang/mdBook/issues/2528>. | ||
|
||
// We disable the requests checks because `searchindex.json` will always fail | ||
// locally. | ||
fail-on-request-error: false | ||
// We disable javascript | ||
javascript: false | ||
go-to: |DOC_PATH| + "index.html" | ||
store-value: (height, 1000) | ||
set-window-size: (1000, |height|) | ||
|
||
within-iframe: (".sidebar-iframe-outer", block { | ||
assert-size: (" body", {"height": |height|}) | ||
}) |