Agent Skills › HiEventsDev/Hi.Events › e2e-dev-stack

e2e-dev-stack

GitHub

指导在开发环境中使用 Playwright 运行端到端测试,验证未提交代码及用户流程。需配置环境变量、启动队列服务及特定依赖项(如 Stripe、Mailpit),确保测试环境就绪并执行 E2E 用例。

.agents/skills/e2e-dev-stack/SKILL.md HiEventsDev/Hi.Events

触发场景

需要运行端到端测试 验证用户交互流程 检查未提交代码的功能影响

安装

npx skills add HiEventsDev/Hi.Events --skill e2e-dev-stack -g -y
更多选项

非标准路径

npx skills add https://github.com/HiEventsDev/Hi.Events/tree/develop/.agents/skills/e2e-dev-stack -g -y

不安装直接使用

npx skills use HiEventsDev/Hi.Events@e2e-dev-stack

指定 Agent (Claude Code)

npx skills add HiEventsDev/Hi.Events --skill e2e-dev-stack -a claude-code -g -y

安装 repo 全部 skill

npx skills add HiEventsDev/Hi.Events --all -g -y

预览 repo 内 skill

npx skills add HiEventsDev/Hi.Events --list

SKILL.md

Frontmatter
{
    "name": "e2e-dev-stack",
    "description": "Run Playwright E2E specs against the running dev stack to test uncommitted changes. Use when adding or changing an E2E spec or verifying a user-facing flow end to end."
}

Run E2E specs against the dev stack

The hermetic e2e stack bakes source into images and docker compose up never rebuilds them, so test uncommitted changes against the dev stack. From e2e/:

E2E_BASE_URL=https://localhost:8443 MAILPIT_URL=http://localhost:8025 E2E_SAAS_MODE=true npx playwright test <spec>

Prerequisites

  • E2E_SAAS_MODE=true is required: the dev stack requires email verification, and the fixture only confirms through Mailpit in SaaS mode.
  • A queue worker must be running to deliver the verification emails: docker compose -f docker-compose.dev.yml exec -d backend php artisan queue:work.
  • Superadmin-dependent specs need a one-time php artisan dev:bootstrap --email=superadmin@e2e.test --password='SuperAdminPass123!'.
  • Seating and box office specs need APP_LICENCE_KEY=development in backend/.env.
  • @stripe specs need STRIPE_SECRET_KEY, the backend's STRIPE_WEBHOOK_SECRET and E2E_STRIPE_CONNECT_ACCOUNT_ID exported. Webhooks are handled by the queue worker, so poll for the result.

See "Against the running dev stack" in e2e/README.md for more.

版本历史

  • 439a48b 当前 2026-10-19 04:33

同 Skill 集合

.agents/skills/api-smoke-test/SKILL.md
.agents/skills/translations/SKILL.md
.claude/skills/api-smoke-test/SKILL.md
.claude/skills/e2e-dev-stack/SKILL.md
.claude/skills/translations/SKILL.md

元信息

文件数
0
版本
1def73a
Hash
a53e78f6
收录时间
2026-10-19 04:33

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-04 11:02
浙ICP备14020137号-1