Skip to content

Commit

Permalink
tests: Add test for checkall toogle state tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Dec 3, 2015
1 parent 312a7c2 commit 471c700
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ module.exports.todoMVCTest = function (frameworkName, baseUrl, speedMode, laxMod
testOps.assertItemAtIndexIsCompleted(2);
});

test.it('should correctly update the complete all checked state', function () {
// manually check all items
page.toggleItemAtIndex(0);
page.toggleItemAtIndex(1);
page.toggleItemAtIndex(2);

// ensure checkall is in the correct state
testOps.assertCompleteAllIsChecked();
});

test.it('should allow me to clear the completion state of all items', function () {
page.clickMarkAllCompletedCheckBox();
page.clickMarkAllCompletedCheckBox();
Expand Down

0 comments on commit 471c700

Please sign in to comment.