~/talk

Let's Test Our CSS!

TalkinFrenchat Devoxx France 2024 · 2024-04-17..04-19· [css, testing]
slides:none on file

Shows how to test CSS and SCSS using concrete tools: unit-test a SASS function (choosing white or black text) with renderSync and assertions; run automated snapshot tests across SCSS components to detect cascade or variable regressions; use Playwright/Chromium headless to read getBoundingClientRect and getComputedStyle for layout and color checks, capture and diff image snapshots, and add a Node.js file-exists test for font files. All techniques are automated to catch real regressions before deployment.

AI-written summary · about

  1. 0:00Testing CSS
  2. 3:11Why test CSS
  3. 7:13Testing SCSS
  4. 11:56Snapshot testing
  5. 14:15Automate snapshots
  6. 17:01Check visual rendering
  7. 20:17Screenshot test
  8. 24:37Font checks
  9. 28:26Q&A
~/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.