element-web/test/components/views
Michael Telatynski 3c52ba0c92
Use Intl to localise dates and times (#11422)
* Use Intl to generate better internationalised date formats

* Get `Yesterday` and `Today` from Intl also

* Correct capitalisation blunder

* Fix formatTime include weekday

* Iterate

* Fix tests

* use jest setSystemTime

* Discard changes to cypress/e2e/settings/general-user-settings-tab.spec.ts

* Discard changes to res/css/_components.pcss

* Discard changes to res/css/views/elements/_LanguageDropdown.pcss

* Discard changes to src/components/views/elements/LanguageDropdown.tsx

* Add docs & tests for getDaysArray & getMonthsArray

* Discard changes to test/components/structures/__snapshots__/MatrixChat-test.tsx.snap

* Consolidate consts

* Improve testing & documentation

* Update snapshot

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Iterate

* Clarify comments

* Update src/DateUtils.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Specify hourCycle

* Discard changes to test/components/views/settings/devices/DeviceDetails-test.tsx

* Update comments

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-08-21 19:38:59 +00:00
..
audio_messages Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
auth Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
avatars Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
beacon Switch to importing most things from the main matrix-js-sdk export (#11406) 2023-08-15 15:00:17 +00:00
beta Apply prettier formatting 2022-12-12 12:24:14 +01:00
context_menus Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
dialogs Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
elements Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
emojipicker Fix regression in emoji picker order mangling after clearing filter (#10854) 2023-05-11 13:24:39 +00:00
location Switch to importing most things from the main matrix-js-sdk export (#11406) 2023-08-15 15:00:17 +00:00
messages Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
polls/pollHistory Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
right_panel Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
rooms Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
settings Polish & delabs Exploring public spaces feature (#11423) 2023-08-21 09:39:20 +00:00
spaces Polish & delabs Exploring public spaces feature (#11423) 2023-08-21 09:39:20 +00:00
toasts Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
user-onboarding Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
voip Move mediaDevices mock out of setupManualMocks (#11413) 2023-08-16 08:29:34 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
VerificationShowSas-test.tsx Load SAS Emoji translations from @matrix-org/spec (#11429) 2023-08-21 08:15:22 +00:00