w-api-test

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Test endpoints through the public interface using this repo's API or Playwright harness. Do not hit production. Do not hardcode secrets.
  1. Read the API testing MDX and existing
    *.test.ts
    or e2e specs.
  2. Cover the requested operations, authz denials, and contract-shaped responses.
  3. Use sandbox or local servers from package scripts. Clean up created resources.
  4. Run the documented API or e2e command for those tests.
  5. Docs:
    /w-docs
    if behavior or commands changed.
通过公共接口,使用本仓库的 API 或 Playwright 测试工具测试各个端点。不要访问生产环境。不要硬编码密钥。
  1. 阅读 API 测试 MDX 以及现有的
    *.test.ts
    或 e2e 测试规范。
  2. 覆盖所请求的操作、授权拒绝以及符合契约结构的响应。
  3. 使用 package scripts 中的沙箱或本地服务器。清理已创建的资源。
  4. 为这些测试运行文档中指定的 API 或 e2e 命令。
  5. 文档:如果行为或命令发生变化,请更新
    /w-docs
    。