Add a basic book for GUI tests
This is the default book with a single chapter.
This commit is contained in:
parent
87e9cc0ac3
commit
9b5c57bf48
6 changed files with 11 additions and 2 deletions
2
tests/gui/books/basic/book.toml
Normal file
2
tests/gui/books/basic/book.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[book]
|
||||
title = "basic"
|
||||
3
tests/gui/books/basic/src/SUMMARY.md
Normal file
3
tests/gui/books/basic/src/SUMMARY.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Summary
|
||||
|
||||
- [Chapter 1](./chapter_1.md)
|
||||
1
tests/gui/books/basic/src/chapter_1.md
Normal file
1
tests/gui/books/basic/src/chapter_1.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Chapter 1
|
||||
|
|
@ -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"})
|
||||
|
|
|
|||
|
|
@ -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|)
|
||||
|
||||
|
|
|
|||
3
tests/testsuite/build/basic_build/README.md
Normal file
3
tests/testsuite/build/basic_build/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Basic book
|
||||
|
||||
This GUI test book is the default book with a single chapter.
|
||||
Loading…
Add table
Reference in a new issue