Skip to content

Commit

Permalink
Wait for initial render
Browse files Browse the repository at this point in the history
  • Loading branch information
yj-soh committed Apr 8, 2016
1 parent 074d830 commit 6e2a200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app_server/public/src/test/tests/0_login.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ var apiAdmins = require('../api/admins');

casper.test.begin('Can login', 5, function (test) {
h.setUpCasper(casper, xhr).start(h.root(), function () {
this.waitForSelector('#container', function () {
test.assertUrlMatch(h.root('login'));
});
}).then(function () {
test.assertExists('#username');
test.assertExists('#password');
test.assertUrlMatch(h.root('login'));
}).then(function () {
xhr.fake(apiAdmins.login());
phantom.addCookie({
Expand Down

0 comments on commit 6e2a200

Please sign in to comment.