From 6a731576c2443c9dced97eb3e8a136cc86698ec5 Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Wed, 15 Nov 2023 08:48:38 -0700 Subject: [PATCH] regression test --- tests/docs/smoke-all/2023/11/15/7516-b.qmd | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/docs/smoke-all/2023/11/15/7516-b.qmd diff --git a/tests/docs/smoke-all/2023/11/15/7516-b.qmd b/tests/docs/smoke-all/2023/11/15/7516-b.qmd new file mode 100644 index 0000000000..e9dbbc5af0 --- /dev/null +++ b/tests/docs/smoke-all/2023/11/15/7516-b.qmd @@ -0,0 +1,38 @@ +--- +format: + html: + lightbox: true +_quarto: + tests: + html: + ensureHtmlElements: + - + - ".quarto-figure-left>figure>div" + - ".quarto-figure-center>figure>p" + - ".quarto-figure-right>figure>p" +--- + +```{r} +#| fig-align: right +library(ggplot2) +ggplot(mtcars, aes(x = cyl, y = mpg)) + + geom_point() +``` + + +```{r} +#| fig-align: center +library(ggplot2) +ggplot(mtcars, aes(x = cyl, y = mpg)) + + geom_point() +``` + + +```{r} +#| label: fig-1 +#| fig-align: left +#| fig-cap: Hello this works. +library(ggplot2) +ggplot(mtcars, aes(x = cyl, y = mpg)) + + geom_point() +``` \ No newline at end of file