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
David Baker
58b2068fbf
Set velocity's mock option in the unit test
7 years ago
Bruno Windels
95e61a57bc
fix some tests
7 years ago
Bruno Windels
0b8196343f
fix some tests
7 years ago
Bruno Windels
734a7ef6c8
fix tests
7 years ago
Travis Ralston
10519f9465
Fix the tests
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
8 years ago
Travis Ralston
ae10a11ac4
Convert synced settings to granular settings
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
8 years ago
Luke Barnard
d3f9a3aeb5
Run eslint --fix
...
Fixing 1000s of lint issues. Some rules cannot be `--fix`ed but this goes some way to linting the entire codebase.
8 years ago
turt2live
0363f73e28
Fix the MessagePanel test
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
8 years ago
Michael Telatynski
f036fd1d0f
first attempt at stubbing tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
9 years ago
Richard van der Hoff
22757cfcd3
Inject MatrixClient into React context in tests
...
Now that EventTile expects MatrixClient in the context, we had better provide
it.
9 years ago
Richard van der Hoff
78c3d5943a
Fix a load of warnings in the tests
...
Stub things out to make the tests not throw warnings, so we can see the actual
problems.
9 years ago
Richard van der Hoff
dcd81da856
Fix test failures introduced by last PR
10 years ago
Richard van der Hoff
a2168efcda
Correctly restore MatrixClientPeg after each test case
10 years ago
Richard van der Hoff
b6e4e9caf3
Fix a bug where we tried to show two ghost read markers at once.
...
I think this was responsible for the readmarker just disappearing rather than
animating.
While we're here, decrease the delay on the animation, and instead make it take
slightly longer to disappear.
10 years ago
Richard van der Hoff
25b35a09b9
Clean up some redundancy in the MessagePanel test
10 years ago
Richard van der Hoff
3ba7f9f23a
Fix failing test
...
DOM styles are strings, not numbers
10 years ago