lifegadget/ui-slider

Triggering events in acceptance tests

Opened this issue · 2 comments

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.

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

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