Skip to content

Commit 9b5c57b

Browse files
committed
Add a basic book for GUI tests
This is the default book with a single chapter.
1 parent 87e9cc0 commit 9b5c57b

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

tests/gui/books/basic/book.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[book]
2+
title = "basic"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Summary
2+
3+
- [Chapter 1](./chapter_1.md)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Chapter 1

tests/gui/help.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This GUI test checks help popup.
22

3-
go-to: |DOC_PATH| + "test_book/index.html"
3+
go-to: |DOC_PATH| + "basic/index.html"
44
assert-css: ("#mdbook-help-container", {"display": "none"})
55
press-key: '?'
66
wait-for-css: ("#mdbook-help-container", {"display": "flex"})

tests/gui/sidebar-nojs.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// We disable javascript
66
javascript: false
7-
go-to: |DOC_PATH| + "test_book/index.html"
7+
go-to: |DOC_PATH| + "basic/index.html"
88
store-value: (height, 1028)
99
set-window-size: (1028, |height|)
1010

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Basic book
2+
3+
This GUI test book is the default book with a single chapter.

0 commit comments

Comments
 (0)