Skip to content

Native find helper

Compare
Choose a tag to compare
@pixelhandler pixelhandler released this 23 Feb 17:33
· 216 commits to master since this release

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;