ember.js - Where is my test helper for ember-power-select? -


i reading docs ember-power-select testings here.

on setup, says:

import registerpowerselecthelpers '../../tests/helpers/ember-power-select';  registerpowerselecthelpers(); ... 

i not see ember-power-select in tests/helpers/ directory. supposed install separately, or supposed come default?

i installed ember-power-select running command suggested: ember install ember-power-select.

how can use of power-select helpers selectchoose(), selectsearch(), &c. prescribed on docs?

if ember-cli explanation addons; there says "test-support/ - merged application’s tests/" , if @ source code of ember-power-select there helper directory under test-support directory. means when install ember-power-select; directory behaves merged application's tests directory. not matter whether see tests/helpers/ember-power-select.js under project. can access this. let's assume project named sample-project; can import relevant function follows:

import registerpowerselecthelpers 'sample-project/tests/helpers/ember-power-select'; 

from within acceptance-test , call before test begin registerpowerselecthelpers(); , able use selectchoose(), selectsearch() wish.

similarly can import integration test helpers follows:

import { typeinsearch, clicktrigger } 'sample-project/tests/helpers/ember-power-select' 

Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -