Merge "Fix order of promises in login to not wrongfully congratulate on failing login"
diff --git a/t/plugin/auth-oauth.t b/t/plugin/auth-oauth.t
index f8ad55f..68fb8bd 100644
--- a/t/plugin/auth-oauth.t
+++ b/t/plugin/auth-oauth.t
@@ -119,6 +119,13 @@
->element_exists_not('aside.off')
;
+# Test for bug with long password
+$t->post_ok('/user/login' => form => {
+ handle_or_email => 'test',
+ pwd => 'kjskjhndkjndqknaskjnakjdnkjdankajdnkjdsankjdsakjdfkjahzroiuqzriudjoijdmlamdlkmdsalkmdl' })
+ ->status_is(302)
+ ->header_is('Location' => '/');
+
$t->post_ok('/user/login' => form => { handle_or_email => 'test', pwd => 'fail' })
->status_is(302)
->header_is('Location' => '/');