diff --git a/test/login_logout/test/behave/features/login.feature b/test/login_logout/test/behave/features/login.feature
index e1dfe08d1f14a45746c1d72af9637ce95a37dec9..156c338a7bc4ca63ce754a3c84f25bee7152241a 100644
--- a/test/login_logout/test/behave/features/login.feature
+++ b/test/login_logout/test/behave/features/login.feature
@@ -17,4 +17,5 @@ Scenario: Login with a valid user with access to application
     And I click on the button "input#submit"
     Then I wait on element "input#password" for 1000ms to not exist
     And I expect that element "input#username" does not exist
-    And I expect that element "body" contains any text
+    And I expect that the path is "/callback"
+    And I expect that element "body" contains the text "access_token"