This repository houses Playwright-based smoke tests that run on a 6-hour schedule to make sure CopilotKit demo apps remain live and functional.
# Install deps
npm install
# Install browsers once
npx playwright install --with-deps
# Run the full suite
npm testPlaywright HTML reports are saved to ./playwright-report.
- Duplicate an existing file in
tests/or createtests/<demo>.spec.ts. - Use Playwright's
testAPI—keep the test short (<30 s). - Commit and push—GitHub Actions will pick it up on the next scheduled run.
.github/workflows/scheduled-tests.ymlexecutes the suite every 6 hours and on manual trigger.- Failing runs surface in the Actions tab; the HTML report is uploaded as an artifact.
- (Optional) Slack notifications can be wired by adding a step after the tests.
- Slack alert on failure is baked into the workflow. Just add
SLACK_WEBHOOK_URL(Incoming Webhook) in repo secrets.