~/talk

Intro to Client-Side Testing

Talkat DjangoCon US 2015 · 2015-09-06..09-11· [testing, web-platform]
slides:none on file

A minimal single‑page app with drag‑and‑drop file uploads backed by a REST API using JSON web tokens is built and mostly works; end‑to‑end Selenium integration tests run in PhantomJS to log in, fill forms, wait for DOM changes and assert visibility. Isolated client logic gets QUnit unit tests for Backbone models and views with patched collection calls to fake API behavior. Tests run slowly (setup once per class) and leave a few 404 paths uncovered.

AI-written summary · about

  1. 0:00Intro
  2. 0:43Goal
  3. 1:25Project Overview
  4. 2:11Guest Login
  5. 3:47Selenium Setup
  6. 4:40Selenium Test
  7. 5:11Forms
  8. 8:24Selenium assertions
  9. 9:30JavaScript testing
  10. 10:46Why Qunit
  11. 12:03Setting up Qunit
  12. 13:06Qunit Test
  13. 14:17Setup and Teardown
  14. 16:49Bonus
  15. 17:51Drag and Drop
  16. 18:58Queue Unit Tests
  17. 19:31selenium
  18. 20:14unit tests
  19. 21:15Resources
~/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.