Skip to content

Commit 2ccec61

Browse files
committed
Add revealjs slides to Connect Cloud manual test fixtures
Follow-up to #14041. Adds a minimal revealjs presentation fixture and includes it as Test 3 in the manual testing protocol, covering reveal.js asset bundling verification. Confirmed working: `quarto publish posit-connect-cloud` successfully publishes revealjs slides with all assets intact.
1 parent 7ba701c commit 2ccec61

3 files changed

Lines changed: 83 additions & 25 deletions

File tree

tests/docs/manual/publish-connect-cloud/README.md

Lines changed: 48 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,29 @@ Verify re-publish works without re-authorization.
9898

9999
---
100100

101-
## Test 3: Publish a Website
101+
## Test 3: Publish RevealJS Slides
102+
103+
Verify single-document revealjs publishing works (reveal.js assets bundled correctly).
104+
105+
**Run:**
106+
107+
```bash
108+
./package/dist/bin/quarto.cmd publish posit-connect-cloud tests/docs/manual/publish-connect-cloud/revealjs-slides/slides.qmd
109+
```
110+
111+
**Check in browser:**
112+
113+
- [ ] Slides load with reveal.js navigation (arrow keys, progress bar)
114+
- [ ] Slide 3 has aquamarine background color
115+
- [ ] Slide 4 has syntax-highlighted Python code block
116+
- [ ] No broken assets (check browser console for 404s)
117+
- [ ] All reveal.js transitions and controls functional
118+
119+
**Record:** Content ID: ___ | URL: ___
120+
121+
---
122+
123+
## Test 4: Publish a Website
102124

103125
Verify multi-page site publishing.
104126

@@ -121,14 +143,14 @@ Verify multi-page site publishing.
121143

122144
---
123145

124-
## Test 4: Update Existing Content
146+
## Test 5: Update Existing Content
125147

126148
Verify re-publishing updates content in-place.
127149

128150
**Setup:** Edit `simple-website/index.qmd` — add a line:
129151

130152
```markdown
131-
This content was updated for Test 4.
153+
This content was updated for Test 5.
132154
```
133155

134156
**Run:**
@@ -139,7 +161,7 @@ This content was updated for Test 4.
139161

140162
**Check:**
141163

142-
- [ ] URL is same as Test 3
164+
- [ ] URL is same as Test 4
143165
- [ ] Hard-refresh (Ctrl+F5) shows updated text
144166
- [ ] About page still works
145167
- [ ] No duplicate content created on dashboard
@@ -152,7 +174,7 @@ git checkout tests/docs/manual/publish-connect-cloud/simple-website/index.qmd
152174

153175
---
154176

155-
## Test 5: Account Management
177+
## Test 6: Account Management
156178

157179
Verify accounts listing and removal.
158180

@@ -178,7 +200,7 @@ Verify accounts listing and removal.
178200

179201
---
180202

181-
## Test 6: CI/CD Mode (Environment Token)
203+
## Test 7: CI/CD Mode (Environment Token)
182204

183205
Verify non-interactive publishing with environment variables.
184206

@@ -214,7 +236,7 @@ Remove stored accounts via `quarto publish accounts` so only env var token is us
214236
- [ ] Publish succeeds
215237
- [ ] No ghost token persisted (run `quarto publish accounts` after — should show no posit-connect-cloud accounts)
216238

217-
### 6b: Multiple Accounts Without ACCOUNT_ID (--no-prompt)
239+
### 7b: Multiple Accounts Without ACCOUNT_ID (--no-prompt)
218240

219241
If the access token has access to multiple publishable accounts:
220242

@@ -240,7 +262,7 @@ Re-authorize interactively for remaining tests.
240262

241263
---
242264

243-
## Test 7: Provider Selection (Interactive)
265+
## Test 8: Provider Selection (Interactive)
244266

245267
Verify posit-connect-cloud appears in the interactive provider menu.
246268

@@ -261,7 +283,7 @@ Verify posit-connect-cloud appears in the interactive provider menu.
261283

262284
---
263285

