@cyborgtests/test

中文文档
0.3.0发布于 2026/04/02MITTypeScriptESM + CJS近 30 天下载 1.5万

Powerfull extension for Playwright, that allows you to include manual verification steps in your automated test flow

原始使用文档
文档目录6 节
  1. 🤖 Demo
  2. 🚀 Installation
  3. 🧪 Usage
  4. ⚠️ Soft Fail for Manual Steps
  5. 📊 Analytics Configuration
  6. 🤝 Contributing

Cyborg Test

Cyborg Test is Playwright extension that lets you combine automated checks with human input in the same test case.

When a manual step is hit, a separate window appears showing the step description that needs to be executed, so a tester can mark it as passed or failed.

Demo 2
Manual Step Demo

Demo 1
Test Builder Demo

🤖 Demo

See full tutorial on how Cyborg Test turns manual steps into streamlined Playwright tests:

Watch on YouTube

See how Cyborg Test turns manual steps into streamlined Playwright tests: YouTube - 🤖 Introducing CyborgTests - Stop Wrestling with Partially Automatable Tests!

🚀 Installation

npm install @cyborgtests/test

This library expects @playwright/test to be available in your project as peer dependency.

🧪 Usage

import test from '@cyborgtests/test';

// Regular Playwright test syntax with additional `manualStep` helper
// that pauses execution until the tester confirms the step.
test('example with manual step', async ({ page, manualStep }) => {
  await page.goto('https://example.com');

  await manualStep('Verify the login screen is displayed correctly');

  // continue with the rest of your automated script
});

When manualStep is called the test pauses and the Cyborg Test UI window appears. Use the ✅ Step passed or ❌ Step failed buttons to resume the test. Failing a step throws an error so your CI can detect it.

⚠️ Soft Fail for Manual Steps

You can use manualStep.soft to mark a manual step as a soft fail. If a soft manual step fails, the test will continue running, and the failure will be annotated as a soft fail (warning) in the report.

Usage:

await manualStep('This is a hard manual step'); // Test fails if this step fails
await manualStep.soft('This is a soft manual step'); // Test continues if this step fails, and a warning is shown
  • Soft fails are shown as warnings in the UI and annotated in the test report.
  • Use soft fails for non-critical manual verifications where you want to highlight issues but not fail the entire test.

📊 Analytics Configuration

Google Analytics is enabled by default to help us understand usage. The following data is collected:

  • Unique user ID (generated on first run)
  • Test execution events (start of the test)
  • Test results (passed/failed)
  • External link clicks
  • Browser, OS information and country

This data helps us understand how the tool is being used and improve it. We do not collect any personal or sensitive information.

To turn off analytics, use the following configuration:

import { config } from '@cyborgtests/test';

config.setConfig({
  analyticsEnabled: false
});

🤝 Contributing

We welcome contributions! If you'd like to report a bug, request a feature, or submit a pull request, check out our contributing guidelines.


⭐️ Found this useful? Star the repo to support the project!

版本与发布记录

@cyborgtests/test 共发布 9 个版本,首次发布于 2025/05/20;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.3.0latest2026/04/027 个月前
0.2.32026/03/157 个月前
0.2.02025/10/221.1 年前
0.1.02025/07/301.3 年前
0.0.72025/06/121.4 年前
0.0.62025/06/101.4 年前

关于 @cyborgtests/test 的常见问题

@cyborgtests/test 是什么?

Powerfull extension for Playwright, that allows you to include manual verification steps in your automated test flow

如何安装 @cyborgtests/test?

在项目目录运行 npm install @cyborgtests/test,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@playwright/test(^1.54.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@cyborgtests/test 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cyborgtests/test 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@cyborgtests/test 可以商用吗?

@cyborgtests/test 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cyborgtests/test 的下载量有多少?

根据 npm 官方下载统计,@cyborgtests/test 在 2026/10/11 – 2026/11/09 这 30 天内被下载 15,471 次,日均约 516 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cyborgtests/test 还在维护吗?

最新版本 0.3.0 发布于 2026/04/02(7 个月前);至今共发布 9 个版本,其中过去 12 个月发布了 2 个;首次发布于 2025/05/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。