onTest</code> deals with application setup and teardown.
The <code>test</code> function contains an example test.</p>
<p>Almost every test has a pattern of visiting a route, interacting with the page
(using the helpers), and checking for expected changes in the DOM.</p>
<p>For example:</p>
<div class="filename javascript"><div class="ribbon"></div><span>tests/acceptance/new-post-appears-first-test.js</span><pre class="language-javascript line-numbers"><code class="javascript language-javascript"><span class