cypresse2eapiinterceptskill

Create end-to-end tests using Cypress cy.intercept() to mock APIs and assert requests with cy.wait(). Combine Cypress Testing Library queries such as findByRole() and findByText() to select elements that meet accessibility criteria for assertions.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cypresse2eapiinterceptskill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8909709b8fbfcdd8ada50384a808562577bcfd42f922d82006722edc2fd3dd56. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/cypress-e2e-api-intercept-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Create end-to-end tests using Cypress cy.intercept() to mock APIs and assert requests with cy.wait(). Combine Cypress Testing Library queries such as findByRole() and findByText() to select elements that meet accessibility criteria for assertions.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "Cypress E2E API Intercept Skill"
slug: "cypress-e2e-api-intercept-skill"
version: "1.0.0"
displayName: "Cypress E2E API Intercept Skill"
summary: "使用 Cypress cy.intercept() 创建端到端测试用于 API 模拟,使用 cy.wait() 进行请求断言。使用 Cypress Testing Library 查询器,包括 findByRole() 和 findByText() 来选择可访问元素。"
license: "MIT"
description: "使用 Cypress cy.intercept() 创建端到端测试用于 API 模拟,使用 cy.wait() 进行请求断言。使用 Cypress Testing Library 查询器,包括 findByRole() 和 findByText() 来选择可访问元素。"
github_stars: 49617
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Browser Automation"
framework: "Codex"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 49617
  npm_package: "cypress"
  npm_weekly_downloads: 7268478

Cypress E2E API 拦截技能

使用 Cypress cy.intercept() 创建端到端测试用于 API 模拟,使用 cy.wait() 进行请求断言。使用 Cypress Testing Library 查询器,包括 findByRole() 和 findByText() 来选择可访问元素。

安装

使用与您的环境匹配的上游安装或设置路径:

  • npm install cypress --save-dev
  • yarn add cypress --dev
  • pnpm add cypress --save-dev

基本用法或入门说明:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 解决前端开发中E2E测试的常见痛点
  • 结合API拦截与可访问性测试,提升测试质量
Trigger Precision85/100

Areas to improve

  • 触发词覆盖不全 Reported severity: Minor

    description中缺少具体的Cypress API关键词如'cy.intercept'、'cy.wait'等变体,可能影响触发精准度

    Recommendation: 建议在description中增加具体的API方法名和常见使用场景关键词

Highlights

  • 核心功能描述清晰,用户能明确理解Skill用途
Structure and Standards70/100

Areas to improve

  • 缺少详细使用步骤和示例 Reported severity: Minor

    文档只有安装说明,缺少具体的Phase划分、端到端示例和When to Use章节

    Recommendation: 建议补充详细的操作步骤、代码示例和使用场景说明

  • 文档结构不完整 Reported severity: Minor

    缺少错误处理说明和最佳实践指导

    Recommendation: 建议增加常见错误处理方案和最佳实践建议

Highlights

  • frontmatter完整,基本信息齐全
  • 有基本的安装和使用说明
Execution Reliability80/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未提及网络错误、请求超时、API响应异常等常见场景的处理方案

    Recommendation: 建议补充异常处理机制和重试策略说明

Highlights

  • 工具来源明确,使用官方Cypress包
  • 安装命令正确,支持多种包管理器
Evidence Verifiability (mean of the first four)78/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 28
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.