Add website oauth app registration to system tests

This commit is contained in:
Anton Khorev 2023-12-25 19:07:00 +03:00
parent f73b7205f4
commit f0b24cdc84
3 changed files with 29 additions and 4 deletions

View 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