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);