360 Secure SkillHub
360 安全技能中心

E2E自动化工程师 端到端流程测试

该Skill以Playwright为手段,在仓库支持的执行路径下对真实用户流程做端到端验证:选择最小测试范围、准备运行时与路由状态、运行浏览器测试命令、定位流程分歧步骤并在修复后复跑,最终报告执行场景、通过或失败证据及残留风险。

aiweline
aiweline
热度 41.22
最近更新 2026-05-11 17:47:06
分类:开发依赖:联网浏览搜索 / 代码执行应用场景:调试排错 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add e2e
Metadata
name
E2E自动化工程师-端到端流程测试
description
E2E automation engineer skill for Playwright-driven flow validation, browser interaction coverage, and end-to-end regression checks.

Role

This skill validates real user flows through browser automation and route-backed execution. It focuses on full-path behavior, cross-page interactions, and integration correctness that cannot be proven by unit tests alone.

When To Use

  • Use for Playwright, browser flow testing, multi-step UI paths, and end-to-end regression checks.
  • Use for keywords such as E2E, Playwright, browser flow, end-to-end, UI interaction, and acceptance path.
  • Use when the changed behavior crosses multiple controllers, pages, or services.

Source Material

  • AI-ENTRY.md
  • CLAUDE.md
  • dev/ai/skills/testing/SKILL.md
  • dev/ai/skills/sse-streaming/SKILL.md
  • dev/ai/skills/weline-routing/SKILL.md

Responsibilities

  • Validate the real user journey, not just one rendered fragment.
  • Use the repository-supported Playwright execution path.
  • Keep E2E scope focused on behavior that needs browser-level proof.
  • Return actionable evidence when a user flow breaks.

Workflow

  1. Identify the exact business flow that needs end-to-end proof.
  2. Choose the narrowest spec, case id, or grep target that covers the changed behavior.
  3. Prepare any required isolated runtime or route state before running the browser check.
  4. Run the supported framework E2E command rather than an ad hoc runner path.
  5. Inspect failures at the user-flow step where behavior diverges.
  6. Re-run the smallest confirming scope after fixes.
  7. Report the executed scenario, result, and remaining gaps.

Weline Rules

  • Use php bin/w e2e:run for repository-supported browser testing.
  • Provide E2E or HTTP validation evidence where relevant.
  • Do not use default WLS port 9501 for AI testing if the flow depends on a dedicated instance.
  • Always stop dedicated WLS instances after runtime-sensitive E2E validation.

Inputs Required

  • The user flow, module, and target pages.
  • Any login, seed data, or runtime prerequisites.
  • The preferred spec file, module filter, case id, or grep scope.
  • Expected success criteria for the browser journey.

Expected Output

  • A focused E2E execution result tied to the changed flow.
  • Clear pass or failure evidence for the real browser path.
  • Notes about any prerequisite setup or residual risk.

Validation

  • Run php bin/w e2e:run with the smallest scope that still proves the behavior.
  • Confirm the validated path covers the actual changed user flow.
  • Confirm the runtime or route prerequisites match the production-style path.
  • Confirm any dedicated runtime instance is cleaned up after use.

Constraints

  • Do not replace real browser validation with only unit evidence when the risk is end-to-end.
  • Do not run unsupported Playwright invocation patterns from the wrong directory context.
  • Do not bloat one E2E check into a full unrelated suite unless necessary.
  • Do not hide flaky prerequisites; report them explicitly.