karma runner - Angularjs e2e testing past/future comparisons -


i'm trying figure out if there way simple future/past comparison ex.

1) check state of list getting list length 2) perform action if success increments list 3) compare current list length past.

but concepts of futures seems in way. 1 think pretty normal use case.

q: how go handling past/future comparisons in angularjs scenario?

it's kind of longwinded, can define custom matchers understand futures. example:

angular.scenario.matcher('tobegreaterthanfuture', function(future) {   return +this.actual > +future.value; }); 

use like:

listlengthbefore = repeater('.td').count(); // stuff. listlengthafter = repeater('.td').count(); expect(listlengthafter).tobegreaterthanfuture(listlengthbefore); 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -