Commit 7f2a830a authored by Sam Saccone's avatar Sam Saccone

tests: Wait until items are there before check

parent 2e4d3795
......@@ -288,6 +288,13 @@ module.exports.todoMVCTest = function (frameworkName, baseUrl, speedMode, laxMod
page.toggleItemAtIndex(1);
function stateTest() {
// wait until things are visible
browser.wait(function () {
return page.getVisibleLabelText().then(function (labels) {
return labels.length > 0;
});
}, 5000);
testOps.assertItems([TODO_ITEM_ONE, TODO_ITEM_TWO]);
testOps.assertItemAtIndexIsCompleted(1);
testOps.assertItemAtIndexIsNotCompleted(0);
......
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