From 043e0dcad71fb6465236bf525394b7868384e6f2 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Sat, 13 Nov 2021 15:31:55 +0100 Subject: [PATCH] DEV: Don't try to load admin locales in tests (#14917) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It always fails with: ``` Failed to load resource: the server responded with a status of 403 (Forbidden), url: http://localhost:60099/extra-locales/admin?v=[…] ``` --- app/views/qunit/index.html.erb | 1 - app/views/qunit/theme.html.erb | 1 - spec/requests/qunit_controller_spec.rb | 1 - 3 files changed, 3 deletions(-) diff --git a/app/views/qunit/index.html.erb b/app/views/qunit/index.html.erb index 00c92302e02..830e3d8bb50 100644 --- a/app/views/qunit/index.html.erb +++ b/app/views/qunit/index.html.erb @@ -9,7 +9,6 @@ <%= preload_script "discourse/tests/core_plugins_tests" %> <%= preload_script "discourse/tests/test_starter" %> <%= csrf_meta_tags %> - diff --git a/app/views/qunit/theme.html.erb b/app/views/qunit/theme.html.erb index 412dcb8c0d1..53752cc9a29 100644 --- a/app/views/qunit/theme.html.erb +++ b/app/views/qunit/theme.html.erb @@ -21,7 +21,6 @@ <%= theme_js_lookup %> <%= theme_lookup("head_tag") %> <%= theme_tests %> - <%= preload_script_url ExtraLocalesController.url('admin') %> <%= tag.meta id: 'data-discourse-setup', data: client_side_setup_data %> diff --git a/spec/requests/qunit_controller_spec.rb b/spec/requests/qunit_controller_spec.rb index aa7773127e1..bf06a012a85 100644 --- a/spec/requests/qunit_controller_spec.rb +++ b/spec/requests/qunit_controller_spec.rb @@ -108,7 +108,6 @@ describe QunitController do expect(response.body).to match(/\/theme-javascripts\/\h{40}\.js/) expect(response.body).to include("/theme-javascripts/tests/#{theme.id}-") expect(response.body).to include("/assets/discourse/tests/test_starter.js") - expect(response.body).to include("/extra-locales/admin") end end end