Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add a principle for choosing the test layer

未关闭
#23 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
57/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
playwright, react, typescript
领域
testing-qa

调研方向

Read the Verification group in the go-mode principle index, the tdd skill, and the Feature playbook to find how principles are organized and referenced. Check the current Playwright Test Agents command against Playwright documentation. Done when the new principle is indexed, linked from both skills, documented in go-help and the README, and passes the named authoring validation and build.

由索引模型根据 Issue 内容生成。

描述

ready-for-agent

Parent

#15

What to build

An agent that has to test a change knows which layer to test it at. A new principle says to test at the lowest layer where the bug can actually occur: unit tests for pure logic, component tests for component behavior, and one real end-to-end test for anything that crosses the browser-server line. The principle names auth, sessions, routing, and redirects as browser-server concerns, so a login flow gets one end-to-end test of the main path instead of only mocked form tests. It also says when each layer runs: sub-second checks continuously, targeted checks on every meaningful edit, slow suites before declaring done, and CI-only suites left to CI.

To generate a new end-to-end suite, the principle points to Playwright Test Agents instead of having the agent write the suite by hand.

Acceptance criteria

  • The new principle skill exists and is listed in the Verification group of the go-mode principle index.
  • The tdd skill and the Feature playbook point to it.
  • Asked how to test a React login flow, an agent following gstack proposes one real end-to-end test of the main path.
  • The Playwright Test Agents command matches current Playwright docs.
  • The principle has a go-help row and a README line.
  • The skill passes the authoring-a-skill validation and the build.

The principle's name is left to the build.

主要语言
TypeScript
星标
0
派生
0
平均合并
3 小时 33 分钟
30 天内合并 PR
13

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

gregogun/gstack 的其他 Issue

查看 gregogun/gstack 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。