Add GUI regression test for #2529
This commit is contained in:
parent
d6720fc671
commit
ce63cc31f4
1 changed files with 16 additions and 0 deletions
16
tests/gui/sidebar-nojs.goml
Normal file
16
tests/gui/sidebar-nojs.goml
Normal file
|
|
@ -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|})
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue