Skip to content

Commit 3fb2b00

Browse files
committed
Add some tests
1 parent c272252 commit 3fb2b00

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.quarto/
2+
/_book/
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
project:
2+
type: book
3+
4+
book:
5+
title: "mybook"
6+
author: "Norah Jones"
7+
date: "11/24/2024"
8+
cover-image: cover.png
9+
chapters:
10+
- index.qmd
11+
12+
format:
13+
html:
14+
theme: cosmo
15+
16+
lightbox: true
50 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
_quarto:
3+
tests:
4+
html:
5+
ensureHtmlElements:
6+
- ['section#preface .quarto-cover-image']
7+
- ['.ligtbox > .quarto-cover-image']
8+
---
9+
10+
# Preface {.unnumbered}
11+
12+
This is a Quarto book. Cover image should not have Lightbox treatment in books when `lightbox: true`
13+
14+
To learn more about Quarto books visit <https://quarto.org/docs/books>.

0 commit comments

Comments
 (0)