Skip to content

Releases: cibernox/ember-native-dom-helpers

Scroll me tender

26 Apr 08:34
Compare
Choose a tag to compare

This version adds a new scrollTo(selectorOrElement, x, y) test helper to help you test scroll events, which are fired asynchronously in modern browsers.

Touch me baby

01 Mar 00:53
Compare
Choose a tag to compare

#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.

Find and Find All helpers

27 Feb 16:31
Compare
Choose a tag to compare

#18, #19 find and findAll helpers

Find returns `null` when result is empty

26 Feb 07:06
Compare
Choose a tag to compare

#15 - Improve check for presence by returning null for empty find result

Native find helper

23 Feb 17:33
Compare
Choose a tag to compare

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;