Created
January 16, 2015 13:04
-
-
Save benheymink/d0a692e8c138ef995f82 to your computer and use it in GitHub Desktop.
Broken Test spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('Should display the right number of elements on the page', function(){ | |
// myExpectedObjects is an array of items i'm expecting to be | |
// drawn on the page | |
var elementMissing = false; | |
_.forEach(object in myExpectedObjects, function(myObject){ | |
if(!element(by.id(myObject.id)).isPresent()){ | |
elementMissing = true; | |
} | |
}); | |
expect(elementMissing).toBeFalsy(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment