Add a basic book for GUI tests

This is the default book with a single chapter.
This commit is contained in:
Eric Huss 2025-10-13 20:25:30 -07:00
parent 87e9cc0ac3
commit 9b5c57bf48
6 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,2 @@
[book]
title = "basic"

View file

@ -0,0 +1,3 @@
# Summary
- [Chapter 1](./chapter_1.md)

View file

@ -0,0 +1 @@
# Chapter 1

View file

@ -1,6 +1,6 @@
// This GUI test checks help popup.
go-to: |DOC_PATH| + "test_book/index.html"
go-to: |DOC_PATH| + "basic/index.html"
assert-css: ("#mdbook-help-container", {"display": "none"})
press-key: '?'
wait-for-css: ("#mdbook-help-container", {"display": "flex"})

View file

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

View file

@ -0,0 +1,3 @@
# Basic book
This GUI test book is the default book with a single chapter.