element-web/test
Milton Moura 76b7aa2d33
Keep device language when it has been previosuly set, after a successful delegated authentication flow that clears localStorage (#11902)
* Do not remove the language when clearing local storage

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Revised comment on getting the defined language from settings

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Explicitly checking for language set at the device level

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Add test that checks if device language setting is kept after a successfull delegated authentication flow

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Adds test for unhappy path and adjusts to use the SettingsStore instead of going directly to localStorage

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Removing unnecessary variable after test refactor

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

---------

Signed-off-by: Milton Moura <miltonmoura@gmail.com>
2023-11-24 15:51:28 +00:00
..
@types
__snapshots__ Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
accessibility
actions/handlers
audio
autocomplete
components Keep device language when it has been previosuly set, after a successful delegated authentication flow that clears localStorage (#11902) 2023-11-24 15:51:28 +00:00
contexts
dispatcher
editor Deserialise spoilers back into slash command form (#11805) 2023-10-26 13:35:02 +00:00
events
hooks
i18n
images
img
models Fix misunderstanding of functional members (#11918) 2023-11-22 12:08:16 +00:00
modules
notifications
settings Default to system emoji font (#11925) 2023-11-23 13:04:05 +00:00
setup
stores Allow adding extra icons to the room header (#11799) 2023-11-01 12:03:10 +00:00
test-utils Allow adding extra icons to the room header (#11799) 2023-11-01 12:03:10 +00:00
toasts Add ringing for matrixRTC (#11870) 2023-11-21 17:12:08 +00:00
utils Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
voice-broadcast
widgets
Avatar-test.ts
ContentMessages-test.ts
DecryptionFailureTracker-test.js
DeviceListener-test.ts
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
LegacyCallHandler-test.ts
Lifecycle-test.ts OIDC: revoke tokens on logout (#11718) 2023-10-15 21:35:25 +00:00
Markdown-test.ts
MatrixClientPeg-test.ts
MediaDeviceHandler-test.ts
Notifier-test.ts Add ringing for matrixRTC (#11870) 2023-11-21 17:12:08 +00:00
PosthogAnalytics-test.ts Report crypto sdk in posthog (#11834) 2023-11-13 14:16:12 +00:00
PreferredRoomVersions-test.ts
Reply-test.ts
RoomNotifs-test.ts
Rooms-test.ts
ScalarAuthClient-test.ts
SdkConfig-test.ts
SlashCommands-test.tsx Disable upgraderoom command without developer mode enabled (#11744) 2023-10-13 09:48:32 +00:00
SlidingSyncManager-test.ts
Terms-test.tsx
TestSdkContext.ts
TextForEvent-test.ts
Unread-test.ts
UserActivity-test.ts
WorkerManager-test.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00
createRoom-test.ts Add ringing for matrixRTC (#11870) 2023-11-21 17:12:08 +00:00
email-test.ts
globalSetup.ts
languageHandler-test.tsx
linkify-matrix-test.ts
predictableRandom.ts
setupTests.ts
slowReporter.js
theme-test.ts
useTopic-test.tsx