From 9f53c08044e16154103ddd64b536327c998d0c72 Mon Sep 17 00:00:00 2001
From: Brian Barnes <brian.barnes@totaralms.com>
Date: Fri, 27 Jun 2014 12:09:43 +1200
Subject: [PATCH] auth fail

---
 auth/tests/behat/behat_auth.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/auth/tests/behat/behat_auth.php b/auth/tests/behat/behat_auth.php
index e5a21ec..97f9225 100644
--- a/auth/tests/behat/behat_auth.php
+++ b/auth/tests/behat/behat_auth.php
@@ -58,7 +58,8 @@ class behat_auth extends behat_base {
             new Given('I click on "' . get_string('login') . '" "link" in the ".logininfo" "css_element"'),
             new Given('I set the field "' . get_string('username') . '" to "' . $this->escape($username) . '"'),
             new Given('I set the field "' . get_string('password') . '" to "'. $this->escape($username) . '"'),
-            new Given('I press "' . get_string('login') . '"')
+            new Given('I press "' . get_string('login') . '"'),
+            new Given('I should not see "' . get_string('invalidlogin') . '"')
         );
 
         // If Javascript is disabled we have enough with these steps.
-- 
1.8.3.2

