Last active
January 23, 2016 13:30
-
-
Save pimterry/297a8a32f9b30d9a9958 to your computer and use it in GitHub Desktop.
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("Can open main page", function () { | |
return driver.get(extensionPage("main.html")).then(function () { | |
return driver.wait(sw.until.elementLocated({ | |
css: ".city > canvas" | |
}), 1000); | |
}).then(function (cityCanvas) { | |
return sw.promise.delayed(200).then(function () { | |
return cityCanvas; | |
}); | |
}).then(function (cityCanvas) { | |
return canvasContainsDrawnPixels(cityCanvas); | |
}).then(function (canvasContainsDrawnPixels) { | |
expect(canvasContainsDrawnPixels).to.equal(true, | |
"City canvas should have an image drawn on it"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment