Skip to content

Commit 20688cd

Browse files
committed
tests - improve tests
- Add images and optimize their size using oxipng - add check in the second page for no logos - by default, sidebar will have a logo if a brand logo is defined
1 parent b8b46b5 commit 20688cd

19 files changed

Lines changed: 51 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
---
22
title: chapter
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- []
8+
- ['a.navbar-brand-logo', 'a.sidebar-logo-link']
39
---
10+
11+
Content
-21.6 KB
Loading
-23.5 KB
Loading
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
---
22
title: conclusion
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- []
8+
- ['a.navbar-brand-logo', 'a.sidebar-logo-link']
39
---
10+
11+
Content
46.2 KB
Loading
57.2 KB
Loading
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
---
22
title: chapter
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- ['a.sidebar-logo-link']
8+
- ['a.navbar-brand-logo']
39
---
10+
11+
Content

‎tests/docs/smoke-all/brand/logo/navbar/disable-logo-book/index.qmd‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ _quarto:
44
tests:
55
html:
66
ensureHtmlElements:
7-
- []
7+
- ['a.sidebar-logo-link']
88
- ['a.navbar-brand-logo']
99
---
1010

1111
This test verifies that setting `navbar.logo: false` disables the navbar logo
1212
in a book project even when `_brand.yml` defines a logo.
13+
14+
Sidebar logo will be the brand logo by default.
-21.6 KB
Loading
-23.5 KB
Loading

0 commit comments

Comments
 (0)