diff --git a/tests/docs/smoke-all/2024/10/16/8012.qmd b/tests/docs/smoke-all/2024/10/16/8012.qmd new file mode 100644 index 00000000000..fe2f201dce5 --- /dev/null +++ b/tests/docs/smoke-all/2024/10/16/8012.qmd @@ -0,0 +1,27 @@ +--- +format: revealjs +_quarto: + tests: + revealjs: + ensureHtmlElements: + - ['section:nth-child(2)#python-slide > h2'] + - ['section#title-slide', 'section#title-slide > h1.title'] + ensureFileRegexMatches: + - ['Custom title[\s\S]+Python slide'] + - ['Python slide[\s\S]+Custom title'] +engine: jupyter +--- + +## + +Custom title slide desired here with custom content and no slide title + +There should be no title slide in this presentation, and Python slide should be after this slide. + +rendering through ipynb shouldn't promote title in a way that it messes the slide order. + +## Python slide {#python-slide} + +```{python} +print(2+2) +``` diff --git a/tests/new-smoke-all-test.ps1 b/tests/new-smoke-all-test.ps1 index 493b9c8fb07..7ccdd35a084 100644 --- a/tests/new-smoke-all-test.ps1 +++ b/tests/new-smoke-all-test.ps1 @@ -33,6 +33,13 @@ _quarto: ensureFileRegexMatches: - [] - [] + revealjs: + ensureHtmlElements: + - [] + - [] + ensureFileRegexMatches: + - [] + - [] latex: ensureFileRegexMatches: - [] diff --git a/tests/new-smoke-all-test.sh b/tests/new-smoke-all-test.sh index cb00edb2506..de48aa1ad09 100755 --- a/tests/new-smoke-all-test.sh +++ b/tests/new-smoke-all-test.sh @@ -31,6 +31,13 @@ _quarto: ensureFileRegexMatches: - [] - [] + revealjs: + ensureHtmlElements: + - [] + - [] + ensureFileRegexMatches: + - [] + - [] latex: ensureFileRegexMatches: - []