2025-01-23 14:01:38 +01:00
|
|
|
// 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 javascript
|
|
|
|
|
javascript: false
|
2025-10-13 20:07:38 -07:00
|
|
|
go-to: |DOC_PATH| + "test_book/index.html"
|
2025-08-26 20:54:33 -07:00
|
|
|
store-value: (height, 1028)
|
|
|
|
|
set-window-size: (1028, |height|)
|
2025-01-23 14:01:38 +01:00
|
|
|
|
|
|
|
|
within-iframe: (".sidebar-iframe-outer", block {
|
|
|
|
|
assert-size: (" body", {"height": |height|})
|
|
|
|
|
})
|