Kerry
b1066a5699
Wrap inputs in fieldsets in Space visibility settings ( #7350 )
...
* use fieldset in space settings > visibility
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add basic tests for space setttings visibility
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix toggle button placement
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update settings separator color to quinary
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
92ee02fe02
unit test Notifications.tsx ( #7468 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Michael Telatynski
39c4b78371
Space preferences for whether or not you see DMs in a Space ( #7250 )
4 years ago
Kerry
d7a6e3ec65
Correct tab order in room preview dialog ( #7302 )
...
* tab order
* lint fixes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test RoomPreviewBar
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright header
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Update src/components/views/rooms/RoomPreviewBar.tsx
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
* fix tabs/spaces lint for reformatted actions
Signed-off-by: Kerry Archibald <kerrya@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
4 years ago
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
4 years ago
Michael Telatynski
82ad85a974
Mock usage of getRoomUpgradeHistory in SpaceStore tests
4 years ago
Andy Balaam
226131409f
Unit tests for room avatars in DM and non-DM rooms
...
Signed-off-by: Andy Balaam <andyb@element.io>
4 years ago
Michael Telatynski
8216a35a56
remove spurious mxclient stub
4 years ago
Jaiwanth
ecf0aba97c
Test for different types of events
4 years ago
Andrew Morgan
c9c8177f58
Start a call immediately after creating a room via the dial pad ( #6529 )
4 years ago
David Baker
28f5dc483b
Update eslint plugin & fix silly indenting
...
As per https://github.com/matrix-org/eslint-plugin-matrix-org/pull/15
this caused a bunch of silly indenting to creep in, so this fixes it
back to the previous style.
5 years ago
Šimon Brandner
a18f41ceed
Fix tests
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
2a378f30b7
Attempt to fix tests
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Jaiwanth
4824c93707
Add a test file
5 years ago
Michael Telatynski
d459dbe700
Refactor Space Hierarchy stuff in preparation for pagination
5 years ago
Michael Telatynski
6f37e8b223
Use getChildren instead of getSpaceSummary as MSC2946 has moved on
5 years ago
Michael Telatynski
831c482371
Stub out MatrixClient::isUserIgnored for tests
5 years ago
Michael Telatynski
04c923bd75
fix tests by including client field on the Room stub and stubbing getJoinedMemberCount
5 years ago
Michael Telatynski
9d8acd1af0
stub getJoinRule
5 years ago
Michael Telatynski
0ca4a958f7
fix getCapabilities stub
5 years ago
Michael Telatynski
3301763f12
stub getCapabilities in tests
5 years ago
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
5 years ago
Travis Ralston
5b2dacd99e
Adapt for js-sdk MatrixClient conversion to TS
...
For https://github.com/matrix-org/matrix-js-sdk/pull/1718
5 years ago
Robin Townsend
992861a1cd
Fix forward dialog tests
...
Signed-off-by: Robin Townsend <robin@robin.town>
5 years ago
Michael Telatynski
88d3706c04
mock getMembers on mkStubRoom
5 years ago
Jaiwanth
506a798961
Add getMember mock
5 years ago
Germain Souquet
454df8947b
Add mock for new client method
5 years ago
Robin Townsend
e798b36f1d
Decorate forward dialog room avatars
...
Signed-off-by: Robin Townsend <robin@robin.town>
5 years ago
Robin Townsend
eb07f1fb86
Test that ForwardDialog can render replies
...
Previously ForwardDialog was not giving its EventTile message preview
the information it needed to render a ReplyThread. This was a bit tricky
to fix since we were pulling a fake event out of thin air, so this
ensures it doesn't regress.
Signed-off-by: Robin Townsend <robin@robin.town>
5 years ago
Robin Townsend
74925b2c6d
Test ForwardDialog
...
Signed-off-by: Robin Townsend <robin@robin.town>
5 years ago
Ayush PS
2ad0032f72
Added regression tests for Natural headers
5 years ago
Ayush PS
b90a1de178
Merge branch 'develop' into err
5 years ago
Ayush PS
c843387043
Merge branch 'develop' into Bubble-bericht
5 years ago
Ayush PS
d1f23fb994
Partially added the tests [WIP]
5 years ago
Michael Telatynski
4446022327
Add automatic space switching tests
5 years ago
David Baker
dc3d05bc88
Test for asserted identity
...
This is out first CallHandler test(!) Switches react-sdk to use
createCall on the client object so we can stub this out in the test.
Add a bunch more stubs to the test client.
There's more stuff in this test that has scope to be used more
widely, like waiting for a certain dispatch and mocking out rooms
with particular sets of users in them: we could consider moving these
out to test utils if we wanted.
5 years ago
Michael Telatynski
a12cefee8e
Tweak some tests
5 years ago
Michael Telatynski
fba7465ad4
Initial SpaceStore tests work
5 years ago
Travis Ralston
a53696ff5e
Fix tests
5 years ago
Travis Ralston
6ab235f10c
Fix tests for new call path
...
We have to mock `fetch` for the caching of the download icon, and then mock out all the function calls used by components to feed a Media object.
5 years ago
Travis Ralston
591ccabab9
Remove a bunch of useless 'use strict' definitions
5 years ago
J. Ryan Stinnett
474c029db5
Fix permalink via parsing for rooms
...
This adjusts the app local link parsing path to better handle `via`s in query
params. Previously this path only expected them when an event ID was also
present, but it's also valid to have `via`s without event IDs as well.
Fixes https://github.com/vector-im/element-web/issues/16345
5 years ago
Michael Telatynski
54e41b5f32
fix tests
5 years ago
Michael Telatynski
965debf442
extend mockClient in testutils
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
5 years ago
Travis Ralston
90a898d03f
Move dispatcher into a subdirectory
...
We're expecting to have a whole bunch of types for the dispatched payloads, so pull the thing into a directory we can throw them in.
6 years ago
Hubert Chathi
908ca6b6ef
add test for grouping room creation events
6 years ago
Travis Ralston
54f3288dea
Fix imports for tests
...
This doesn't fix the fact that someone called it "peg".
6 years ago
Michael Telatynski
c551f2983a
Add TextualBody-test.js
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
da4d72b3c4
delint
6 years ago
Michael Telatynski
937b32663c
Migrate away from Legacy React Contexts
6 years ago