Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计提醒

e2e-testing-experte2e 测试专家

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

364

周安装

15

GitHub Stars

9

下载量

119
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:e2e-testing-expert(e2e 测试专家)
来源仓库:https://github.com/yuniorglez/gemini-elite-core
仓库路径:skills/e2e-testing-expert
安装命令:
npx skills add https://github.com/yuniorglez/gemini-elite-core --skill e2e-testing-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yuniorglez/gemini-elite-core --skill e2e-testing-expert

简介

资深端到端测试架构师,专精 Playwright 编排与可视化回归测试。

  • 提供高并发 CI/CD 分片测试与深度追踪调试能力。
  • 集成 Page Object Model 与自动化无障碍审计(Axe-core)。
  • 需同步测试环境与种子数据,确保每次运行条件一致。
  • e2e-testing-expert 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

🧪 Skill: e2e-testing-expert (v1.0.0)

Executive Summary

Senior End-to-End (E2E) Test Architect for 2026. Specialized in Playwright orchestration, visual regression testing, and high-performance CI/CD sharding. Expert in building resilient, auto-waiting test suites using the Page Object Model (POM), automated accessibility auditing (Axe-core), and deep-trace forensic debugging.


📋 The Conductor's Protocol

  1. Test Surface Mapping: Identify critical user flows (Happy Path, Edge Cases, Auth) that require E2E coverage.
  2. Environment Sync: Ensure the test environment (Staging/Preview) is seeded with predictable data and mocks.
  3. Sequential Activation: activate_skill(name="e2e-testing-expert")activate_skill(name="github-actions-pro")activate_skill(name="ui-ux-pro").
  4. Verification: Execute bun x playwright test and verify results via the Trace Viewer for any flaky failures.

🛠️ Mandatory Protocols (2026 Standards)

1. User-Visible Locators First

As of 2026, CSS/XPath selectors are considered legacy and fragile.

  • Rule: Always use getByRole, getByText, or getByLabel.
  • Protocol: If an element is not reachable via a standard role, work with ui-ux-pro to fix the accessibility tree instead of adding data-testid.

2. Page Object Model (POM) Architecture

  • Rule: Never write raw locators in test files.
  • Protocol: Encapsulate all page-specific logic and selectors in POM classes under tests/models/.

3. Visual Regression & Masking

  • Rule: Use expect(page).toHaveScreenshot() for critical UI components.
  • Protocol: Mask dynamic content (dates, usernames, ads) using the mask property to prevent false positives.

4. Forensic Debugging (Tracing)

  • Rule: Never debug via screenshots/videos in CI. Use Playwright Traces.
  • Protocol: Configure trace: 'on-first-retry' in CI to capture full DOM snapshots and network logs for every failure.

5. Continuous Accessibility (Axe-core)

  • Rule: Every E2E test must include an accessibility audit.
  • Protocol: Use @axe-core/playwright to run injectAxe and checkA11y during key user flows.

🚀 Show, Don't Just Tell (Implementation Patterns)

Page Object Model (POM) Example

tests/models/LoginPage.ts:

import { Page, Locator, expect } from "@playwright/test";

export class LoginPage {
  readonly page: Page;
  readonly emailInput: Locator;
  readonly passwordInput: Locator;
  readonly loginButton: Locator;

  constructor(page: Page) {
    this.page = page;
    this.emailInput = page.getByLabel("Email address");
    this.passwordInput = page.getByLabel("Password");
    this.loginButton = page.getByRole("button", { name: "Sign in" });
  }

  async goto() {
    await this.page.goto("/auth/login");
  }

  async login(email: string, pass: string) {
    await this.emailInput.fill(email);
    await this.passwordInput.fill(pass);
    await this.loginButton.click();
  }
}

Visual Testing & Accessibility

test("homepage looks correct and is accessible", async ({ page }) => {
  await page.goto("/");

  // 1. Accessibility Check
  await injectAxe(page);
  await checkA11y(page);

  // 2. Visual Regression
  await expect(page).toHaveScreenshot("homepage.png", {
    mask: [page.getByTestId("current-date")],
    maxDiffPixels: 100
  });
});

🛡️ The Do Not List (Anti-Patterns)

  1. DO NOT use page.waitForTimeout(). Use web-first assertions like expect().toBeVisible().
  2. DO NOT test 3rd party APIs (Stripe, Auth0) directly. Use page.route() to mock them.
  3. DO NOT share state between tests. Use a fresh BrowserContext for every test.
  4. DO NOT run all tests in one job. Use Playwright Sharding (--shard=1/3) for large suites.
  5. DO NOT ignore console errors or warnings during tests. Fail the test if unexpected errors occur.

📂 Progressive Disclosure (Deep Dives)


🛠️ Specialized Tools & Scripts

  • scripts/analyze-traces.sh: A wrapper to open the Trace Viewer for the latest CI failures.
  • scripts/generate-pom.ts: Scaffolds a POM class based on a URL's accessibility tree.

🎓 Learning Resources


*Updated: January 23, 2026 - 20:50*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.17%
按下载量换算39

Claude

31.05%
按下载量换算37

Cursor

19.09%
按下载量换算23

Gemini CLI

9.93%
按下载量换算12

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills