Merge pull request #1624 from sebgie/test_fails

Fix login test failure
This commit is contained in:
Hannah Wolfe 2013-12-05 14:31:34 -08:00
commit 1b4b228ae4

View File

@ -1,4 +1,4 @@
/*globals casper, __utils__, url, user, falseUser */ /*globals casper, __utils__, url, newUser, user, falseUser */
CasperTest.begin('Ensure Session is Killed', 1, function suite(test) { CasperTest.begin('Ensure Session is Killed', 1, function suite(test) {
casper.thenOpen(url + 'logout/', function (response) { casper.thenOpen(url + 'logout/', function (response) {
@ -98,6 +98,9 @@ CasperTest.begin("Login limit is in place", 3, function suite(test) {
}, function onTimeout() { }, function onTimeout() {
test.assert(false, 'We did not trip the login limit.'); test.assert(false, 'We did not trip the login limit.');
}); });
// This test used login, add a wait to
// ensure future tests don't get tripped up by this.
casper.wait(2000);
}, true); }, true);
CasperTest.begin("Can login to Ghost", 4, function suite(test) { CasperTest.begin("Can login to Ghost", 4, function suite(test) {