What We’ve Learned So Far

Are you still with me? I know a lot of this stuff can seem a little abstract and weird at first, but now that we’ve got some of the theory out of the way, we are in a good position because things are going to get very real shortly.

Here’s a quick recap of the important stuff from this chapter:

  • UI tests make for great end-to-end smoke tests.
  • We prefer tests written in code over record/playback scripts.
  • HTML is what we look for when we are making assertions in our tests.
  • CSS selectors are how we select page elements we want to grab.
  • Page elements are easier to grab when they are decorated with unique HTML IDs.

Now it’s time to put some of this theory into practice and see what it is like to add automated UI tests for a legacy ...

Get The Way of the Web Tester now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.