Fix order of promises in login to not wrongfully congratulate on failing login
Change-Id: Ia651f25c020158566c97e1f341b57a9f16e64e16
diff --git a/t/plugin/auth-oauth.t b/t/plugin/auth-oauth.t
index 802f9d2..f8ad55f 100644
--- a/t/plugin/auth-oauth.t
+++ b/t/plugin/auth-oauth.t
@@ -158,6 +158,7 @@
->text_is('div.notify-error', '2022: LDAP Authentication failed due to unknown user or password!')
->element_exists('input[name=handle_or_email][value=test]')
->element_exists_not('div.button.top a')
+ ->element_exists_not('div.notify-success')
->tx->res->dom->at('input[name=csrf_token]')->attr('value')
;