Commit 4464e459 authored by Einar Norðfjörð's avatar Einar Norðfjörð

added an error callback to the hidden check of the clear completed items...

added an error callback to the hidden check of the clear completed items button. This was done so that frameworks like mithril who remove elements from DOM in stead of putting css-classes like .hidden on elements get through the test suite
parent 6af87b86
......@@ -30,6 +30,8 @@ function TestOperations(page) {
this.assertClearCompleteButtonIsHidden = function () {
page.tryGetClearCompleteButton().then(function (element) {
testIsHidden(element, 'clear completed items button');
}, function (_error) {
assert(_error.code === 7, 'error accessing clear completed items button, error: ' + _error.message);
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment