Skip to content

Commit dd805e1

Browse files
committed
test: add unit test for logo-alt in navbar/sidebar
1 parent 70b90aa commit dd805e1

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
project:
2+
type: website
3+
4+
website:
5+
title: "issue-10251"
6+
navbar:
7+
logo: "https://quarto.org/quarto.png"
8+
logo-alt: "this is the alt text that for the logo in the navbar"
9+
left:
10+
- href: index.qmd
11+
text: Home
12+
sidebar:
13+
logo: "https://quarto.org/quarto.png"
14+
logo-alt: "this is the alt text that for the logo in the sidebar"
15+
16+
format:
17+
html:
18+
theme: cosmo
19+
toc: true
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: "issue-10251"
3+
_quarto:
4+
tests:
5+
html:
6+
ensureFileRegexMatches:
7+
- [
8+
'<img src="https://quarto.org/quarto.png" alt="this is the alt text that for the logo in the sidebar" class="sidebar-logo py-0 d-lg-inline d-none">',
9+
'<img src="https://quarto.org/quarto.png" alt="this is the alt text that for the logo in the navbar" class="navbar-logo">'
10+
]
11+
---
12+
13+
This is a Quarto website.
14+
15+
To learn more about Quarto websites visit <https://quarto.org/docs/websites>.

0 commit comments

Comments
 (0)