1 # frozen_string_literal: true
3 require "application_system_test_case"
5 class Oauth2Test < ApplicationSystemTestCase
6 def test_authorized_applications
7 sign_in_as(create(:user))
8 visit oauth_authorized_applications_path
10 assert_text "OpenStreetMap Web Site"
13 click_on "Revoke Access"
16 assert_text "You have not yet authorized any OAuth 2 applications."