]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/oauth2_test.rb
Add website oauth app registration to system tests
[rails.git] / test / system / oauth2_test.rb
index ab4964052a00cdd0223299878b6799eb1986bb72..ed5ec1532921d0a4ff166f4438292b85f22a40db 100644 (file)
@@ -5,6 +5,12 @@ class Oauth2Test < ApplicationSystemTestCase
     sign_in_as(create(:user))
     visit oauth_authorized_applications_path
 
+    assert_text "OpenStreetMap Web Site"
+
+    accept_alert do
+      click_link "Revoke Access"
+    end
+
     assert_text "You have not yet authorized any OAuth 2 applications."
   end
 end