Skip to content

Commit

Permalink
Add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Dec 12, 2024
1 parent c272252 commit 3fb2b00
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/docs/smoke-all/2024/12/12/11520/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.quarto/
/_book/
16 changes: 16 additions & 0 deletions tests/docs/smoke-all/2024/12/12/11520/_quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
project:
type: book

book:
title: "mybook"
author: "Norah Jones"
date: "11/24/2024"
cover-image: cover.png
chapters:
- index.qmd

format:
html:
theme: cosmo

lightbox: true
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions tests/docs/smoke-all/2024/12/12/11520/index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
_quarto:
tests:
html:
ensureHtmlElements:
- ['section#preface .quarto-cover-image']
- ['.ligtbox > .quarto-cover-image']
---

# Preface {.unnumbered}

This is a Quarto book. Cover image should not have Lightbox treatment in books when `lightbox: true`

To learn more about Quarto books visit <https://quarto.org/docs/books>.

0 comments on commit 3fb2b00

Please sign in to comment.