Skip to content

Offers Ember test helpers for complex interactions, using DOM events generated with simulant.js

License

Notifications You must be signed in to change notification settings

yapplabs/ember-simulant-test-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ember-simulant-test-helpers

Offers Ember test helpers for complex interactions, using DOM events generated with simulant.js.

Installation

ember install ember-simulant-test-helpers

Usage

import { find } from '@ember/test-helpers';
import { panX } from 'ember-simulant-test-hlpers';

// ...

test('swipe back', async function(assert) {
  await this.render();
  await panX(find('.my-swipe-aware-thingy'), {
    position: [50, 100],
    amount: 150,
    duration: 200,
  });
});

Contributing

Installation

  • git clone <repository-url>
  • cd ember-simulant-test-helpers
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

About

Offers Ember test helpers for complex interactions, using DOM events generated with simulant.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •