Skip to content

Commit c6c7a3a

Browse files
committed
test - start storing test file requiring quarto serve
Like `server: shiny` example
1 parent e6c4efd commit c6c7a3a

File tree

3 files changed

+89
-1
lines changed

3 files changed

+89
-1
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: "Title"
3+
format: html
4+
server: shiny
5+
_quarto:
6+
playwright-test: serve/shiny-r/shiny-tabby-html.spec.ts
7+
---
8+
9+
```{r}
10+
#| context: server
11+
output$text1 <- renderText({
12+
"hi, it's tab 1"
13+
})
14+
output$text2 <- renderText({
15+
"hi, it's tab 2"
16+
})
17+
output$text3 <- renderText({
18+
"hi, it's tab 3"
19+
})
20+
```
21+
22+
## Slide
23+
24+
::: {.panel-tabset}
25+
26+
### tab1
27+
28+
```{r}
29+
textOutput("text1")
30+
```
31+
32+
### tab2
33+
34+
```{r}
35+
textOutput("text2")
36+
```
37+
38+
### tab3
39+
40+
```{r}
41+
textOutput("text3")
42+
```
43+
44+
:::
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: "Title"
3+
format: revealjs
4+
server: shiny
5+
_quarto:
6+
playwright-test: serve/shiny-r/shiny-tabby-reveal.spec.ts
7+
---
8+
9+
```{r}
10+
#| context: server
11+
output$text1 <- renderText({
12+
"hi, it's tab 1"
13+
})
14+
output$text2 <- renderText({
15+
"hi, it's tab 2"
16+
})
17+
output$text3 <- renderText({
18+
"hi, it's tab 3"
19+
})
20+
```
21+
22+
## Slide
23+
24+
::: {.panel-tabset}
25+
26+
### tab1
27+
28+
```{r}
29+
textOutput("text1")
30+
```
31+
32+
### tab2
33+
34+
```{r}
35+
textOutput("text2")
36+
```
37+
38+
### tab3
39+
40+
```{r}
41+
textOutput("text3")
42+
```
43+
44+
:::

tests/integration/playwright-tests.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function fullInit() {
2424
const globOutput = Deno.args.length
2525
? expandGlobSync(Deno.args[0])
2626
: expandGlobSync(
27-
"docs/playwright/**/*.qmd",
27+
"docs/playwright/!(serve|shiny)/**/*.qmd",
2828
);
2929

3030
setInitializer(fullInit);

0 commit comments

Comments
 (0)