discourse/app/views
David Taylor 9667485951
DEV: Stop building test assets in production under Embroider (#23388)
Until now, we have allowed testing themes in production environments via `/theme-qunit`. This was made possible by hacking the ember-cli build so that it would create the `tests.js` bundle in production. However, this is fundamentally problematic because a number of test-specific things are still optimized out of the Ember build in production mode. It also makes asset compilation significantly slower, and makes it more difficult for us to update our build pipeline (e.g. to introduce Embroider).

This commit removes the ability to run qunit tests in production builds of the JS app when the Embdroider flag is enabled. If a production instance of Discourse exists exclusively for the development of themes (e.g. discourse.theme-creator.io) then they can add `EMBER_ENV: development` to their `app.yml` file. This will build the entire app in development mode, and has a significant performance impact. This must not be used for real production sites.

This commit also refactors many of the request specs into system specs. This means that the tests are guaranteed to have Ember assets built, and is also a better end-to-end test than simply checking for the presence of certain `<script>` tags in the HTML.
2023-09-11 09:12:37 +01:00
..
about
admin/backups
application
badges
categories UX: Include subcategories in crawler view (#21227) 2023-04-25 10:51:45 -04:00
common SECURITY: Don't reuse CSP nonce between anonymous requests 2023-07-28 12:53:44 +01:00
default
email FIX: Validate unsubscribe key has an associated user (#19262) 2022-11-30 14:29:07 -03:00
embed
exceptions
finish_installation FIX: Broken images on subfolder installs (#19404) 2022-12-09 11:24:12 -07:00
groups
invites FIX: broken emoji url on password reset w/ subfolder (#19373) 2022-12-09 10:01:43 -07:00
layouts PERF: Cache ToS and Privacy Policy paths (#21860) 2023-06-07 21:31:20 +03:00
list PERF: Avoid calling the same translation twice when rendering lists view (#22976) 2023-08-04 13:38:41 +08:00
metadata
offline
posts
published_pages
qunit DEV: Stop building test assets in production under Embroider (#23388) 2023-09-11 09:12:37 +01:00
robots_txt
safe_mode UX: Improve safe-mode usability (#17929) 2022-08-15 15:15:15 +01:00
search
session
sitemap
static DEV: add class for static login description section (#22002) 2023-06-08 19:51:41 +05:30
tags
topics FEATURE: add category name in articleSection meta tag for schema. (#21004) 2023-04-06 23:30:19 +05:30
user_api_keys
user_notifications FIX: Likes received count in digest email (#21458) 2023-05-09 19:19:26 +02:00
users FIX: Broken images on subfolder installs (#19404) 2022-12-09 11:24:12 -07:00
users_email UX: add btn-primary class on email confirm page (#19803) 2023-01-09 15:26:56 -05:00