Document the opt-in browser tests (template #157)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 55/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- docker, github-actions, gitlab, php, playwright
调研方向
Start with the template's e2e/README.md and e2e/run.sh, then tests/fixtures.ts, to confirm the variable, job names, and env vars. Add the CWA_CI_E2E_ENABLED entry to content/6.deployment/4.variables.md, and cover the GitLab browser tests job, the GitHub browser-tests.yml workflow, and local runs in content/6.deployment/3.ci-cd.md. Done when those pages match the template and cover the fixtures, logIn(page), and GCLOUD_API_ENDPOINT.
由索引模型根据 Issue 内容生成。
描述
Template change in components-web-app 3fd2c01 / 8c36f8c (Unreleased, next release after 2.0.0-alpha.33).
New: opt-in Playwright browser tests that gate deploys (e2e/ in the template; the template's e2e/README.md has the details).
- CI variable:
CWA_CI_E2E_ENABLED("true"turns them on). It goes oncontent/6.deployment/4.variables.md, with the otherCWA_CI_*switches. - CI/CD page (
content/6.deployment/3.ci-cd.md):- GitLab's
browser testsjob, which review, staging, canary and production wait for; - GitHub's reusable
browser-tests.yml, called fromci.ymlandproduction.yml; - the report artifacts (14 days).
- GitLab's
- Local use: build the two prod images, then
E2E_PHP_IMAGE=… E2E_APP_IMAGE=… sh e2e/run.sh, withE2E_ARGSto run part of the suite andE2E_KEEP_STACK=trueto keep the stack. - Writing project tests:
- import from
tests/fixtures.ts, which fails a test on a 405, 406 or 415 API write; logIn(page);- one database, tests run one at a time;
- wait for saves to settle before publishing (cwa-nuxt-module#394).
- import from
- New optional php env:
GCLOUD_API_ENDPOINT, a Cloud Storage emulator endpoint used by the tests. Empty uses Google, as on every deploy.
- 主要语言
- Vue
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
components-web-app/docs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
components-web-app/docs#245 ·
-
难度 2/5 半天 新手友好度 68/100
components-web-app/docs#244 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
components-web-app/docs#243 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
components-web-app/docs#241 ·
-
documentation
难度 5/5 一周以上 新手友好度 15/100
components-web-app/docs#246 ·
查看 components-web-app/docs 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
devantler-tech/ksail#7836 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 76/100
SasanLabs/VulnerableApp#836 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
gke-labs/kube-agents#3394 ·
维护者通常 1 天内回复
-
area/CI area/CI/automation
难度 2/5 1-3 小时 新手友好度 74/100
Apicurio/apicurio-registry#10620 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
fluent/helm-charts#764 ·