mardi 31 mars 2015

How to test if page loads?

How can I write test that checks if page loads without errors/exceptions? I tried visit, but this will pass. I know I could check if some root element exists but that will not catch errors generated after the root element is made.



test("pageloads", function (assert) {
assert.expect(0);
visit('/nonexistingpage').then(function () {
return true;
});
});




Aucun commentaire:

Enregistrer un commentaire