Skip to content

Commit c8478df

Browse files
authored
Merge pull request #11079 from quarto-dev/tests/revealjs/ipynb-no-title
2 parents 1dc93a9 + a99fa11 commit c8478df

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
format: revealjs
3+
_quarto:
4+
tests:
5+
revealjs:
6+
ensureHtmlElements:
7+
- ['section:nth-child(2)#python-slide > h2']
8+
- ['section#title-slide', 'section#title-slide > h1.title']
9+
ensureFileRegexMatches:
10+
- ['Custom title[\s\S]+Python slide']
11+
- ['Python slide[\s\S]+Custom title']
12+
engine: jupyter
13+
---
14+
15+
##
16+
17+
Custom title slide desired here with custom content and no slide title
18+
19+
There should be no title slide in this presentation, and Python slide should be after this slide.
20+
21+
rendering through ipynb shouldn't promote title in a way that it messes the slide order.
22+
23+
## Python slide {#python-slide}
24+
25+
```{python}
26+
print(2+2)
27+
```

tests/new-smoke-all-test.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ _quarto:
3333
ensureFileRegexMatches:
3434
- []
3535
- []
36+
revealjs:
37+
ensureHtmlElements:
38+
- []
39+
- []
40+
ensureFileRegexMatches:
41+
- []
42+
- []
3643
latex:
3744
ensureFileRegexMatches:
3845
- []

tests/new-smoke-all-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ _quarto:
3131
ensureFileRegexMatches:
3232
- []
3333
- []
34+
revealjs:
35+
ensureHtmlElements:
36+
- []
37+
- []
38+
ensureFileRegexMatches:
39+
- []
40+
- []
3441
latex:
3542
ensureFileRegexMatches:
3643
- []

0 commit comments

Comments
 (0)