Skip to main content

testing-ui

UI testing with Playwright and Puppeteer -- browser automation, visual regression, screenshots, and accessibility audits.

소스 정보

저장소
ThinkfleetAI/thinkfleet-engine
최근 소스 활동
2026년 2월 1일 16:21
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
testing-ui
description
UI testing with Playwright and Puppeteer -- browser automation, visual regression, screenshots, and accessibility audits.
metadata
{"thinkfleetbot":{"emoji":"🎭","requires":{"bins":"[Truncated]"}}}
# UI Testing Browser-based UI testing with Playwright, Puppeteer, Cypress, and accessibility tools. ## Install Playwright ```bash # Install Playwright and browsers npm init playwright@latest npx playwright install --with-deps # Install specific browser only npx playwright install chromium ``` ## Run Playwright tests ```bash # Run all tests npx playwright test # Run specific test file npx playwright test tests/login.spec.ts # Run in headed mode (visible browser) npx playwright test --headed # Run in specific browser npx playwright test --project=chromium npx playwright test --project=firefox npx playwright test --project=webkit # Run with debug inspector npx playwright test --debug ``` ## Generate tests from URL ```bash # Open codegen to record interactions npx playwright codegen https://example.com # Save generated test to a file npx playwright codegen --output tests/generated.spec.ts https://example.com # Codegen with specific viewport npx playwright codegen --viewport-size=1280,720 https://example.com ``` ## Screenshot page ```bash # Take a screenshot of a URL npx playwright screenshot --full-page https://example.com screenshot.png # Screenshot with specific viewport npx playwright screenshot --viewport-size=1280,720 https://example.com screenshot.png ``` ## Visual regression ```bash # Run Playwright tests with snapshot comparison npx playwright test --update-snapshots # Compare screenshots (expects toHaveScreenshot in tests) npx playwright test tests/visual.spec.ts # Show visual diff report npx playwright show-report ``` ## Run Cypress tests ```bash # Open Cypress interactive runner npx cypress open # Run Cypress headless npx cypress run # Run specific spec npx cypress run --spec cypress/e2e/login.cy.ts # Run in specific browser npx cypress run --browser chrome ``` ## Accessibility audit with axe-core ```bash # Install axe-core CLI npm install -g @axe-core/cli # Run accessibility audit on a URL npx @axe-core/cli https://example.com # Audit with specific rules npx @axe-core/cli https://example.com --rules wcag2a,wcag2aa # Playwright + axe-core (requires @axe-core/playwright) npx playwright test tests/accessibility.spec.ts ```
GitHub에서 보기