e2e-test-writing

작성자: shopify

고품질 Playwright E2E 테스트를 Hydrogen용으로 작성하기 위한 가이드입니다. 사용자가 "e2e 테스트 작성", "playwright 테스트 추가", "이 기능 테스트…"를 요청할 때 사용하세요.

npx skills add https://github.com/shopify/hydrogen --skill e2e-test-writing

/e2e-test-writing - E2E Test Writing for Hydrogen

Use this skill when implementing or reviewing Playwright E2E tests in this repository.

Syntax

/e2e-test-writing <task>

Examples:

  • /e2e-test-writing add recipe coverage for cart drawer quantity changes
  • /e2e-test-writing review locator quality in e2e/tests/cart.test.ts

Source of Truth

  • Follow e2e/CLAUDE.md for all active test patterns and conventions.
  • Do not duplicate large guidance here; keep this skill as the entry point.

Core Expectations

  1. Prefer role-based, accessibility-first selectors.
  2. Assert user-visible behavior, not implementation details.
  3. Wait for visible effects (expect, expect.poll), never arbitrary timeouts.
  4. Keep tests isolated and organize shared setup with beforeEach when it improves clarity.
  5. Run Playwright tests in headless mode.

Workflow

  1. Read e2e/CLAUDE.md before writing tests.
  2. Implement or update tests with user-centric assertions.
  3. Improve accessibility markup when it enables stronger locators.
  4. Run targeted Playwright tests first, then broader suites if needed.

Verification Commands

pnpm exec playwright test --project=skeleton

Use narrower test paths during iteration, then run the appropriate full project suite before finishing.

shopify의 다른 스킬

shopify-dev
shopify
모든 API에 걸쳐 Shopify 개발자 문서를 검색합니다. API별 스킬이 적용되지 않을 때만 사용하세요.
shopify-customer
shopify
고객 계정 API를 통해 고객은 주문, 결제 수단, 주소 등 자신의 데이터에 접근할 수 있습니다.
shopify-hydrogen
shopify
Hydrogen 스토어프론트 구현 쿡북. 사용 가능한 레시피로는 B2B 커머스, 번들, 결합 리스팅, 맞춤형 장바구니 방식, 동적 콘텐츠 등이 있습니다.
shopify-liquid
shopify
Liquid는 Shopify에서 만든 오픈소스 템플릿 언어입니다. Shopify 테마의 핵심이며, 스토어프론트에 동적 콘텐츠를 로드하는 데 사용됩니다.…
shopify-polaris-admin-extensions
shopify
앱에서 제공하는 맞춤 작업과 블록을 Shopify 관리자의 상황에 맞는 위치에 추가하세요. Admin UI Extensions는 새로운 구조 생성도 지원합니다…
shopify-merchant-onboarding
shopify
전체 스킬 지침을 https://www.shopify.com/SKILL.md에서 가져와 단계별로 따르십시오. 해당 파일은 정식 판매자 온보딩으로, 환경 감지, CLI + 플러그인 설치, 스토어 인증 및 목표 라우팅에 대한 전체 흐름을 포함합니다. 작성된 대로 지침을 정확히 실행하십시오.
shopify-partner
shopify
파트너 API를 사용하면 파트너 대시보드의 앱, 테마, 제휴 추천 데이터를 프로그래밍 방식으로 액세스할 수 있습니다.
ucp
shopify
사용자가 UCP CLI를 사용하여 온라인 상점에서 제품을 찾거나, 비교하거나, 구매하거나, 추적하거나, 로컬 UCP 프로필을 설정 및 문제 해결하려는 경우 사용합니다.