Travis Ralston
111b28971a
Merge pull request #3202 from matrix-org/travis/stably-use-stable-apis
...
Use r0 media endpoints for group tests
2019-07-11 08:20:08 -06:00
David Baker
6b815327a0
apparently I was doing array bracket spacing wrong
2019-07-11 14:44:45 +01:00
David Baker
3ab5acde9d
Add unit test for terms agreement flow
2019-07-11 14:32:04 +01:00
Michael Telatynski
959f8fd844
Fix tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-10 21:58:08 +01:00
Travis Ralston
90212c76a5
Use r0 media endpoints for group tests
2019-07-10 13:24:47 -06:00
Bruno Windels
8b16f91b3d
fix karma tests?
2019-06-13 15:50:23 +02:00
David Baker
7602d76723
fix test
2019-06-11 13:16:49 +01:00
Travis Ralston
4c1ac38dd4
Merge branch 'develop' into travis/feature/wellknown2
2019-05-14 10:53:01 -06:00
Travis Ralston
f86ccae4a0
Give all the matrix.to tests a room ID to abuse
2019-05-13 14:31:40 -06:00
Travis Ralston
ae63df95ea
Fix tests to use new serverConfig prop
2019-05-03 11:34:30 -06:00
Bruno Windels
30dc6a9150
remove tests relying on scrollpanel behaviour
...
as BACAT scrolling relies on CSS from riot, which is not
included in the karma tests, we're removing these
tests in favor of later adding them to the e2e tests.
2019-03-28 17:57:08 +01:00
Bruno Windels
494779393f
Merge branch 'develop' into bwindels/bacat-scrolling
2019-03-21 13:50:32 +01:00
J. Ryan Stinnett
99369a54fe
Typo
...
Co-Authored-By: dbkr <dbkr@users.noreply.github.com>
2019-03-20 18:11:42 +00:00
David Baker
58b2068fbf
Set velocity's mock option in the unit test
2019-03-20 17:43:19 +00:00
Bruno Windels
95e61a57bc
fix some tests
2019-03-15 10:16:21 +01:00
David Baker
ce9f3d8a57
Rename
2019-03-11 11:38:54 +00:00
David Baker
61ebf4d920
spurious semicolon
2019-03-08 13:52:04 +00:00
David Baker
ce1623691e
Fix instantly sending RRs
...
Splits UserActivity into a tristate of 'active' (last < 1s), 'passive' (lasts a
couple of mins) and neither. Read receipts are sent when 'active', read markers
are sent while 'passive'.
Also fixed a document / window mix-up on the 'blur' handler.
Also adds a unit test for UserActivity because it's quite complex now
(and changes UserActivity to make it testable by accessing the singleton
via sharedInstance() rather than exporting it directly).
Fixes https://github.com/vector-im/riot-web/issues/9023
2019-03-08 12:46:38 +00:00
Bruno Windels
65807c7a66
Revert "remove test for #528 as we removed that fix"
...
This reverts commit 42030796c7
.
2019-03-01 16:08:58 +01:00
Bruno Windels
42030796c7
remove test for #528 as we removed that fix
2019-02-26 10:49:03 +01:00
Bruno Windels
f97ea37717
permalink is one word
2019-02-25 18:43:08 +01:00
Bruno Windels
476b81fc1e
add test for membership change
2019-02-25 18:43:08 +01:00
Bruno Windels
5ef673e80e
port existing tests
2019-02-25 18:43:08 +01:00
Travis Ralston
b12362dd37
Disable dragging tests for room list
...
We don't support dragging, so don't test it.
2019-02-13 19:51:34 -07:00
J. Ryan Stinnett
71c30b5641
Add some basic login tests
2019-02-05 16:33:12 +00:00
J. Ryan Stinnett
71d1a24fcb
Add some basic registration tests
2019-02-05 09:26:45 +00:00
Bruno Windels
42161f3a23
fix tests
2019-01-30 18:43:16 +01:00
Travis Ralston
d20bdbbc1a
Disable room settings tests
2019-01-28 14:11:10 -07:00
J. Ryan Stinnett
20b7debcaf
Remove support for team servers
2019-01-25 16:13:30 -06:00
J. Ryan Stinnett
9470424bcb
Enable linting for all auth related files
2019-01-23 18:32:36 -06:00
J. Ryan Stinnett
29be3ee4b5
Rename login directory to auth
2019-01-21 17:45:55 -06:00
Travis Ralston
0ebde5266e
Appease the linter again
2019-01-03 22:40:44 -07:00
Travis Ralston
f59625f7bd
Fix last active test
...
Time is backwards from all the other tests: larger is older, so we want LessThanOrEqual. Also ensure all the power levels are the same to prevent the sort algorithm from running a PL ordering.
2019-01-03 22:24:24 -07:00
Travis Ralston
34d5870a03
Appease the linter
2019-01-03 22:07:09 -07:00
Travis Ralston
77dfba8a22
Add unit tests for MemberList
...
Particularly the ordering of the tiles.
2019-01-03 21:55:52 -07:00
Travis Ralston
8017f0a4a1
Merge remote-tracking branch 'origin/experimental' into travis/develop-for-real
2019-01-03 16:00:23 -07:00
David Baker
f928be6f59
Revert "Merge pull request #2395 from matrix-org/dbkr/merge_develop_experimental"
...
This reverts commit ad47144355
.
2019-01-03 15:37:03 -07:00
David Baker
7d161de35b
Partial merge of develop to experimental
...
Does not include #2336 as the file has been moved out from underneath it:
will do this separately
2019-01-03 15:02:58 +00:00
Stephen Solka
0bb35944f9
replace expect.createSpy() with jest.fn()
...
Signed-off-by: Stephen Solka <stephen0q@gmail.com>
2019-01-02 16:59:48 -06:00
Stephen Solka
c3185a4cdb
breaking changes from expect upgrade
...
Signed-off-by: Stephen Solka <stephen0q@gmail.com>
2019-01-02 16:59:48 -06:00
Travis Ralston
f08a54ed1e
Don't consider ACL'd servers as permalink candidates
...
and fix the bug where it was picking 4 servers instead of 3. This was due to `<=` instead of `<` in the `MAX_SERVER_CANDIDATES` loop. Added tests for all the things.
Fixes https://github.com/vector-im/riot-web/issues/7752
Fixes https://github.com/vector-im/riot-web/issues/7682
2018-12-05 18:00:09 -07:00
J. Ryan Stinnett
22ff76e6b7
Add error to UI when group member list fails to load
...
Signed-off-by: J. Ryan Stinnett <jryans@gmail.com>
2018-12-04 18:46:15 -06:00
J. Ryan Stinnett
5fc25fd6ba
Only mark group as failed to load for summary
...
Currently, any error in the `GroupStore`s several requests can cause the whole
`GroupView` component to hide and be mark the group as failed to load.
Since it is known that group members may fail to load in some cases, let's only
show failed to load for the whole group when the summary fails.
This also strengthens the `GroupView` test by ensuring we wait for multiple
updates for checking results.
Signed-off-by: J. Ryan Stinnett <jryans@gmail.com>
2018-12-04 18:32:16 -06:00
Bruno Windels
734a7ef6c8
fix tests
2018-11-13 09:34:54 +01:00
Travis Ralston
0cdc44a205
Appease the linter
2018-10-26 20:49:01 -06:00
Travis Ralston
3bc5e2beb3
Fix and test matrix.to alias permalinks
...
Fixes https://github.com/vector-im/riot-web/issues/7614
Regression of https://github.com/matrix-org/matrix-react-sdk/pull/2250
2018-10-26 19:47:53 -06:00
Travis Ralston
c389540522
Appease the linter
2018-10-26 10:22:18 -06:00
Travis Ralston
43980addd0
Add hostname sanity tests
...
In the event someone changes how the hostname parsing works.
2018-10-25 15:22:52 -06:00
Travis Ralston
b9bfbdc22d
Fix the tests so they actually test something
2018-10-25 15:22:28 -06:00
Travis Ralston
e8cb636631
Pick servers for ?via on matrix.to links based on some heuristics
2018-10-24 18:01:08 -06:00
Bruno Windels
0912b8dcc2
Merge pull request #2218 from matrix-org/bwindels/phasedrollout
...
Phased rollout of lazy loading
2018-10-15 17:27:28 +02:00
Bruno Windels
63f1c41d18
fix test lint
2018-10-15 17:15:22 +02:00
Bruno Windels
f717c5697b
tests for phased rollout function
2018-10-15 16:41:04 +02:00
David Baker
a58de9e189
Also test the two options while we're at it
2018-10-11 21:04:50 +01:00
David Baker
53e13be047
Add some unit tests for QueryMatcher
...
Which 1) has a fairly complex interface with lots of subtleties and
2) is really trivial to unit test.
2018-10-11 20:50:48 +01:00
Bruno Windels
e951a22d31
fix tests
2018-09-18 17:09:14 +02:00
David Baker
a07799879c
Fix tests
2018-09-04 18:50:18 +01:00
David Baker
bd0a9cf3a0
Merge remote-tracking branch 'origin/develop' into dbkr/room_upgrade
2018-08-29 15:51:07 +01:00
David Baker
cb84feefa9
Add stub for getVisibleRooms()
...
Fixes the tests
2018-08-23 12:14:52 +01:00
David Baker
f679acea08
Revert "Revert "Fix showing peek preview while LL members are loading""
2018-08-22 16:35:58 +01:00
David Baker
bf7633250a
Revert "Fix showing peek preview while LL members are loading"
2018-08-22 16:16:17 +01:00
Bruno Windels
db7dd8e9e8
fix tests
2018-08-22 16:02:12 +02:00
David Baker
353b6e9e6d
Add stub
2018-08-17 15:15:53 +01:00
Bruno Windels
cead4096d8
Merge pull request #2118 from matrix-org/bwindels/feature_lazyloading
...
Lazy loading of room members
2018-08-16 18:14:55 +02:00
Bruno Windels
1675d3c4ba
room stub not having getVersion method broke tests
2018-08-15 13:22:26 +02:00
Bruno Windels
90fc15ff3e
adjust room constructor
2018-08-07 15:33:37 +02:00
Bruno Windels
b9bbb7ee16
pass in userId with room in test
2018-08-02 11:40:56 +02:00
Bruno Windels
34cb89e86a
fix tests
2018-07-25 16:10:49 +02:00
Matthew Hodgson
021409aafe
apply review feedback from @lukebarnard1
...
(cherry picked from commit 37d4bce)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-07-09 19:54:57 +01:00
Matthew Hodgson
efdc5430d7
merge develop
2018-07-09 17:50:07 +01:00
Luke Barnard
15bd2e157f
Test everything
2018-07-05 14:55:29 +01:00
Luke Barnard
d53c836fd7
Implement aggregation by error type for tracked decryption failures
2018-07-05 13:54:44 +01:00
Luke Barnard
01dd387970
Track UISIs in bulk
...
Piwik supports sending an event value, which we can use to indicate
cardinality of UISIs to be tracked instead of tracking them individually.
This means we can track them at a lower frequency of (fairly arbitrary)
60s.
2018-06-28 15:07:27 +01:00
Luke Barnard
488cc416cf
For now, shelve persistance across sessions
2018-06-15 17:08:11 +01:00
Luke Barnard
c5252be4a8
Test everything, not just DFT
2018-06-15 16:51:11 +01:00
Luke Barnard
f08274585e
Persist tracked event ID hash using localStorage
2018-06-15 15:30:54 +01:00
Luke Barnard
011154396c
Add extra, useful expectation to test
2018-06-15 15:15:48 +01:00
Luke Barnard
ac0416af96
Do not track previously tracked failures
2018-06-15 14:48:20 +01:00
Luke Barnard
62601d657d
Implement DecryptionFailureTracker for less agressive tracking
...
Instead of pinging Analytics once per failed decryption, add the failure
to a list of failures and after a grace period, add it to a FIFO for
tracking. On an interval, track a single failure from the FIFO.
2018-06-15 13:42:18 +01:00
Akihiko Odaki
35ab573bc5
Update sinon to 5.0.7
2018-05-21 18:44:00 +09:00
Matthew Hodgson
b616fd025e
comment out all the tests for now
2018-05-20 23:34:06 +01:00
Matthew Hodgson
d799b7e424
refactor roundtripping into a single place
...
and fix isRichTextEnabled to be correctly camelCased everywhere...
2018-05-20 16:30:39 +01:00
Luke Barnard
aa370b3b67
Merge pull request #1877 from matrix-org/luke/test-room-list
...
Add tests for RoomList
2018-05-04 13:57:57 +01:00
Luke Barnard
c06a04af97
Fix unrelated linting issue
2018-05-03 18:11:32 +01:00
Luke Barnard
e15b39092d
Add tests for testing room tile updates when tags (groups in LLP) are selected
2018-05-03 18:04:01 +01:00
Luke Barnard
80d251b622
Add tests for optimistic updates of moving room tiles
2018-05-03 15:41:35 +01:00
Luke Barnard
3e55a45601
Mock getGroups on MatrixClient for RoomList _makeGroupInviteTiles
2018-05-03 15:24:41 +01:00
Michael Telatynski
f2102e283c
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:matrix-org/matrix-react-sdk into t3chguy/m.relates_to
2018-05-02 13:08:38 +01:00
Luke Barnard
dc20f32ad7
Move waitForUpdate to test-utils
2018-05-02 11:19:01 +01:00
Michael Telatynski
f0bd4a54e7
Refactor tests to understand sendMessage instead of send{Text,Html}Message
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-05-01 13:26:24 +01:00
Luke Barnard
7915d97ed7
Also run other tests
2018-04-27 14:56:48 +01:00
Luke Barnard
a1c4424224
Add tests for GroupView
2018-04-27 14:28:24 +01:00
Matthew Hodgson
fe5e68de29
fix tests
2018-04-15 23:48:52 +01:00
Matthew Hodgson
7ae1b37b56
add notif UTs
2018-04-12 20:25:08 +01:00
Luke Barnard
d3dc2a33b4
Fix bug preventing setting room power levels
...
- don't use refs, use onChange of PowerSelector
- store power levels as state in the RoomSetting component
2018-02-28 16:32:20 +00:00
Luke Barnard
d91d1932f4
Add tests for RoomSettings
...
For setting:
- name
- topic
- history visibility
- power levels
Testing RoomSettings required more stubbing on the matrix client.
The power level tests should be failing at this commit, with
fixes being made in upcoming commits.
Some tests are marked as known failures that we should fix but
aren't necessarily bugs:
- SettingStore.setValue is used when saving despite the user not
having made a change.
- Testing directory publicity changes cannot be tested because we
update state asynchronously in componentWillMount (which we do
not block on in beforeEach).
Also, we needed to use `export default` to make sure everything
uses the same client peg and client.
2018-02-28 16:07:21 +00:00
Luke Barnard
cf4ae681f4
Offline mode ( #1723 )
...
* Allow the client to run without connection to HS (i.e. using indexeddb)
Allows running without having pushRules (it's safe not to have these
when running from indexeddb sync.)
This means rooms will be displayed with "unknown" notifcation state.
This assumes anything that uses the push rules will get pushRule state
again when the client starts syncing again.
For recovering from being disconnected,
* If an avatar has fallen back, try again on reconnection
* If a thumbnail image failed to load, retry on reconnect
* Load joined groups when reconnecting
Update tests to give MELS a context.matrixClient
2018-02-06 17:50:53 +00:00
Stefan Parviainen
414ee82582
Perform substitution on all parts, not just the last one
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
This way the substitutions don't need to appear in the same order in the
translated string.
2017-11-17 08:47:31 +01:00
Stefan Parviainen
2c1618bc10
Fix conflict and update strings
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-11-15 20:40:51 +01:00
Stefan Parviainen
788be67c75
Clarifications
2017-11-14 20:08:27 +01:00