Skip to content

Commit 30de122

Browse files
change all logo tests from ensureFileRegexMatches
to ensureHtmlElements it's more robust and i saw this matter with at least one of the others
1 parent fadcf71 commit 30de122

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

tests/docs/smoke-all/brand/logo/choose-logo-resource.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ _quarto:
2222
- 'img[src="posit-logo-2024.svg"][alt="posit logo"]'
2323
- []
2424
revealjs:
25-
ensureFileRegexMatches:
25+
ensureHtmlElements:
2626
-
27-
- '<img src="posit-logo-2024\.svg" class="slide-logo">'
27+
- 'img[src="posit-logo-2024.svg"][class="slide-logo"]'
2828
- []
2929
---
3030

tests/docs/smoke-all/brand/logo/default-logo.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ _quarto:
2222
- 'img[src="quarto.png"][alt="quarto logo"]'
2323
- []
2424
revealjs:
25-
ensureFileRegexMatches:
25+
ensureHtmlElements:
2626
-
27-
- '<img src="quarto\.png" class="slide-logo">'
27+
- 'img[src="quarto.png"][class="slide-logo"]'
2828
- []
2929
---
3030

tests/docs/smoke-all/brand/logo/override-logo-path-alt.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ logo:
1919
_quarto:
2020
tests:
2121
dashboard:
22-
ensureFileRegexMatches:
22+
ensureHtmlElements:
2323
-
24-
- '<img src="posit-logo-2024\.svg" alt="posit logo"'
24+
- 'img[src="posit-logo-2024.svg"][alt="posit logo"]'
2525
- []
2626
revealjs:
27-
ensureFileRegexMatches:
27+
ensureHtmlElements:
2828
-
29-
- '<img src="posit-logo-2024\.svg" class="slide-logo">'
29+
- 'img[src="posit-logo-2024.svg"][class="slide-logo"]'
3030
- []
3131
---
3232

tests/docs/smoke-all/brand/logo/override-logo-path.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ logo: posit-logo-2024.svg
1818
_quarto:
1919
tests:
2020
dashboard:
21-
ensureFileRegexMatches:
21+
ensureHtmlElements:
2222
-
23-
- '<img src="posit-logo-2024\.svg" alt=""'
23+
- 'img[src="posit-logo-2024.svg"][alt=""]'
2424
- []
2525
revealjs:
26-
ensureFileRegexMatches:
26+
ensureHtmlElements:
2727
-
28-
- '<img src="posit-logo-2024\.svg" class="slide-logo">'
28+
- 'img[src="posit-logo-2024.svg"][class="slide-logo"]'
2929
- []
3030
---
3131

tests/docs/smoke-all/brand/logo/override-logo-resource.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ logo:
1818
_quarto:
1919
tests:
2020
dashboard:
21-
ensureFileRegexMatches:
21+
ensureHtmlElements:
2222
-
23-
- '<img src="posit-logo-2024\.svg" alt="posit logo"'
23+
- 'img[src="posit-logo-2024.svg"][alt="posit logo"]'
2424
- []
2525
revealjs:
26-
ensureFileRegexMatches:
26+
ensureHtmlElements:
2727
-
28-
- '<img src="posit-logo-2024\.svg" class="slide-logo">'
28+
- 'img[src="posit-logo-2024.svg"][class="slide-logo"]'
2929
- []
3030
---
3131

0 commit comments

Comments
 (0)