lifegadget / ui-slider

A visually attractive slider for ambitious Ember apps
https://ui-slider.firebaseapp.com/
MIT License
30 stars 39 forks source link

Triggering events in acceptance tests #15

Open mattmcginnis opened 8 years ago

mattmcginnis commented 8 years ago

Anyone have luck with writing acceptance tests for the slider? I've tried things like the following but with no luck.

  Ember.$(selector).slider('setValue', [250000, 28000], true, true);
// or
  triggerEvent(Ember.$(selector).slider(), 'slideStart', [250000, 280000]);
// or
  triggerEvent(Ember.$(selector).slider(), 'change', [50000, 300000], [250000, 280000]);

Unfortunately, the component's computed properties don't update.

yankeeinlondon commented 7 years ago

Sorry but I haven't done nearly enough with acceptance tests to help.

Dominicbarretto commented 5 years ago

were u able to solve this? if yes can u share some test examples