RepositoryJavaScriptUSHoa Kỳ
percy

percy/percy-puppeteer

Visual testing with Puppeteer and Percy

49sao
16fork
0issue
3lượt xem

🧪 Visual testing tự động với Puppeteer + Percy

Tích hợp Percy vào Puppeteer để tự động kiểm tra thay đổi giao diện người dùng.

@percy/puppeteer là SDK giúp thực hiện visual testing bằng cách chụp ảnh màn hình trang web sau khi Puppeteer tải trang, sau đó gử lên Percy để so sánh với bản tham chiếu. Phát hiện thay đổi giao diện ngay trong pipeline CI/CD.

✨ Điểm nổi bật

  • Cài đặt nhanh: Chỉ cần npm install @percy/cli @percy/puppeteer
  • Tích hợp Puppeteer: Dùng percySnapshot(page, name) trong mã nguồn Puppeteer
  • Tự động build: Chạy cùng percy exec để tạo build và upload snapshot
  • Cấu hình linh hoạt: Hỗ trợ tùy chọn per-snapshot qua options
  • Công cụ chuyển đổi: Hỗ trợ migrate tự động với @percy/migrate

💡 Vì sao đáng chú ý

Khác với kiểm tra thủ công, dự án tự động hóa toàn bộ quy trình: từ mở trang, chụp ảnh, so sánh đến báo cáo thay đổi. Phù hợp cho dự án cần duy trì độ ổn định giao diện trên mọi thay đổi mã nguồn.


#VisualTesting #Puppeteer #Percy #JavaScript #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
percy/percy-cypress

Visual testing with Cypress and Percy

352
Nov 30, 2026
RepositoryJavaScript
percy/percy-storybook

Percy's Storybook SDK.

156
Nov 30, 2026
RepositoryJavaScript
percy/cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.

86
Nov 20, 2026
RepositoryJavaScript
percy/percy-ember

Ember addon for visual regression testing with Percy

72
Nov 17, 2026
RepositoryTypeScript
reg-viz/storycap

A Storybook Addon, Save the screenshot image of your stories :camera: via puppeteer.

757
Nov 30, 2026
RepositoryShell
Visual-Regression-Tracker/Visual-Regression-Tracker

Backend and Frontend application for tracking differences via image comparison

726
Nov 13, 2026
RepositoryJavaScript
checkly/headless-recorder

Chrome extension that records your browser interactions and generates a Playwright or Puppeteer script.

15.3k
Dec 16, 2022
RepositoryJavaScript
harlan-zw/unlighthouse

Run Google Lighthouse on your entire site.

5.0k
Nov 24, 2026
RepositoryJavaScript
danburzo/percollate

A command-line tool to turn web pages into readable PDF, EPUB, HTML, or Markdown docs.

4.7k
Aug 29, 2025