DEV: Don't try to load admin locales in tests (#14917)

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=[…]
```
This commit is contained in:
Jarek Radosz 2021-11-13 15:31:55 +01:00 committed by GitHub
parent 906a71a607
commit 043e0dcad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 3 deletions

View File

@ -9,7 +9,6 @@
<%= preload_script "discourse/tests/core_plugins_tests" %>
<%= preload_script "discourse/tests/test_starter" %>
<%= csrf_meta_tags %>
<script src="<%= ExtraLocalesController.url('admin') %>"></script>
<meta property="og:title" content="">
<meta property="og:url" content="">
</head>

View File

@ -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 %>
<meta property="og:title" content="">
<meta property="og:url" content="">

View File

@ -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