Kerry
7a80ea4bbe
Test typescriptification - MessagePanel ( #8943 )
...
* mv test/components/structures/MessagePanel-test.js test/components/structures/MessagePanel-test.tsx
* convert simpler messagepanel tests to rtl
* add data-testid to eventlistsummary
* convert read marker tests to rtl
* formatting
* remove commented
4 years ago
Michael Telatynski
59b9d1e818
Don't consider threads for breaking continuation until actually created ( #8581 )
...
* Don't consider threads for breaking continuation until they've actually been created
* Update tests
* Make hasThreadSummary null thread safe
* Apply feedback from pr review
4 years ago
Kerry
c5633a24fe
Live location sharing: don't group beacon info with room creation summary ( #8468 )
...
* dont group beacon info with room creation summary
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debugs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Michael Telatynski
a70f11704f
Don't form continuations on either side of a thread root ( #8408 )
4 years ago
Michael Telatynski
bbe0c945d3
Fix regression around haveRendererForEvent for hidden events ( #8379 )
4 years ago
Robin
7335b35fbb
Avoid looking up settings during timeline rendering ( #8313 )
...
* Avoid showHiddenEventsInTimeline lookups
* Avoid MSC3531 feature lookups
* Test that showHiddenEventsInTimeline doesn't get looked up while
rendering
* Fix code review nits
Co-authored-by: Travis Ralston <travisr@matrix.org>
4 years ago
Travis Ralston
26dc2ba45e
Step 3.1: Stop using `getComponent` in tests
4 years ago
Robin
1e060fed84
Don't form continuations from thread roots ( #8166 )
...
* Don't form continuations from thread roots
* Only apply the continuation break in the main timeline
4 years ago
Michael Telatynski
782ce016d1
Wrap EventTile rather than its children in an error boundary ( #7945 )
4 years ago
Michael Telatynski
0e60ad98c1
Hide composer and call buttons when the room is tombstoned ( #7975 )
4 years ago
Robin
aadb64615f
Fix duplicate EventListSummarys ( #7952 )
...
* Fix duplicate EventListSummarys
Signed-off-by: Robin Townsend <robin@robin.town>
* Add regression test
Signed-off-by: Robin Townsend <robin@robin.town>
4 years ago
Michael Telatynski
f25e6813bb
Mandate use of js-sdk/src/matrix import over js-sdk/src ( #7933 )
4 years ago
Michael Telatynski
482d756bd0
Ensure EventListSummary key does not change during backpagination ( #7915 )
4 years ago
Kerry
5e76d988ca
convert test-utils to typescript ( #7877 )
...
* move js utils into directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typescripterize js test-utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move test utils to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move remaining mock functions to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update imports
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type wait for update
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
8b9263c808
Clean up some unit test logs ( #7857 )
...
* kill some unit test logs in arrays-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove mock logs that are asserted against anyway
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix safeCOunterpartTranslate warnings in tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more safeCounterpartTranslate warnings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add helper
Signed-off-by: Kerry Archibald <kerrya@element.io>
* naming
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Michael Telatynski
714136d4f7
Consolidate RedactionGrouper and HiddenEventGrouper into MELS ( #7739 )
4 years ago
Michael Telatynski
f2249b3e37
Fix CallEventGrouper map building to not occur during a Render phase ( #7638 )
4 years ago
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
4 years ago
Dariusz Niemczyk
bc336abf47
Fix missing snapshot serializer&enzyme init ( #6932 )
4 years ago
Michael Telatynski
f5630acea7
Adhere to better eslint rules
5 years ago
David Baker
08176beb58
Kill mock-clock
...
We already import sinon's one in UserActivitytest, so use that here too.
5 years ago
David Baker
543fe6382d
Fix linting in tests
...
Or in the case of one test, disbale just the one rule it breaks
5 years ago
David Baker
ee9be5438e
eslint --fix
5 years ago
Michael Telatynski
8a3dc1bbdf
fix tests
5 years ago
Germain Souquet
d492ee4d8a
Update Enzyme adapter name
5 years ago
Robin Townsend
0f64f4d692
Fix MessagePanel tests
...
Signed-off-by: Robin Townsend <robin@robin.town>
5 years ago
Germain Souquet
c428736191
Update MessagePanel test to account for new DOM structure
5 years ago
Travis Ralston
379d19e2e0
Lint
5 years ago
Ayush PS
2ad0032f72
Added regression tests for Natural headers
5 years ago
Ayush PS
d1f23fb994
Partially added the tests [WIP]
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
0dd4d45c49
Disable velocity mock option
...
This appears to have been removed in the beta
5 years ago
Michael Telatynski
4997676f5d
fix last remaining broken test
5 years ago
Michael Telatynski
ae2d9941ff
fix more tests
5 years ago
Michael Telatynski
54e41b5f32
fix tests
5 years ago
Michael Telatynski
72498df28f
Remove create-react-class
5 years ago
J. Ryan Stinnett
86f39ee0ee
Fix read marker visibility for grouped events
...
The recent "groupers" which extracted out timeline grouping logic forgot to
pass through the last event state for read marker computation. This causes the
read marker to become visible when e.g. returning to room if it was last placed
inside a grouped set of events (currently room creation and membership events).
Regressed by https://github.com/matrix-org/matrix-react-sdk/pull/4059
Related to https://github.com/vector-im/riot-web/issues/12338
6 years ago
Hubert Chathi
908ca6b6ef
add test for grouping room creation events
6 years ago
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
6 years ago
Michael Telatynski
937b32663c
Migrate away from Legacy React Contexts
6 years ago
Michael Telatynski
ab3fb6581b
Down to 7 test failures
6 years ago
Michael Telatynski
0041dae664
26 test failures to go :D
6 years ago
Michael Telatynski
6ad31fe023
30 test failures to go :D
6 years ago
Michael Telatynski
18f81d80db
Initial jest stuff. Blocked on Babel 7
6 years ago
David Baker
a2e3f64963
Change read markers to use CSS transitions
...
Removes one of the two places we use Velocity, so we're one step
closer to getting rid of it for good.
Should therefore fix the fact that Velocity is leaking data entries
and therefore <hr> elements.
Hopefully also makes the logic in getEventTiles incrementally simpler,
if still somwewhat byzantine.
6 years ago
Michael Telatynski
70ff2bc9cd
Switch to createReactClass: views/rooms and test/components. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
accb0abe2d
Switch from react-addons-test-utils to react-dom/test-utils. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
1087e04bb5
Replace React.PropTypes with usage of the `prop-types` package
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
7 years ago
J. Ryan Stinnett
c338f8bf1f
Add `room` context to test
7 years ago
J. Ryan Stinnett
99369a54fe
Typo
...
Co-Authored-By: dbkr <dbkr@users.noreply.github.com>
7 years ago