Change 'die' to 'fail' in frontend tests

refs #4491
This commit is contained in:
Jannis Moßhammer 2013-08-27 16:29:56 +02:00
parent 51d9f8eaa7
commit 86f76a61bc

View File

@ -99,10 +99,10 @@ casper.then(function() {
this.waitForSelector('div.alert.alert-success', function() { this.waitForSelector('div.alert.alert-success', function() {
this.test.assertExists('div.alert.alert-success', 'Assert a success message to exist'); this.test.assertExists('div.alert.alert-success', 'Assert a success message to exist');
}, function() { }, function() {
this.die("Success message for authentication provider tests didn't pop up"); this.test.fail("Success message for authentication provider tests didn't pop up");
}); });
}, function() { }, function() {
this.die('No submit button found when expected the "Edit this authentication provider" form'); this.test.fail('No submit button found when expected the "Edit this authentication provider" form');
}); });
}); });
@ -118,7 +118,7 @@ casper.thenOpen('/config/logging', function() {
this.waitForSelector('div.alert.alert-success', function() { this.waitForSelector('div.alert.alert-success', function() {
this.test.assertExists('div.alert.alert-success', 'Assert a success message to exist'); this.test.assertExists('div.alert.alert-success', 'Assert a success message to exist');
}, function() { }, function() {
this.die('No success message popped up when saving logging configuration'); this.test.fail('No success message popped up when saving logging configuration');
}); });
this.echo("Submitting authentication form2"); this.echo("Submitting authentication form2");