~/talk

Testing with Component Harnesses for the Win

Talkat Reliable Web Summit 2021 · 2021-08-26..08-27· [angular, testing]
slides:none on file

Claim: component harnesses provide a stable, high‑level API that works for unit and end‑to‑end tests so tests stop leaking DOM selectors. The talk shows a working harness pattern implemented in Angular Material CDK and reused across Cypress, Protractor and Jasmine testbeds, with a test reduced to four lines of code. The harness loader selects components by type, exposes typed methods, insulates tests from DOM changes, and the examples run successfully both in isolated fixtures and in the browser.

AI-written summary · about

  1. 0:00Start
  2. 3:55End-to-end tests validate the behavior the application from the end-user perspective
  3. 5:30Performance tests validate the speed and responsiveness of the application
  4. 12:14Page Object Models are widely used for end-to-end testing with Selenium, Webdriver, Protractor, etc.
  5. 16:41Having a clear, typed Component Harness enables Intellisense / auto-complete in your IDE of choice
  6. 17:43Component Harness tests are easier to write, easier to read, easier to maintain
  7. 19:59Component Harnesses can be used in different contexts (end-to-end tests, unit tests) with one single syntax, or
~/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.