Test helpers for your integration tests that fire native events
This version adds a new scrollTo(selectorOrElement, x, y)
test helper to help you test scroll events, which are fired asynchronously in modern browsers.
#21 Added a tap
helper to simulate touch interactions.
Also added notes on the readme about how to configure testem to enable touch events in firefox and chrome.
#18, #19 find
and findAll
helpers
#15 - Improve check for presence by returning null
for empty find
result
Adds find
helper, which uses setting for rootElement, default is #ember-testing
. Returns either HTMLElement
or a NodeList
.
To use a different value from your config/environment module, add to tests/test-helper.js …
import settings from 'ember-native-dom-helpers/test-support/settings';
import config from '../config/environment';
const { APP: { rootElement } } = config;
settings.rootElement = rootElement || settings.rootElement;