~/talk

Better Test Selectors Leveraging the Complete Ember Toolbelt

Talkat EmberCamp London 2017 · 2017-07-11..07-12· [ember, testing]
slides:none on file

An addon called ember-test-selectors provides attribute-based selectors that auto-binds to component root so templates can use data-test- without manual attributeBindings; it removes those attributes for production by injecting a Babel plugin and an HTMLBars AST transform that strips from production. The addon installs with no config, keeps tests stable across styling changes, and works today; Glimmer apps are not supported yet and require additional adapter work.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:54Problem with test selectors
  3. 3:25Initial flawed approaches
  4. 7:51Data attributes solution
  5. 9:55Ember test selectors add-on
  6. 13:31How the add-on works
  7. 14:17Internal implementation details
  8. 24:13Glimmer component support
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.