Skip to content

ci: add quality gate, track tests, add embed/share smoke tests - #48

Merged
caoergou merged 3 commits into
mainfrom
chore/ci-quality-gate
Jun 9, 2026
Merged

caoergou merged 3 commits into
mainfrom
chore/ci-quality-gate

Conversation

@caoergou

@caoergou caoergou commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Closes the project's biggest engineering gap: there was no CI quality gate, and the test files weren't even under version control (playwright.config.js / test-tour.spec.js were git-ignored, so CI had nothing to run).

Changes

  • Track test infra: stop git-ignoring playwright.config.js and test-tour.spec.js; widen testMatch to *.spec.js; make the config CI-aware (retries, no server reuse, longer webServer timeout).
  • Smoke tests for the AI-render layer (embed-share.spec.js): embed.html?text= renders an SVG, shows the zoom toolbar and brand back-link; the main app loads ?text= into editor + preview. These are the strategic differentiator paths.
  • CI workflow (ci.yml): on PRs to main and non-main pushes, runs type-check + build + Playwright e2e. deploy.yml still owns main deployment.
  • .gitignore: ignore ad-hoc dogfood screenshots and dogfood-output/.

Test plan

  • npm run type-check
  • npx playwright test ✅ — 12 passed (7 tour + 5 new smoke)

caoergou added 3 commits June 9, 2026 10:06
- Stop git-ignoring playwright.config.js and test-tour.spec.js so CI can
  run the existing e2e suite (previously local-only).
- Widen testMatch to *.spec.js and make the config CI-aware (retries,
  no server reuse, longer webServer timeout).
- Ignore ad-hoc dogfood screenshots and dogfood-output/.
Covers the AI-render-layer entry points: embed.html renders from ?text=,
shows the zoom toolbar and brand back-link, and the main app loads ?text=
into the editor and preview.
Runs on pull_request to main and pushes to non-main branches. Deploy.yml
still owns main deployment; this gate blocks regressions before merge.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mermzen with  Cloudflare Pages  Cloudflare Pages

Latest commit: c3548bb
Status: ✅  Deploy successful!
Preview URL: https://49fce484.mermzen.pages.dev
Branch Preview URL: https://chore-ci-quality-gate.mermzen.pages.dev

View logs

@caoergou
caoergou merged commit d81804f into main Jun 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant