From 4a697d4247224d68c69751e4827f265dfdad8854 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 20 Jun 2025 15:42:48 +0300 Subject: [PATCH] Test OAuth2 application forms only inside page content --- test/controllers/oauth2_applications_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/oauth2_applications_controller_test.rb b/test/controllers/oauth2_applications_controller_test.rb index 1333fa000..c20f8eabf 100644 --- a/test/controllers/oauth2_applications_controller_test.rb +++ b/test/controllers/oauth2_applications_controller_test.rb @@ -74,7 +74,7 @@ class Oauth2ApplicationsControllerTest < ActionDispatch::IntegrationTest get new_oauth_application_path assert_response :success assert_template "oauth2_applications/new" - assert_select "form", 1 do + assert_select "#content form", 1 do assert_select "input#oauth2_application_name", 1 assert_select "textarea#oauth2_application_redirect_uri", 1 assert_select "input#oauth2_application_confidential", 1 @@ -183,7 +183,7 @@ class Oauth2ApplicationsControllerTest < ActionDispatch::IntegrationTest get edit_oauth_application_path(:id => client) assert_response :success assert_template "oauth2_applications/edit" - assert_select "form", 1 do + assert_select "#content form", 1 do assert_select "input#oauth2_application_name", 1 assert_select "textarea#oauth2_application_redirect_uri", 1 assert_select "input#oauth2_application_confidential", 1 -- 2.39.5