RepositoryHTML
DM

dmtrKovalenko/cypress-real-events

Fire native system events from Cypress.

840sao
73fork
21issue
5lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: e2e

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: native-events

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: pupeteer

#1 Repository của tuần

🔌 Cypress Real Events – Bắn sự kiện hệ thống thật từ Cypress

Plugin này giúp Cypress gửi các sự kiện thật từ hệ điều hành thông qua Chrome DevTools Protocol, khơi phục hành vi tương tự như Puppeteer.

Cypress thường giả lập sự kiện bằng JavaScript, dẫn đến event.isTrusted === false và hành vi khác biệt so với người dùng thật. Điều này gây khó khăn khi kiểm thử các tính năng như clipboard, alert... cypress-real-events giải quyết vấn đề này bằng cách sử dụng kết nối CDP mà Cypress đã dùng để chụm ảnh hay thay đổi viewport.

✨ Điểm nổi bật

  • realClick: thực hiện click chuột thật tại vị trí chính xác hoặc theo tọa độ.
  • realHover: kiểm tra hiệu ứng :hover bằng sự kiện di chuyển chuột thật.
  • realType: gửi sự kiện nhấn phím thật, hỗ trợ kiểm thử form nhạy cảm.
  • realPress: hỗ trợ gõ từng phím hoặc tổ hợp phím như Shift+Ctrl+M.
  • realMouseDown / realMouseUp / realMouseMove: điều khiển chuột thật để kiểm thử kéo thả, vẽ...
  • realSwipe: hỗ trợ cử chỉ vuốt trên thiết bị cảm ứng.
  • realMouseWheel: kiểm thử cuộn chuột thật.
  • Hỗ trợ Tab navigation thật: quản lý focus bằng phím Tab như người dùng thật.

💡 Vì sao đáng chú ý

Khác với các sự kiện giả lập mặc định của Cypress, plugin này dùng Chrome DevTools Protocol để gửi sự kiện thật đến trình duyệt Chromium, tương tự như Puppeteer. Điều này giúp kiểm thử các tính năng nhạy cảm như clipboard, alert, hoặc bàn phím ảo. Tuy nhiên, chỉ hỗ trợ trình duyệt Chromium-based; Firefox chưa được hỗ trợ.


#Cypress #Testing #E2E #ChromeDevToolsProtocol #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.

RepositoryHTML
shakacode/cypress-playwright-on-rails

Use Cypress or Playwright with Rails scenarios, factories, fixtures, app commands, and clean test data.

456
Nov 17, 2026
RepositoryGo
chromedp/chromedp

Drive Chrome from Go over the Chrome DevTools Protocol: browser automation, web scraping, testing, screenshots and PDFs. No Node, Selenium or WebDriver.

13.4k
Nov 30, 2026
RepositoryTypeScript
ChainSafe/dappeteer

[DEPRECATED]🏌🏼‍E2E testing for dApps using Puppeteer + MetaMask

477
Apr 12, 2024
RepositoryTypeScript
jscutlery/devkit

Cutleries to help you cook better apps.

268
Nov 30, 2026
RepositoryPython
browser-use/browser-use

Browser Use: open source browser agent infrastructure

122.6k
Dec 2, 2026
RepositoryHTML
autoscrape-labs/pydoll

Pydoll is a library for automating chromium-based browsers without a WebDriver, offering realistic interactions.

7.2k
Nov 8, 2026
RepositoryHTML
cypress-io/cypress-example-kitchensink

This is an example app used to showcase Cypress.io testing.

1.2k
Nov 19, 2026
RepositoryHTML
diegosouzapw/OmniAntigravityRemoteChat

📱 Control your Antigravity AI sessions from your phone — real-time chat mirroring, multi-window management, and model switching via CDP

246
May 23, 2026
RepositoryHTML
wlsf82/cypress-do-zero-a-nuvem

Repositório do curso "Cypress, do Zero à Nuvem" da Escola Talking About Testing.

192
Jul 13, 2024