Skip to content

Commit 1de8cf8

Browse files
committed
try the last pages as well
1 parent 85afbe4 commit 1de8cf8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/gui/move-between-pages.goml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This tests basic search behavior.
1+
// This tests pressing the left and right arrows moving to previous and next page.
22

33
// We disable the requests checks because `searchindex.json` will always fail
44
// locally (due to CORS), but the searchindex.js will succeed.
@@ -27,3 +27,14 @@ assert-text: ("title", "Markdown Individual tags - mdBook test book")
2727
press-key: 'ArrowRight'
2828
assert-text: ("title", "Heading - mdBook test book")
2929

30+
// Last numbered page
31+
go-to: "../rust/rust_codeblock.html"
32+
assert-text: ("title", "Rust Codeblocks - mdBook test book")
33+
34+
// Go to the suffix chapter
35+
press-key: 'ArrowRight'
36+
assert-text: ("title", "Suffix Chapter - mdBook test book")
37+
38+
// Try to go beyond the last page
39+
press-key: 'ArrowRight'
40+
assert-text: ("title", "Suffix Chapter - mdBook test book")

0 commit comments

Comments
 (0)