用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/G1Joshi/Agent-Skills --skill cypress命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | cypress |
| description | Cypress end-to-end testing for web apps. Use for E2E testing. |
Cypress is a next generation front end testing tool built for the modern web. It runs inside the browser (unlike Selenium/Playwright) which gives it native access to the DOM.
describe("My First Test", () => {
it("Visits the Kitchen Sink", () => {
cy.visit("https://example.cypress.io");
cy.contains("type").click();
cy.url().should("include", "/commands/actions");
cy.get(".action-email")
.type("fake@email.com")
.should("have.value", "fake@email.com");
});
});
Cypress commands run serially. cy.get().click().should() reads like a story.
Cypress automatically retries assertions until they pass or timeout.
cy.get('.todo-list li').should('have.length', 2) will retry until the list has 2 items or 4 seconds elapse.
Because it runs in-browser, intercepting network requests (cy.intercept) is fast and reliable.
Do:
cy.intercept: Wait for network calls to finish before asserting UI. cy.wait('@apiCall').cy.login().data-cy="submit-btn" allows you to change CSS/JS without breaking tests.Don't:
wait(number): Never hard-code waits. Wait for routes or elements.