~/talk

End to End Testing for Browser Extensions

Talkat XtremeJS 2024 · 2024-11-12..11-13· [testing]
slides:none on file

A demo browser extension injects a ping/pong button onto google.com via a content script and uses a service worker to reply to messages; tests load the unpacked extension with CRX JS and run in Playwright (and comparably in Cypress where popups are limited). Automated end-to-end runs execute headless across browsers, nine tests pass, and changing the UI text intentionally fails then passes on rerun, proving reproducible flows and low flakiness. The claim is that Playwright can test extension popups while Cypress cannot, and the demo extension and tests work as shown.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45Browser extension
  3. 3:14Manifest V3 structure
  4. 6:51Frontend and backend
  5. 8:40End-to-end testing
  6. 10:48E2E testing frameworks
  7. 11:51Writing first E2E tests
  8. 13:55Testing extensions E2E
  9. 15:40Live E2E demo
  10. 19:30Resources and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.