~/talk

How to make premium Golden tests

Talkat Flutter Vikings 2022 · 2022-08-31..09-01· [flutter, testing]
links:none on file
slides:none on file

Practical steps to make golden tests render like real devices using golden_toolkit: load fonts with a font loader to avoid square glyphs, pre-cache images, flip on debug painting values to get shadows and platform-specific rendering, and set the test window’s physical size and devicePixelRatio. Run tests as variants (example iPhone 13 and Pixel 5) or with device objects that include safe areas, notches and bezel overlays. Simulate an open keyboard by rendering a keyboard image with focus listener and stacking it above the app.

AI-written summary · about

  1. 0:00Introduction to golden tests
  2. 1:23Understanding golden files
  3. 2:55Enhancing visual accuracy
  4. 4:28Implementing adaptive tests
  5. 6:28Handling keyboard rendering
  6. 7:51Benefits 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.