element-web/test/components/views/settings
David Baker 3342aa5ff8
Refactor some logic into common AvatarSetting component (#12544)
* Refactor some logic into common AvatarSetting component

We duplicated some of the logic of setting avatars between profiles &
rooms. This pulls some of that logic into the AvatarSetting component
and hopefully make things a little simpler.

* Unsed import

* Convert JS based hover to CSS

* Remove unnecessary container

* Test avatar-as-file path

* Test file upload

* Unused imports

* Add test for RoomProfileSettings

* Test removing room avatar

* Move upload control CSS too

* Remove commented code

Co-authored-by: Florian Duros <florianduros@element.io>

* Prettier

* Coments & move style to inline as per PR suggestion

* Better test names

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

* Fix test

Upload input doesn't have that class anymore

---------

Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-05-21 10:37:02 +00:00
..
__snapshots__
account
devices Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
discovery
notifications Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
shared
tabs Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
AddPrivilegedUsers-test.tsx
AvatarSetting-test.tsx Refactor some logic into common AvatarSetting component (#12544) 2024-05-21 10:37:02 +00:00
ChangePassword-test.tsx
CrossSigningPanel-test.tsx
CryptographyPanel-test.tsx
EventIndexPanel-test.tsx
FontScalingPanel-test.tsx
JoinRuleSettings-test.tsx
KeyboardShortcut-test.tsx
Notifications-test.tsx Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
PowerLevelSelector-test.tsx
SecureBackupPanel-test.tsx
SettingsFieldset-test.tsx
ThemeChoicePanel-test.tsx