Skip to content

Instantly share code, notes, and snippets.

View mfountoulakis's full-sized avatar
🐩

Manos Fountoulakis mfountoulakis

🐩
  • Providence
View GitHub Profile
@mfountoulakis
mfountoulakis / tests_acceptance_foo-test.js
Created December 2, 2016 20:41 — forked from code0100fun/tests_acceptance_foo-test.js
Ember CLI QUnit text content helpers
// tests/acceptance/foo-test.js
// Assert that text should be found
assert.hasText('Not Found'); // Error: Could not find text "Not Found" on the page
// Provide custom message
assert.hasText('Not Found', 'Expected to find "Not Found"'); // Error: Expected to find "Not Found"
// Find any number of elements containing the query text
text('Found'); // [<div>Found</div>, <input value="Found">]