✨ feat: add video tour functionality with helpers, configuration, and homepage walkthrough
This commit is contained in:
10
AGENTS.md
10
AGENTS.md
@@ -44,6 +44,16 @@ Tibi CMS starter template — Svelte 5 SPA with esbuild, SSR via goja, and Playw
|
||||
- After code changes, run only affected spec files: `npx playwright test tests/e2e/filename.spec.ts`.
|
||||
- Write unit tests for new functionality and ensure existing tests pass.
|
||||
|
||||
## Video tours
|
||||
|
||||
- Video tours are Playwright-based screen recordings (not tests) in `video-tours/`.
|
||||
- Run all tours (desktop): `yarn tour`
|
||||
- Run all tours (mobile): `yarn tour:mobile`
|
||||
- Videos are saved to `video-tours/output/` (git-ignored).
|
||||
- Tour files use `.tour.ts` suffix in `video-tours/tours/`.
|
||||
- Helpers: `injectVisibleCursor()`, `moveThenClick()`, `moveThenType()`, `smoothScroll()` in `video-tours/helpers.ts`.
|
||||
- Fixtures provide a `tourPage` with visible cursor overlay via `video-tours/tours/fixtures.ts`.
|
||||
|
||||
## API access
|
||||
|
||||
- API access to collections uses the reverse proxy: `CODING_URL/api/<collection>` (e.g. `CODING_URL/api/content`).
|
||||
|
||||
Reference in New Issue
Block a user