Skip to content

Commit ce63cc3

Browse files
Add GUI regression test for #2529
1 parent d6720fc commit ce63cc3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/gui/sidebar-nojs.goml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This GUI test checks that the sidebar takes the whole height when it's inside
2+
// an iframe (because of JS disabled).
3+
// Regression test for <https://github.com/rust-lang/mdBook/issues/2528>.
4+
5+
// We disable the requests checks because `searchindex.json` will always fail
6+
// locally.
7+
fail-on-request-error: false
8+
// We disable javascript
9+
javascript: false
10+
go-to: |DOC_PATH| + "index.html"
11+
store-value: (height, 1000)
12+
set-window-size: (1000, |height|)
13+
14+
within-iframe: (".sidebar-iframe-outer", block {
15+
assert-size: (" body", {"height": |height|})
16+
})

0 commit comments

Comments
 (0)