Skip to main content

playwright-component-testing

Write, update, run, and debug Perseus's Playwright component tests: the `*.spec.ts` files that mount a Perseus question in a real browser. Use this skill whenever creating or changing a `*.spec.ts` file or a `*.story.tsx` story, using `renderQuestion()` from `testing/playwright`, adding a fixture to `@internal/playwright` (config/playwright), or when a Playwright test or the "Playwright" CI job fails. Also trigger when the user mentions Playwright, `pnpm pw`, browser tests, component tests, the story gallery, or "this needs a real browser". Do NOT trigger for Jest tests (`*.test.ts(x)`) or Storybook stories (`*.stories.tsx`).

معلومات المصدر

المستودع
Khan/perseus
آخر نشاط في المصدر
١٧ نوفمبر ٢٠٢٦ في ١٩:٢٢
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
١٬٦٠٠
التفرعات
٣٧٥

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
nameplaywright-component-testing
descriptionWrite, update, run, and debug Perseus's Playwright component tests: the `*.spec.ts` files that mount a Perseus question in a real browser. Use this skill whenever creating or changing a `*.spec.ts` file or a `*.story.tsx` story, using `renderQuestion()` from `testing/playwright`, adding a fixture to `@internal/playwright` (config/playwright), or when a Playwright test or the "Playwright" CI job fails. Also trigger when the user mentions Playwright, `pnpm pw`, browser tests, component tests, the story gallery, or "this needs a real browser". Do NOT trigger for Jest tests (`*.test.ts(x)`) or Storybook stories (`*.stories.tsx`).