Commit Graph

246 Commits

Author SHA1 Message Date
4ad77f3382 DEV: Remove .es6 extensions from core (#14912)
Still supported in plugins though.
2021-11-13 12:51:53 +01:00
d162229758 DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
b44119cdb2 Update translations (#14579) 2021-10-12 16:00:22 +02:00
0f5d737a61 Update translations (#14513) 2021-10-05 15:59:26 +02:00
09764291b1 FIX: In test mode, initializers were modifying classes over and over
This adds a new property, `pluginId` which you can pass to `modifyClass`
which prevent the class from being modified over and over again.

This also includes a fix for polls which was leaking state between tests
which this new functionality exposed.
2021-09-02 11:22:01 -04:00
c995b20ca4 Update translations (#14063) 2021-08-24 15:25:44 +02:00
e951cb9aef Update translations (#13860) 2021-07-27 15:24:03 +02:00
28b5e6e47d Update translations (#13796) 2021-07-21 10:30:34 +02:00
5f7e60d9dc discourse/discourse change from 'master' to 'main' 2021-07-19 11:46:15 -04:00
53fe8b2e77 Update translations (#13647) 2021-07-13 20:30:09 +02:00
23930738a7 Update translations (#13565) 2021-06-29 16:02:02 +02:00
252dd169a4 Update translations (#13476) 2021-06-22 15:21:20 +02:00
77d33ebe21 FIX: Lots of plugin tests were using old, non-Ember compat CLI APIs (#13320) 2021-06-09 10:58:55 -04:00
21e8a33177 DEV: Clean up QUnit tests (#13328)
* DEV: Use `query` helper instead of `queryAll()[0]`
* DEV: Replace `queryAll().length` w/ `exists()`/`count()`
* DEV: Use `exists()` instead of `count() > 0`, `count() === 0`
* DEV: Use `count()`/`exists()` instead of `find().length`
2021-06-08 17:54:12 +02:00
e2e13a70f6 Update translations (#13136) 2021-05-25 15:29:11 +02:00
8ac184c636 Update translations (#13088) 2021-05-18 15:11:41 +02:00
21c301aa72 Update translations (#13030) 2021-05-11 19:01:59 +02:00
d45c7973f9 Update translations (#12940) 2021-05-04 16:34:37 +02:00
3b2f2b533f Update translations (#12851) 2021-04-27 16:01:06 +02:00
606860e75a Update translations (#12764) 2021-04-20 15:33:17 +02:00
27eff709c4 Update translations (#12684) 2021-04-13 16:02:08 +02:00
93f74add7d Update translations (#12614) 2021-04-07 11:58:41 +02:00
c672ee282a Improve details_enabled site setting description copy (#12560)
The `details_enabled` site setting description did not clearly convey what it controls.

The copy change was discussed here: https://meta.discourse.org/t/183923
2021-03-30 13:51:12 -07:00
c21cba70f6 Update translations (#12258) 2021-03-02 15:28:30 +01:00
45c5fd2172 DEV: Remove JoyPixels emoji option (#12197)
- removes the option from site settings
- deletes the site setting on existing sites that have it
- marks posts using emojis as requiring a rebake

Note that the actual image files are not removed here, the plan is to
remove them in a few weeks/months (when presumably the rebaking of old
posts has been completed).
2021-02-26 07:44:52 -05:00
f283bde25a Update translations (#12097) 2021-02-16 15:24:37 +01:00
a3c363c8f0 Update translations (#12065) 2021-02-12 13:18:05 +01:00
b3fa521bf4 Update translations (#12019) 2021-02-09 14:56:15 +01:00
0e8c155b70 Update translations (#11779) 2021-01-20 22:58:26 +01:00
09f9d4b281 Update translations (#11601) 2020-12-29 19:44:53 +01:00
e113ddc73c Update translations (#11557) 2020-12-22 14:49:40 +01:00
bbe5d8d5cf DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
7fecad41db Update translations (#11264) 2020-11-17 14:49:58 +01:00
9904a007c5 Update translations (#11182) 2020-11-10 15:23:06 +01:00
a17d54d0bf DEV: De-arrowify tests (#11068)
Using arrow functions changes `this` context, which is undesired in tests, e.g. it makes it impossible to setup things like pretender (`this.server`) in `beforeEach` hooks.

Ember guides always use classic functions in examples (e.g. https://guides.emberjs.com/release/testing/test-types/), and that's what it uses in its own test suite, as do various addons and ember apps.

It was also already used in Discourse where `this` was required. Moving forward, it will be needed in more places as we migrate toward ember-cli.

(I might later add a custom rule to eslint-discourse-ember to enforce this)
2020-10-30 17:37:32 +01:00
435a9913a4 REFACTOR: Replace global find with queryAll
In newer Embers jQuery is removed. There is a `find` but it only returns
one element and not a jQuery selector. This patch migrates our code to a
new helper `queryAll` which allows us to remove the global.
2020-10-29 14:45:51 -04:00
dbec3792b7 FIX: pretty text allow list (#10977)
Reword whitelist to allowlist in pretty-text.
This library is used by plugins so we need deprecation notice.
2020-10-28 13:22:06 +11:00
919f488358 REFACTOR: All remaining acceptance tests converted to new format
Also contains fixes to leaky state in pretender.
2020-10-23 09:28:13 -04:00
85894537b1 Update translations 2020-10-13 15:40:37 +02:00
71d37953d5 REFACTOR: Import QUnit and related helpers rather than globals
We used many global functions to handle tests when they should be
imported like other libraries in our application. This also gets us
closer to the way Ember CLI prefers our tests to be laid out.
2020-10-07 11:50:49 -04:00
23f24bfb51 REFACTOR: Move javascript tests inside discourse app
This is where they should be as far as ember is concerned. Note this is
a huge commit and we should be really careful everything continues to
work properly.
2020-10-02 11:29:36 -04:00
ecfca965f2 Update translations 2020-09-29 13:01:52 +00:00
6734a82260 Update translations 2020-09-16 10:17:56 +00:00
1c71f81144 Update translations 2020-09-09 14:59:40 +00:00
110f6ec6dd DEV: fixes eslint/prettier on github actions (#10601) 2020-09-04 20:01:14 +02:00
bf88410126 DEV: apply coding standards to plugins (#10594) 2020-09-04 13:51:53 +02:00
d495464ead Update translations 2020-08-25 13:02:37 +00:00
d0faee3bd8 Update translations 2020-08-18 13:02:44 +00:00
1a78a429b5 Update translations 2020-08-11 13:04:00 +00:00
a68533b394 Update translations 2020-08-05 13:55:12 +00:00