Skip to content

Commit

Permalink
regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Nov 15, 2023
1 parent dd9df3a commit 6a73157
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/docs/smoke-all/2023/11/15/7516-b.qmd
Original file line number Diff line number Diff line change
@@ -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()
```

0 comments on commit 6a73157

Please sign in to comment.