264-
## Test 8: posit-cloud Deprecation Warning
286+
## Test 9: posit-cloud Deprecation Warning
265287

266288
Verify the old provider name shows a helpful warning.
267289

@@ -281,9 +303,9 @@ Verify the old provider name shows a helpful warning.
281303

282304
---
283305

284-
## Test 9: Error Cases
306+
## Test 10: Error Cases
285307

286-
### 9a: Invalid Token
308+
### 10a: Invalid Token
287309

288310
```bash
289311
export POSIT_CONNECT_CLOUD_ACCESS_TOKEN="invalid_garbage_token"
@@ -297,7 +319,7 @@ export POSIT_CONNECT_CLOUD_ACCESS_TOKEN="invalid_garbage_token"
297319
unset POSIT_CONNECT_CLOUD_ACCESS_TOKEN
298320
```
299321

300-
### 9b: Deleted Content
322+
### 10b: Deleted Content
301323

302324
1. Publish the single doc (or use existing from Test 1)
303325
2. Delete the content from the Connect Cloud dashboard
@@ -313,7 +335,7 @@ unset POSIT_CONNECT_CLOUD_ACCESS_TOKEN
313335
- [ ] Publishes successfully with new content ID
314336
- [ ] Old stale entry remains in `_publish.yml` (not cleaned up — known limitation)
315337

316-
### 9c: --no-render Flag
338+
### 10c: --no-render Flag
317339

318340
```bash
319341
./package/dist/bin/quarto.cmd publish posit-connect-cloud tests/docs/manual/publish-connect-cloud/single-doc/document.qmd --no-render
@@ -326,7 +348,7 @@ unset POSIT_CONNECT_CLOUD_ACCESS_TOKEN
326348

327349
---
328350

329-
## Test 10: Token Refresh
351+
## Test 11: Token Refresh
330352

331353
Access tokens expire after some time. To test proactive refresh:
332354

@@ -351,17 +373,18 @@ Access tokens expire after some time. To test proactive refresh:
351373
|---|------|--------|-------|
352374
| 1 | First-time authorization | | |
353375
| 2 | Token persistence | | |
354-
| 3 | Publish website | | |
355-
| 4 | Update existing content | | |
356-
| 5 | Account management | | |
357-
| 6 | CI/CD mode | | |
358-
| 6b | Multiple accounts without ACCOUNT_ID | | |
359-
| 7 | Provider selection | | |
360-
| 8 | posit-cloud deprecation | | |
361-
| 9a | Invalid token error | | |
362-
| 9b | Deleted content | | |
363-
| 9c | --no-render flag | | |
364-
| 10 | Token refresh | | |
376+
| 3 | Publish revealjs slides | | |
377+
| 4 | Publish website | | |
378+
| 5 | Update existing content | | |
379+
| 6 | Account management | | |
380+
| 7 | CI/CD mode | | |
381+
| 7b | Multiple accounts without ACCOUNT_ID | | |
382+
| 8 | Provider selection | | |
383+
| 9 | posit-cloud deprecation | | |
384+
| 10a | Invalid token error | | |
385+
| 10b | Deleted content | | |
386+
| 10c | --no-render flag | | |
387+
| 11 | Token refresh | | |
365388

366389
## Post-Testing Cleanup
367390

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.quarto/
2+
_publish.yml
3+
slides.html
4+
slides_files/
5+
*_files/
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Connect Cloud RevealJS Test"
3+
format: revealjs
4+
---
5+
6+
## Slide 1
7+
8+
This is a minimal RevealJS presentation for testing publishing to Posit Connect Cloud.
9+
10+
## Slide 2
11+
12+
- Bullet point one
13+
- Bullet point two
14+
- Bullet point three
15+
16+
## Slide 3 {background-color="aquamarine"}
17+
18+
### Custom background
19+
20+
Testing that reveal.js assets are bundled correctly.
21+
22+
## Slide 4
23+
24+
```python
25+
import pandas as pd
26+
df = pd.DataFrame({"x": [1, 2, 3]})
27+
print(df)
28+
```
29+
30+
Code highlighting should work after publish.

0 commit comments

Comments
 (0)