Writing a Custom Test Helper

In this lesson, you’ll learn how to create a custom test helper and get some tips for faster debugging in Ember applications.

Custom test helper for band creation

Wouldn’t it be cool if we could express the necessary steps taken in our tests in the application’s language? What if instead of saying, “go here, click this, then fill out that,” we could say “create a band with this name”?

If you weren’t sure, these were rhetorical questions. We can do this in Ember.js quite easily, so let’s do it for the creation of a band.

Let’s open a new file for our custom test helpers:

Get hands-on with 1200+ tech skills courses.