Travis Ralston
2c459c4828
Move utility tests to the right place
2021-04-22 20:37:19 -06:00
Travis Ralston
374f51452e
Add set utility tests
2021-04-22 20:37:19 -06:00
Travis Ralston
27af3291ed
Add number utility tests
2021-04-22 20:37:19 -06:00
Travis Ralston
6124a8319b
Add iterable utility tests
...
Unsurprisingly, it's a copy/paste of the array tests
2021-04-22 20:37:19 -06:00
Travis Ralston
0d4218ee35
Add enum utility tests
2021-04-22 20:37:19 -06:00
Travis Ralston
21cae1502a
Add map utility tests
2021-04-22 20:37:19 -06:00
Travis Ralston
772ff4e257
Add object utility tests
2021-04-22 20:37:19 -06:00
Travis Ralston
a3e846685d
Add array utility tests (and support upsampling in resample)
...
See contained diff.
The upsampling is important for Voice Messages, but is being done here because it's easier to add all the tests at once.
This also introduces a new Object utility - that will be tested on its own commit.
2021-04-22 20:08:45 -06:00
Michael Telatynski
fba7465ad4
Initial SpaceStore tests work
2021-04-22 14:45:13 +01:00
Šimon Brandner
55365e632b
Use the correct selector in E2EE tests
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-22 07:52:39 +02:00
Travis Ralston
a53696ff5e
Fix tests
2021-04-21 16:53:29 -06:00
Germain
68fb9a78c4
Merge pull request #5874 from matrix-org/gsouquet-room-events
2021-04-21 09:09:01 +01:00
Germain Souquet
de5ca92e4e
add e2e session.delay explainer
2021-04-19 18:01:19 +01:00
Germain Souquet
db646d5987
Fix end to end tests for DM creation
2021-04-19 15:07:11 +01:00
Travis Ralston
22233a8745
Add a concept of a singleflight to avoid repeated calls to stop/ending
...
This makes it easier to keep track of which pieces the client will have already dispatched or been executed, reducing the amount of class members needed.
Critically, this makes it so the 'stop' button (which is currently a send button) actually works even after the automatic stop has happened.
UI is still pending for stopping recording early. This is not covered by this change.
2021-04-14 21:59:50 -06:00
Travis Ralston
b0af163002
Merge pull request #5825 from matrix-org/travis/spaces/room-list
...
Restabilize room list ordering with prefiltering on spaces/communities
2021-04-06 05:47:21 -06:00
Travis Ralston
a0049f956d
Patch over legacy Groups test
2021-03-31 23:51:17 -06:00
Germain Souquet
c81847689a
Remove query matcher shouldMatchPrefix support
2021-03-31 18:21:02 +01:00
J. Ryan Stinnett
33e8edb3d5
Merge pull request #5720 from czeidler/key-bindings
...
Decouple key bindings from event handling
2021-03-26 15:14:38 +00:00
J. Ryan Stinnett
ce19d07850
Merge pull request #5805 from matrix-org/travis/ts/access-ss-dialog
...
Convert AccessSecretStorageDialog to TypeScript
2021-03-26 12:37:24 +00:00
J. Ryan Stinnett
cf4ed1bcdf
Fix tests
2021-03-26 11:56:58 +00:00
Travis Ralston
5d9b36afc1
Fix tests
2021-03-25 23:47:41 -06:00
Clemens Zeidler
2a21d45ac0
Merge branch 'develop' into key-bindings
2021-03-12 16:44:12 +13:00
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.
2021-03-11 09:42:55 -07:00
Travis Ralston
533c9fed64
Appease the linter
2021-03-10 12:32:18 -07:00
Travis Ralston
375ffafda6
Fix tests failing to load skin
...
We should find a better way to do this, but this works well enough.
2021-03-09 10:13:16 -07:00
Travis Ralston
591ccabab9
Remove a bunch of useless 'use strict' definitions
2021-03-08 20:26:08 -07:00
J. Ryan Stinnett
b12cf7912a
Merge pull request #5624 from SimonBrandner/show-room-name
...
Display room name in pills instead of address
2021-03-08 16:27:43 +00:00
Clemens Zeidler
06181221a1
Add copyright headers
2021-03-07 19:05:36 +13:00
Clemens Zeidler
4a6f931782
Merge branch 'develop' into key-bindings
2021-03-04 21:10:35 +13:00
Travis Ralston
0dd4d45c49
Disable velocity mock option
...
This appears to have been removed in the beta
2021-02-26 22:36:42 -07:00
Michael Telatynski
f45510ed25
Fix test assuming too much about the underlying calls
2021-02-19 13:08:30 +00:00
Michael Telatynski
3c52446205
Remove redundant PhasedRollOut
2021-02-19 00:01:07 +00:00
Clemens Zeidler
4a138f3b84
Only support a single key in the KeyCombo
...
Keep it simple...
2021-02-15 19:21:08 +13:00
David Baker
196507a730
VoIP virtual rooms, mk II
...
Does a thirdparty protocol lookup to the homeserver to get the
corresponding native/virtual user for a matrix ID. Stores the
mappings in room account data. Involves some slightly nasty workarounds
for that fact that room account data has no local echo.
2021-02-12 20:55:54 +00:00
Šimon Brandner
a075568e89
Fixed tests
...
In the previous commits I have removed the native title/tooltip so it needs to be removed from the tests as well
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-12 11:34:09 +01:00
Clemens Zeidler
c7f9defd12
Add simple implementation of a KeyBindingsManager + match tests
2021-02-12 22:04:33 +13:00
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
2021-02-03 15:18:19 +00:00
Michael Telatynski
5a49cbf51a
Merge pull request #5600 from weeman1337/fix-e2et-run-out
...
Fix app-url hint in the e2e-test run script output
2021-02-01 12:47:12 +00:00
J. Ryan Stinnett
89b835dd20
Merge pull request #5575 from matrix-org/jryans/no-event-pills
...
Remove pills from event permalinks with text
2021-02-01 10:53:22 +00:00
Michael Weimann
0660371461
fix typo in end-to-end-test run script output
...
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2021-01-31 09:53:15 +01:00
J. Ryan Stinnett
0cb266eda2
lolex renamed to @sinonjs/fake-timers
2021-01-27 12:31:37 +00:00
J. Ryan Stinnett
fa3ace8473
Rework message pilling to ignore event permalinks
...
This removes pills from event permalinks since they hide the text associated
with the link, which can cause nonsensical messages since words have been
removed. In addition, this moves away from fragile regexs to more
straightforward code to parse links and adds a test for this case.
Regressed by https://github.com/matrix-org/matrix-react-sdk/pull/5188
Fixes https://github.com/vector-im/element-web/issues/15159
2021-01-27 11:46:20 +00:00
David Baker
f703383ab6
Merge pull request #5560 from matrix-org/dbkr/voip_user_mapper
...
Add VoIP user mapper
2021-01-22 14:12:08 +00:00
David Baker
ba45b47240
Oops, the tests won't work if we don't export the functions
2021-01-21 22:42:12 +00:00
David Baker
0a90c982c7
Add VoIP user mapper
...
The accompanying element-web PR with the config documentation should
explain what this is & why. Internally, this breaks the assumption
that call.roomId is the room that the call appears in for the user.
call.roomId may now be a 'virtual' room while the react SDK actually
displays it in a different room. React SDK always stores the calls
under the user-facing rooms, and provides a function to get the
user-facing room for a given call.
2021-01-21 19:20:35 +00:00
J. Ryan Stinnett
e49a931588
Merge pull request #5533 from aaronraimist/security-key
...
Change a bunch of strings from Recovery Key/Phrase to Security Key/Phrase
2021-01-21 17:46:02 +00:00
J. Ryan Stinnett
97a551c04a
Fix test
2021-01-14 17:39:58 +00:00
David Baker
6371a4abd1
Fix tests
...
Remove stray file extensions in includes and update shared instance
name.
2021-01-13 16:02:35 +00:00
Aaron Raimist
4f96d5dee5
Change a bunch of strings from Recovery Key/Phrase to Security Key/Phrase
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-01-04 19:17:17 -06:00
Michael Telatynski
2142a65a9b
delint
2020-12-16 10:46:39 +00:00
Michael Telatynski
4c2b6f410b
fix tests
2020-12-16 10:41:56 +00:00
J. Ryan Stinnett
70f24baaf1
Merge pull request #5425 from macekj/emoji_quick_shortcut
...
Add keyboard shortcut for emoji reactions
2020-12-14 13:12:49 +00:00
Simon Merrick
b365d3b27e
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into new/room-alias-in-permalink
2020-12-07 10:30:50 +13:00
macekj
0c85cb587d
Merge branch 'develop' into emoji_quick_shortcut
2020-12-04 11:05:50 -05:00
J. Ryan Stinnett
1fda735222
Rebrand various CI scripts and modules
...
This replaces Riot with Element in various CI scripts, modules, parameters, etc.
This _should_ be the last major rebranding pass (hopefully).
Fixes https://github.com/vector-im/element-web/issues/14894
2020-12-03 13:56:27 +00:00
Simon Merrick
6670c727a4
Add getCanonicalAlias to mock
2020-12-02 13:28:35 +13:00
Michael Telatynski
eb25c39318
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/socials
...
Conflicts:
src/i18n/strings/en_EN.json
2020-12-01 16:33:29 +00:00
Michael Telatynski
3bdedd73f7
fix another test
2020-11-25 11:38:43 +00:00
Michael Telatynski
c4084196d1
delint
2020-11-25 10:39:44 +00:00
Michael Telatynski
1b1c482f9c
Iterate tests
2020-11-25 10:22:16 +00:00
macekj
ba8d02a808
add quick shortcut emoji feature and tests
...
Signed-off-by: macekj <macekj@umich.edu>
2020-11-17 17:36:58 -05:00
Aleks Kissinger
5f3af7863a
Merge branch 'develop' into katex
2020-11-10 18:19:20 +00:00
Michael Telatynski
4997676f5d
fix last remaining broken test
2020-11-05 16:57:51 +00:00
Michael Telatynski
ae2d9941ff
fix more tests
2020-11-05 16:54:25 +00:00
Michael Telatynski
54e41b5f32
fix tests
2020-11-05 16:27:41 +00:00
Michael Telatynski
6029f2a03b
update e2e tests for invite ux tweaks
2020-11-03 15:16:52 +00:00
David Baker
db0d74d0d4
Remove a couple more files from eslintignore
...
Just var/const & spaces
2020-10-30 18:33:33 +00:00
Aleks Kissinger
3f9f1d03c8
stubbed isGuest for unit tests
2020-10-29 13:22:09 +00:00
Michael Telatynski
b7a1e698df
fix tests which use a private method
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-14 10:47:46 +01:00
Michael Telatynski
b2d04deb83
fix tests for the new sessionStorage key
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-08 10:04:01 +01:00
Michael Telatynski
a8d88e01fb
Write Enzyme tests for SendMessageComposer state/history persistence behaviour
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-07 00:10:40 +01:00
Michael Telatynski
965debf442
extend mockClient in testutils
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-07 00:09:48 +01:00
Michael Telatynski
ffa7ceb70e
Trim range when formatting so that it excludes leading/trailing spaces
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-29 14:15:20 +01:00
Michael Telatynski
fe67ebf1fd
Merge pull request #5209 from matrix-org/t3chguy/fix/12591
...
Retry loading i18n language if it fails
2020-09-24 17:03:25 +01:00
J. Ryan Stinnett
b5000b236f
Fix lint error
2020-09-16 17:12:51 +01:00
J. Ryan Stinnett
a18d0271c3
Adjust tests for Secure Backup toast
2020-09-16 16:51:10 +01:00
J. Ryan Stinnett
46f37fb969
Create cross-signing keys during authentication
...
With this change, Element now creates cross-signing keys during auth flows for
password login. For other auth flows like token / SSO, it will not happen until
a cross-signing / secret storage dialog flow as before.
2020-09-16 15:03:06 +01:00
J. Ryan Stinnett
7bd5e3fa31
Move security-related dialogs to a common directory
2020-09-16 15:03:06 +01:00
Michael Telatynski
608249745a
Attempt to fix tests some more
2020-09-15 13:19:47 +01:00
Michael Telatynski
39a59dbefa
fix CI some more
2020-09-09 12:59:41 +01:00
Michael Telatynski
d9e17e89b5
fix CI
2020-09-09 12:55:16 +01:00
Michael Telatynski
b635598bc3
Attempt to fix tests and fix RoomSummaryCard having wrong member count
2020-09-09 12:28:12 +01:00
Michael Telatynski
8dcb2d4719
attempt to fix CI tests
2020-09-09 12:06:16 +01:00
Michael Telatynski
bb98587143
fix e2e tests. Change the default Room Tab to RoomSummary
2020-09-09 11:42:41 +01:00
Michael Telatynski
fb0b784369
test CI
2020-09-09 10:56:14 +01:00
Michael Telatynski
c8bc80a3b1
test with delay
2020-09-09 10:07:43 +01:00
Michael Telatynski
644ff56ace
Fix e2e tests
2020-09-09 09:38:13 +01:00
Michael Telatynski
c120458b81
fix test stub
2020-08-29 13:02:45 +01:00
Michael Telatynski
72498df28f
Remove create-react-class
2020-08-29 12:14:16 +01:00
Travis Ralston
c815a370e7
Remove some unused components
...
We no longer have tinting support, so remove it. We still need the `Tinter` to exist though as it's used in quite a few places (though does nothing). Similarly, we have to keep the `roomColor` setting due to it being used in a few places - another PR can take away the tinter support properly.
The room tile context menu and top left menu are artifacts of the old room list.
The end to end tests weren't failing before as the code path is unused, however it seems worthwhile to keep it as we will eventually need it.
2020-08-20 20:47:02 -06:00
Travis Ralston
4f851542ac
Implement force state for features like in the proposal
2020-08-17 13:51:41 -06:00
Michael Telatynski
62c1798bec
try to fix the e2e tests
2020-08-13 16:55:48 +01:00
Jorik Schellekens
0060acbb33
Merge pull request #5056 from matrix-org/joriks/style-fighting
...
Quick win session 24/07/2020
2020-08-12 15:21:06 +01:00
J. Ryan Stinnett
2e76e19f37
Remove rebrand toast from tests
2020-08-12 14:58:55 +01:00
J. Ryan Stinnett
ce226ab534
Replace Riot with Element in docs and comments
...
This only covers the simple cases of references to issues and repos. More
complex areas, such as deployment scripts, will be handled separately.
Part of https://github.com/vector-im/element-web/issues/14864
2020-08-03 18:33:36 +01:00
Jorik Schellekens
749aaf0b54
Fix tests
2020-07-28 14:59:03 +01:00
Michael Telatynski
c578026474
Merge branches 'develop' and 't3chguy/fix/13641' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/13641
...
Conflicts:
src/editor/parts.ts
2020-07-24 08:18:20 +01:00
Michael Telatynski
93b0287e11
s/semi-colon/colon/
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-24 00:04:50 +01:00
Michael Telatynski
38e93469d3
Fix broken test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-23 09:01:44 +01:00
Michael Telatynski
8018a20680
create acceptance tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-21 17:40:34 +01:00
Travis Ralston
2dfd636a9e
Appease the linter
2020-07-17 16:28:49 -06:00
Travis Ralston
c9b0b3b31d
RoomSublist2 -> RoomSublist
2020-07-17 15:46:46 -06:00
Travis Ralston
96065ae982
RoomTile2 -> RoomTile
2020-07-17 15:43:29 -06:00
Travis Ralston
a7c18bfbfa
RoomList2 -> RoomList
2020-07-17 15:27:49 -06:00
Travis Ralston
2441cbc9ac
LeftPanel2 -> LeftPanel
2020-07-17 15:22:18 -06:00
Travis Ralston
2b15ba21dd
Rename RoomListStore file
2020-07-17 15:11:34 -06:00
Travis Ralston
209a5d2220
Rename RoomListStore2 class name
...
We use `RoomListStore` as a singleton, and don't want the ugly `2` at the end of the actual store instance, so here we rename it to something half-decent.
2020-07-17 15:10:30 -06:00
Michael Telatynski
e75b33c66c
fix e2e tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-17 19:41:45 +01:00
dependabot[bot]
4d61d6320a
Bump lodash from 4.17.15 to 4.17.19 in /test/end-to-end-tests
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-07-16 15:12:32 +00:00
Travis Ralston
226f755259
Match the string correctly
2020-07-15 04:59:34 -06:00
Travis Ralston
6994b8c5ea
Bob needs to accept the toast too
2020-07-15 04:50:15 -06:00
Travis Ralston
cc18438a0a
Fix another toast
2020-07-15 04:32:07 -06:00
Travis Ralston
2def39fef7
Fix brand too
2020-07-15 04:21:37 -06:00
Travis Ralston
86cb3cf93f
Incorporate new toasts into end-to-end tests
2020-07-15 04:13:38 -06:00
Travis Ralston
3826d81358
Enable test mode
2020-07-10 11:05:56 -06:00
Travis Ralston
bba8197592
Use the new layout store
2020-07-09 22:40:34 -06:00
Travis Ralston
75dbd5f1d4
Merge branch 'develop' into travis/room-list/enable
2020-07-09 22:28:16 -06:00
Travis Ralston
9bf2505e51
queryAll, not just query
2020-07-07 16:48:03 -06:00
Travis Ralston
9000888013
Pass the session through
2020-07-07 16:38:24 -06:00
Travis Ralston
f12d951209
Update end-to-end tests for new room list
2020-07-07 16:34:42 -06:00
Travis Ralston
121e41d20b
Remove irrelevant function
2020-07-07 16:20:53 -06:00
Travis Ralston
5ace405062
The linter will never be appeased
2020-07-07 16:01:42 -06:00
Travis Ralston
85af3ebcc0
Lie about DMs in tests
2020-07-07 15:58:15 -06:00
Travis Ralston
044c223899
Remove debug
2020-07-07 15:53:12 -06:00
Travis Ralston
767db73853
Appease the linter
2020-07-07 15:50:04 -06:00
Travis Ralston
f89fcd1fe9
Fix tests and add general safety
...
We don't need the fake clock anymore, but we do have to wait for async actions to complete before moving forward.
This also exposes a number of functions for the store to be puppetted with.
2020-07-07 15:45:59 -06:00
Travis Ralston
c774b88bda
Initial pass of fixing tests
...
* Use new components
* Use new tagId prop on sublists
* Define onResize for the room list so it doesn't crash
2020-07-07 15:06:06 -06:00
Jorik Schellekens
99734dcfe8
please work
2020-07-07 17:11:14 +01:00
Jorik Schellekens
af2b826136
Please fix test
2020-07-07 16:57:56 +01:00
David Baker
2969820371
LINT
2020-06-26 20:31:22 +01:00
David Baker
0579c9f748
Fix tests
2020-06-26 20:25:38 +01:00
Michael Telatynski
06852436e6
Fix loading-test for SSO plaf changes
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-25 23:59:08 +01:00
David Baker
65febd24eb
lint
2020-06-25 13:52:38 +01:00
David Baker
0acb35dc23
Update end to end tests
2020-06-25 13:48:11 +01:00
Michael Telatynski
69c5aecfc7
Merge pull request #4784 from bocoup/extend-querymatcher-heuristic
...
Extend QueryMatcher's sorting heuristic
2020-06-18 19:36:42 +01:00
David Baker
e0a34d9dea
Revert "Use recovery keys over passphrases"
2020-06-18 09:35:11 +01:00
Mike Pennisi
6af4d82ce7
Extend QueryMatcher's sorting heuristic
...
Use the order of the input keys as a signal for relative importance of
matches.
Signed-off-by: Mike Pennisi <mike@mikepennisi.com>
2020-06-17 23:41:41 -04:00
Travis Ralston
803b7bb30f
Merge pull request #4694 from justin-sleep/remove-escape-backslashes
...
Remove escape backslashes in non-Markdown messages
2020-06-17 11:06:04 -06:00
Justin Sleep
bdc451d66b
Remove escape backslashes in non-Markdown messages
2020-06-03 17:08:13 -05:00
Michael Telatynski
19ff8dde1f
fix loading test for new sso pattern
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-03 20:35:56 +01:00
David Baker
0c1809bb38
lint
2020-06-03 13:24:56 +01:00
David Baker
802f9a4bc1
Fix end to end tests for new UI
2020-06-03 13:04:29 +01:00
Michael Telatynski
5b31fdd308
remove stale references to MatrixToolbar
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-30 12:36:17 +01:00
Michael Telatynski
71108fcf39
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 17:02:32 +01:00
Michael Telatynski
7486338efa
Fix.the.tests.
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 16:51:04 +01:00
Michael Telatynski
e35c9d5bbf
more testing
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 15:18:43 +01:00
Michael Telatynski
cb07fa53f4
test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 15:05:40 +01:00
Michael Telatynski
63ac1cb4ab
debug some more
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 14:56:24 +01:00
Michael Telatynski
f3dfdbe746
debug
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 14:36:44 +01:00
Michael Telatynski
91811581bc
fix assertNoToasts
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 14:35:59 +01:00
Michael Telatynski
61066b0c4c
test it again
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 14:27:09 +01:00
Michael Telatynski
627b568588
check if it is a race
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 13:48:20 +01:00
Michael Telatynski
841ce74ac2
Fix assert vs assert.equal
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 13:39:00 +01:00
Michael Telatynski
faaca43a75
more loggin'
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 13:35:15 +01:00
Michael Telatynski
37c875b863
improve end to end tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 13:23:49 +01:00
Michael Telatynski
d9552c7f5c
e2e test toasts v2
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 13:10:28 +01:00
Michael Telatynski
7b6d49c416
e2e test toasts
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 12:57:45 +01:00
Michael Telatynski
b7c688d328
test e2e tests workaround
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-27 12:40:38 +01:00
Michael Telatynski
73d966443c
fix tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-24 14:25:31 +01:00
Michael Telatynski
880e16aaa2
Merge branches 'develop' and 't3chguy/leaks' of github.com:matrix-org/matrix-react-sdk into t3chguy/leaks
...
Conflicts:
src/components/views/avatars/BaseAvatar.js
test/components/views/messages/TextualBody-test.js
2020-05-23 11:12:58 +01:00
Travis Ralston
7ff850deea
Merge pull request #4253 from matrix-org/travis/room-list-2
...
Rewrite the room list store
2020-05-21 13:30:32 -06:00
Jorik Schellekens
adec5a4f92
fix test
2020-05-20 15:09:10 +01:00
Michael Telatynski
e79959a4ec
try fix tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-15 00:31:30 +01:00
Travis Ralston
2b4c19e9ba
Merge branch 'travis/dispatcher-types' into travis/room-list-2
2020-05-14 13:40:37 -06:00
Travis Ralston
08419d195e
Initial breakout for room list rewrite
...
This does a number of things (sorry):
* Estimates the type changes needed to the dispatcher (later to be replaced by https://github.com/matrix-org/matrix-react-sdk/pull/4593 )
* Sets up the stack for a whole new room list store, and later components for usage.
* Create a proxy class to ensure the app still functions as expected when the various stores are enabled/disabled
* Demonstrates a possible structure for algorithms
2020-05-14 12:44:29 -06:00
Travis Ralston
a21d6e651f
Move dispatcher references in support of TypeScript conversion
...
See https://github.com/matrix-org/matrix-react-sdk/pull/4593
2020-05-13 21:15:30 -06:00
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.
2020-05-13 21:07:50 -06:00
David Baker
719faed2ff
Separate toasts for existing & new device verification
...
Separate device verification toasts into ones for devices that were
there when the app loaded and a separate toast for each device that
has appeared since.
Reverts part of https://github.com/matrix-org/matrix-react-sdk/pull/4506
(clicking a device from your own UserInfo now triggers the legacy
verification flow again).
Fixes https://github.com/vector-im/riot-web/issues/13422
Fixes https://github.com/vector-im/riot-web/issues/13418
2020-04-28 18:35:16 +01:00
Jorik Schellekens
fd25170c57
lint test
2020-04-27 11:51:55 +01:00
Jorik Schellekens
18db25f601
Fix test
2020-04-27 11:51:55 +01:00
Michael Telatynski
30a9094dc7
fix import in tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-23 10:19:06 +01:00
Michael Telatynski
59cc7f0867
here's hoping Synapse doesn't actually try to send an email :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-22 13:50:40 +01:00
Michael Telatynski
162531f1c5
try to enable e2e test synapse registration 3pid support
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-22 13:36:14 +01:00
Michael Telatynski
afabf9d4b1
Fix tests post-js-sdk-filters change
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-20 19:47:16 +01:00
Travis Ralston
dd444ffa5d
Merge pull request #4436 from matrix-org/travis/e2e-e2e-tests
...
Fix end-to-end tests for end-to-end encryption verification
2020-04-17 15:14:12 -06:00
Travis Ralston
432dbab8cb
Fix start chat button variable name
2020-04-17 15:06:59 -06:00
Travis Ralston
88b5c3ca84
Don't explode if the e2e test directory exists when crashing
...
This is largely expected in local test environments where the developer probably won't remember to clear out the directory themselves.
2020-04-17 14:39:45 -06:00
Travis Ralston
77df610653
Appease the linter a bit more
2020-04-17 14:38:05 -06:00
Travis Ralston
5a9898591d
Appease the linter
2020-04-17 14:35:02 -06:00
Travis Ralston
e72008d7f1
Fix end-to-end tests for end-to-end encryption verification
...
Fixes https://github.com/vector-im/riot-web/issues/13226
This isn't the fastest route, but it is a predictable route for the happy path we probably want to test. For example, Alice will already be staring at the DM and could easily accept the verification there, but we probably want to make sure that the toast is present and does the right thing. Similarly, neither of them need to verify that there's green shields everywhere, they should be implied, however an explicit check follows a real user's gaze.
2020-04-17 14:31:33 -06:00
Travis Ralston
885bb112ae
Merge pull request #4430 from matrix-org/dependabot/npm_and_yarn/test/end-to-end-tests/https-proxy-agent-2.2.4
...
Bump https-proxy-agent from 2.2.1 to 2.2.4 in /test/end-to-end-tests
2020-04-17 12:44:57 -06:00
Travis Ralston
e485f7a82c
Merge pull request #4432 from matrix-org/travis/e2e-docs
...
Minor updates to e2e test instructions on Windows
2020-04-17 09:54:58 -06:00
Travis Ralston
a5f5f759cb
Create unencrypted rooms by default in e2e-tests
...
Otherwise the lazy loading test will try to join the room after the encrypted messages have already been sent, making them invisible.
See https://github.com/vector-im/riot-web/issues/13226#issuecomment-614928362
2020-04-16 16:27:43 -06:00
Travis Ralston
0489dcc8da
Minor updates to e2e test instructions on Windows
2020-04-16 15:55:33 -06:00
dependabot[bot]
d05ceec9d6
Bump https-proxy-agent from 2.2.1 to 2.2.4 in /test/end-to-end-tests
...
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent ) from 2.2.1 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases )
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-04-16 18:53:03 +00:00
Travis Ralston
4af33d91eb
Track the issue number too
2020-04-16 12:26:08 -06:00
Travis Ralston
d04af1f3a8
Disable e2e tests for now
2020-04-16 12:24:04 -06:00
Travis Ralston
f4a5361b14
Wait a bit before continuing with the passphrase
...
The continue button is probably no-oping due to being disabled.
2020-04-16 12:13:05 -06:00
Travis Ralston
5769b07a92
Select the right continue button
...
There's no buttons in the field.
2020-04-16 12:04:48 -06:00
Travis Ralston
25fa675f88
Blind attempt at fixing the end to end tests
2020-04-16 11:46:29 -06:00
Michael Telatynski
e942a35525
Fixxy
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-16 14:09:41 +01:00
Michael Telatynski
9c1939b756
match all, not just first instance of tokens to escape
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-15 02:31:30 +01:00
Michael Telatynski
4454db30d6
Escape opening square bracket too
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-15 01:02:08 +01:00
Michael Telatynski
f1def8b0de
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-15 00:50:28 +01:00
Michael Telatynski
95eaf94cd8
Fix pills being broken by unescaped characters
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-15 00:40:38 +01:00
Michael Telatynski
8fdb41412f
Use URLSearchParams instead of transitive dependency querystring
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-12 01:45:58 +01:00
Travis Ralston
b4b0c4c6df
Add comments to highlight where we'll need m.widget support
...
For https://github.com/vector-im/riot-web/issues/13111
2020-04-09 15:14:07 -06:00
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
2020-04-03 01:14:31 +01:00
Travis Ralston
c86d75693b
Fix a number of minor code quality issues
...
Most of these are complaints from my IDE. Discovered by going through nearly every file looking for React warnings.
2020-03-31 14:05:56 -06:00
J. Ryan Stinnett
520b4c3e65
Add tests for was verified case
2020-03-30 16:33:22 +01:00
J. Ryan Stinnett
b53b5cc45d
Add wasCrossSigningVerified in test
2020-03-30 15:24:43 +01:00
Zoe
098df07c67
review feedback
2020-03-30 10:18:47 +01:00
Zoe
4f3d4426ea
lint
2020-03-27 15:37:59 +00:00
Zoe
fda533ab48
test for shield behaviour
2020-03-27 15:25:44 +00:00
Bruno Windels
5eaf03c3da
update e2e tests to expand local aliases when adding one
2020-03-09 17:03:50 +01:00
J. Ryan Stinnett
c70bfe1f91
Update loading test for JS SDK IDB change
...
Part of https://github.com/vector-im/riot-web/issues/12207
2020-02-27 14:57:52 +00:00
Travis Ralston
866ed68615
Ensure DMs tagged outside of account data work in the invite dialog
...
Fixes https://github.com/vector-im/riot-web/issues/12418
Includes a refactor so we don't need to litter the code with the same magic string for DM tags.
2020-02-24 19:43:49 -07:00
Michael Telatynski
72e5313a5a
Merge pull request #4113 from matrix-org/t3chguy/fix_downloading
...
Handle file downloading locally in electron rather than sending to browser
2020-02-24 13:37:16 +00:00
Bruno Windels
13b08b5fcc
Revert "Fix escaped markdown passing backslashes through"
2020-02-24 11:27:22 +00:00
Michael Telatynski
d783ce86c8
Use noreferrer in addition to noopener for edge case browsers
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-23 22:14:29 +00:00
Zoe
164b355ffe
abstract out the check for available target devices
2020-02-18 11:25:19 +00:00
Zoe
23596031db
rip foldleft, died of lint issues
2020-02-17 16:00:25 +00:00
Zoe
28df1e28cf
Start verification sessions in an E2E DM where possible
...
Fixes https://github.com/vector-im/riot-web/issues/12187
2020-02-17 15:08:22 +00:00
Hubert Chathi
4a204b715d
Merge pull request #4059 from matrix-org/uhoreg/refactor_event_grouping
...
refactor event grouping into separate helper classes
2020-02-14 10:35:34 -05:00
Bruno Windels
43f15ab47d
Merge pull request #4008 from BobVul/fix-markdown-escapes
...
Fix escaped markdown passing backslashes through
2020-02-14 09:18:53 +00:00
Hubert Chathi
908ca6b6ef
add test for grouping room creation events
2020-02-13 17:25:54 -05:00
Marco Zehe
8004a35179
Update to use proper quotes and fix code styling. And fix test.
...
Signed-off-by: Marco Zehe <marcozehe@mailbox.org>
2020-02-12 10:54:08 +01:00
Zoe
9a5663056d
lint
2020-02-11 12:06:40 +00:00
Zoe
6b6d612041
Fix error message rendering for key entry
...
Relates to https://github.com/vector-im/riot-web/issues/12288
2020-02-11 12:02:12 +00:00
Zoe
544479a6ee
test code cleaned up slightly
2020-02-04 11:31:16 +00:00
Zoe
150fe7a45a
Tests for MKeyVerificationConclusion
2020-02-04 11:25:19 +00:00
BobVul
1df6837649
Missing semicolon
2020-02-04 10:38:43 +11:00
BobVul
fde30577e4
Fix escaped markdown passing backslashes through
...
Fixes https://github.com/vector-im/riot-web/issues/11230
Signed-off-by: Bob Rao <bob+git@vulpin.com>
2020-01-31 12:33:57 +11:00
J. Ryan Stinnett
5c4b91457e
Fix tests
2020-01-30 22:28:56 +00:00
Travis Ralston
9722b34c35
Merge pull request #3906 from matrix-org/travis/user-lists-labs
...
Remove user lists feature flag, making it the default
2020-01-24 08:57:27 -07:00
Michael Telatynski
d7a4698db8
Merge pull request #3891 from matrix-org/t3chguy/fix_multi_paragraph_formatting
...
Fix paragraph-awareness of the composer formatting features
2020-01-23 13:31:12 +00:00
Travis Ralston
65450e893c
Try and fix e2e tests for new invite dialog
2020-01-22 22:40:02 -07:00
Michael Telatynski
97edb824bc
Merge pull request #3893 from matrix-org/t3chguy/double_slash
...
Slash Command improvements around sending messages with leading slash
2020-01-22 14:32:09 +00:00
Michael Telatynski
832da062cc
Improve trailing spurious breaks + tests
2020-01-22 13:37:27 +00:00
Michael Telatynski
e1e53f567f
add more tests
2020-01-22 11:56:27 +00:00
Michael Telatynski
fc724cfe70
fix tests some moar
2020-01-22 11:05:25 +00:00
Michael Telatynski
176605c302
update tests to match new rendering method
2020-01-22 10:49:58 +00:00
Michael Telatynski
9a530a72f6
delint
2020-01-21 15:36:25 +00:00
Michael Telatynski
b2aba6db35
Initial attempt to make toggleInlineFormat paragraph-aware
2020-01-21 15:32:32 +00:00
Michael Telatynski
397e116efb
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into t3chguy/roving
2020-01-20 20:48:11 +00:00
Michael Telatynski
9365a9cb30
Remove lolex where its not needed and move to dev-deps. Remove unused optimist
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-18 01:39:14 +00:00
Michael Telatynski
8ba54f5f7d
Don't use expect and jest-mock anymore as they're implicit from jest
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-18 01:38:22 +00:00
J. Ryan Stinnett
fb77bcf762
Remove spinner check
...
We may no longer see a spinner for some login paths with the changes to add a
complete security step.
Part of https://github.com/vector-im/riot-web/issues/11214
2020-01-16 16:07:49 +00:00
Michael Telatynski
4504d9b790
add tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-16 03:15:52 +00:00
Travis Ralston
3fb6b1ed63
Remove excessive sleep now that we're not using chrome
2020-01-15 15:31:08 -07:00
Travis Ralston
bcda501864
Replace usages of expect.toStartWith with boolean checks
2020-01-15 14:44:46 -07:00
Travis Ralston
84439cff86
Import the cryptostore from the right place
2020-01-15 14:06:44 -07:00
Travis Ralston
e37da08730
Replace beforeEach with just a cleanLocalstorage call
...
The rest isn't needed anymore.
2020-01-15 14:06:24 -07:00
Travis Ralston
3c9c0ec447
Leave the language handler setup to the test init scripts
2020-01-15 14:05:55 -07:00
Travis Ralston
161a1342b2
Swap over to Jest, breaking everything
2020-01-15 13:24:19 -07:00
Travis Ralston
a978a6734f
Fix CI tests
...
There's a bunch of generated files that webpack relies on to work, and Karma works off webpack. To make both happy we've added
a new `build:genfiles` script which takes care of this for us. We also have to install and build our other layers to get the
same effect (like generating the react-sdk's component index, while we still have one).
This commit also fixes all the imports in the tests because they were just wrong. They should have been caught in the ES6ification
earlier, but were missed.
2020-01-13 20:40:00 -07:00
Travis Ralston
1e70af00a3
Fix GroupView test
...
It was counting the wrong number of updates for reasons I don't understand.
2020-01-13 20:15:58 -07:00
Travis Ralston
bf6798e109
Appease the linter
2020-01-13 13:28:33 -07:00
Travis Ralston
e66f2a6c3f
Revert ES6ification of end-to-end tests and add instructions for Windows
...
Because the tests are run directly by node, we have to use the CommonJS module syntax. We could run the thing through babel, but then we just have another babel.
Windows instructions are from experience and may not be optimized.
2020-01-10 10:13:41 -07:00
Travis Ralston
aa38946166
Actually define some tests in TextualBody's test
...
Jest really wants you to do things the right way.
2020-01-09 17:24:13 -07:00
Travis Ralston
4bc5ada50e
Fix test bootstrap for new skinning approach
2020-01-09 17:23:46 -07:00
Travis Ralston
54f3288dea
Fix imports for tests
...
This doesn't fix the fact that someone called it "peg".
2020-01-09 17:23:27 -07:00
Travis Ralston
a8c8406ac4
Merge remote-tracking branch 'origin/t3chguy/jest' into travis/sourcemaps
2020-01-09 16:06:46 -07:00
Travis Ralston
dc914774fb
Delete files that were conflicting in the merge and deleted on develop
2020-01-09 14:19:19 -07:00
Travis Ralston
fde32f13a5
[CONFLICT CHUNKS] Merge branch 'develop' into travis/sourcemaps-develop
2020-01-09 14:15:09 -07:00
Michael Telatynski
245a68b3ba
Merge branches 'develop' and 't3chguy/clean_up_TextualBody' of github.com:matrix-org/matrix-react-sdk into t3chguy/clean_up_TextualBody
...
Conflicts:
yarn.lock
2020-01-09 12:17:21 +00:00
Travis Ralston
59f608ffd6
Merge pull request #3761 from matrix-org/travis/babel7-wp-es6-export
...
Convert CommonJS exports to ES6 exports
2020-01-08 09:09:11 -07:00
Michael Telatynski
7b91d2056b
Attempt to fix e2e tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-06 23:50:42 +00:00
Michael Telatynski
bdef54622b
delint and add copyright
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-06 14:52:08 +00:00
Michael Telatynski
f1de6d060a
Add a regression test for editing events and url previews
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-06 14:38:21 +00:00
Michael Telatynski
c551f2983a
Add TextualBody-test.js
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-06 13:28:29 +00:00
Michael Telatynski
c802f9a302
remove unused stale Test Suite
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-06 00:23:19 +00:00
Michael Telatynski
d31c863563
Remove all usages of slate in favour of CIDER
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-06 00:15:48 +00:00
Michael Telatynski
06230e01e3
Fix End-to-End tests for RoomSettings interactivity
2019-12-26 19:36:16 +00:00
Travis Ralston
17e332bb48
Import from src/ for the react-sdk and js-sdk
...
We compile directly for accuracy of sourcemaps.
2019-12-23 20:02:11 -07:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Travis Ralston
4aec432b30
Convert the more complicated CommonJS exports to ES6-style
2019-12-22 21:01:03 -07:00
Travis Ralston
344dac4fb9
Convert CommonJS exports to ES6-compatible exports
...
We use `export default` begrudgingly here. Ideally we'd use just `export`, though this entire SDK expects things to be exported as a default. Instead of breaking everything, we'll sacrifice our export pattern for a smaller diff - a later commit can always do the default export -> regular export conversion.
2019-12-22 21:01:02 -07:00
Michael Telatynski
513ec30ef1
Fix tests v2
2019-12-17 18:02:45 +00:00
Michael Telatynski
f3ca4c0b7c
fix tests
2019-12-17 17:54:19 +00:00
Michael Telatynski
da4d72b3c4
delint
2019-12-17 17:34:03 +00:00
Michael Telatynski
937b32663c
Migrate away from Legacy React Contexts
2019-12-17 17:26:12 +00:00
Michael Telatynski
b9e22f8141
add delay
2019-12-17 13:11:30 +00:00
Michael Telatynski
409a111b02
wait additional tick
2019-12-17 12:42:47 +00:00
Michael Telatynski
c3415d2121
delint
2019-12-17 12:09:01 +00:00
Michael Telatynski
802092bf9a
All tests passing locally. We no longer need Chrome in buildkite
2019-12-17 11:53:18 +00:00
Michael Telatynski
e6d8487302
Fix more tests
2019-12-17 11:47:01 +00:00
Michael Telatynski
ab3fb6581b
Down to 7 test failures
2019-12-17 11:24:37 +00:00
Michael Telatynski
0041dae664
26 test failures to go :D
2019-12-16 11:55:01 +00:00
Michael Telatynski
6ad31fe023
30 test failures to go :D
2019-12-16 11:12:48 +00:00
Michael Telatynski
ffa2ac172c
delint
2019-12-15 14:09:41 +00:00
Michael Telatynski
18f81d80db
Initial jest stuff. Blocked on Babel 7
2019-12-13 13:43:48 +00:00
Travis Ralston
7230d51cca
Merge pull request #3703 from matrix-org/travis/right-panel-v2
...
Refactor RightPanel to match expected behaviour
2019-12-11 10:50:45 -07:00
Travis Ralston
405b3f6be6
Fix member list not being open for end-to-end tests
2019-12-06 16:33:03 -07:00
Travis Ralston
185830e4f3
Fix end-to-end tests
...
The right panel needs to be opened manually now.
2019-12-06 14:22:27 -07:00
Michael Telatynski
a63fbbf2db
Add tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-05 00:11:10 +00:00
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.
2019-11-26 19:06:02 +00:00
Michael Telatynski
73990acf7a
use function over const lambda
2019-11-25 12:53:07 +00:00
Michael Telatynski
0a209fc340
Use promises in tests properly
2019-11-22 14:08:45 +00:00
Michael Telatynski
d4d51dc61f
Rip out the remainder of Bluebird
2019-11-18 10:03:05 +00:00
Michael Telatynski
b3760cdd6e
Replace usages of Promise.delay(...) with own utils
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-14 14:25:54 +00:00
Michael Telatynski
41f4f3ef82
make end-to-end test failure more verbose
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-14 14:04:50 +00:00
Michael Telatynski
168b1b68bb
Revert "s/.done(/.then(/ since modern es6 track unhandled promise exceptions"
...
This reverts commit 09a8fec2
2019-11-12 11:56:21 +00:00
Michael Telatynski
09a8fec261
s/.done(/.then(/ since modern es6 track unhandled promise exceptions
2019-11-12 11:51:23 +00:00
Michael Telatynski
6452cdca04
Don't oversubscribe mocha resolution methods v2.1
2019-11-04 13:28:53 +00:00
Michael Telatynski
c3ce52a6c0
Don't oversubscribe mocha resolution methods v2
2019-11-04 13:22:02 +00:00
Michael Telatynski
86eb601c34
Don't oversubscribe mocha resolution methods
2019-11-04 13:11:44 +00:00
Michael Telatynski
10e1d9093e
transform-async-to-promises: get rid of bluebird
2019-11-04 12:46:28 +00:00
Bruno Windels
616ff5ce76
adjust list item numbers in test that are now preserved
2019-10-22 15:43:40 +02:00
Bruno Windels
fc175a971c
Merge pull request #3537 from matrix-org/bwindels/merge-e2e-tests
...
Merge end-to-end tests
2019-10-21 08:31:35 +00:00
Bruno Windels
b03ebb964b
split up installing static webserver and riot copy
...
so we can just do the latter for the e2e tests on CI
2019-10-18 17:18:18 +02:00
Bruno Windels
dca968375d
Update test/end-to-end-tests/run.sh
2019-10-18 12:33:42 +00:00
Bruno Windels
3d15026da3
Update test/end-to-end-tests/run.sh
2019-10-18 12:33:32 +00:00
Bruno Windels
15a75737ff
Update test/end-to-end-tests/README.md
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:29:09 +00:00
Bruno Windels
76c7f58235
Update test/end-to-end-tests/README.md
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:28:58 +00:00
Bruno Windels
142a32b528
Update test/end-to-end-tests/README.md
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:28:47 +00:00
Bruno Windels
06e69d114f
Update test/end-to-end-tests/README.md
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:28:31 +00:00
Bruno Windels
5025a0ffea
Update test/end-to-end-tests/README.md
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:28:12 +00:00
Bruno Windels
8a028029ee
Update test/end-to-end-tests/install.sh
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:28:04 +00:00
Bruno Windels
6236909d93
Update test/end-to-end-tests/README.md
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:27:52 +00:00
Bruno Windels
683947e0b7
Update test/end-to-end-tests/README.md
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-18 12:27:43 +00:00
Bruno Windels
15bbf3a999
fix the lint fix
2019-10-10 12:12:13 +02:00
Bruno Windels
4b9a29cb60
put exec perms back on install script
2019-10-10 11:55:31 +02:00
Bruno Windels
6f9604992b
copyright
2019-10-10 11:42:59 +02:00
Bruno Windels
645a9d836f
install static webserver for server symlinked riot on CI
2019-10-10 11:40:04 +02:00
Bruno Windels
2d848bba29
fix lint
2019-10-09 17:57:55 +02:00
Bruno Windels
ebc2bba0c3
warn if not installed yet when running e2e tests
2019-10-09 17:37:57 +02:00
Bruno Windels
f8358fa4d0
make e2e test safe to run from anywhere
2019-10-09 17:37:41 +02:00
Bruno Windels
59cc36ca65
don't fetch riot/master by default when installing e2e tests
2019-10-09 17:34:40 +02:00
Bruno Windels
de21cb24e0
Merge remote-tracking branch 'e2etests/bwindels/use-cider' into bwindels/merge-e2e-tests
2019-10-09 17:12:50 +02:00
Bruno Windels
cad71913e9
only run riot static server if no riot url has been provided
2019-10-09 16:59:00 +02:00
Bruno Windels
ae38e0b357
Merge remote-tracking branch 'e2etests/bwindels/bigmerge' into bwindels/merge-e2e-tests
2019-10-09 16:55:32 +02:00
Bruno Windels
ca86969f92
move everything to subfolder to merge into react-sdk
2019-10-09 16:52:48 +02:00
Michael Telatynski
aae5bb9f39
Use new React Shallow renderer with hooks support
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 13:08:16 +02:00
Michael Telatynski
5c960dccb7
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 12:51:08 +02:00
Michael Telatynski
efeb6e87c4
Use new React Shallow renderer with hooks support
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 12:51:08 +02:00
Michael Telatynski
34530843f4
Factor out generic EventListSummary from MELS
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 12:50:03 +02:00
Travis Ralston
0862ad029d
Fix permalinks test
2019-09-30 21:15:31 -06:00
Travis Ralston
fc66e69c02
Rename RoomPermalinkCreator -> Permalinks due to scope
...
The file handles more than just a RoomPermalinkCreator, so we should name it accordingly.
2019-09-30 20:39:58 -06:00
Travis Ralston
64aa6695f5
Move matrix-to.js to utils/permalinks/RoomPermalinkCreator
...
Just a little bit of refactoring to make the feature of custom prefixes a bit easier.
2019-09-30 12:16:46 -06:00
Bruno Windels
7f4e070807
fix deserialize unit tests
2019-09-23 15:34:01 +02:00
Michael Telatynski
d5c96b86d4
fix test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-19 10:31:34 +01:00
Michael Telatynski
02dfdffc4f
Fix failing test due to newly added assumption
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-18 14:35:13 +01:00
Travis Ralston
99b8193ce7
Use the new ShallowRenderer over ReactTestUtils
...
Mostly because the ReactTestUtils renderer doesn't exist anymore.
2019-09-17 14:33:32 -06:00
Michael Telatynski
bf30cfe699
Fix other test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 17:44:04 +01:00
Michael Telatynski
1c7d67e8b3
fix test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 17:44:04 +01:00
Michael Telatynski
70ff2bc9cd
Switch to createReactClass: views/rooms and test/components. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-06 15:04:46 +01:00
Bruno Windels
be79cdddb0
apply autocomplete changes to mock to fix editor unit tests
2019-08-29 18:00:38 +02:00
Bruno Windels
c44fbb73d0
fix bug when replacing range starting at end of previous part
2019-08-28 15:52:39 +02:00
Bruno Windels
994bcb5c85
dont expect rendered to be called from range.replace()
anymore
...
as this is now called from the `transform` method, unused in this test
2019-08-27 16:43:05 +02:00
Bruno Windels
e0b99b5cc8
Merge pull request #3342 from matrix-org/bwindels/cider-replace-emoticons
...
Auto-replace emoticons with emojis in new composer
2019-08-27 14:40:53 +00:00
Michael Telatynski
bcbd603874
Merge pull request #3345 from matrix-org/t3chguy/react16_3
...
Switch from react-addons-test-utils to react-dom/test-utils. React 16 :D
2019-08-26 19:44:51 +01:00
Bruno Windels
0e65f71a37
support incrementing/decrementing doc positions with predicate
2019-08-26 16:16:27 +02:00
Bruno Windels
10291bafe0
add support for selecting ranges in the editor model, and replacing them
...
this to support finding emoticons and replacing them with an emoji
2019-08-26 16:16:27 +02:00
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>
2019-08-24 11:47:07 +01:00
Michael Telatynski
e5d3198f53
Merge pull request #3339 from matrix-org/t3chguy/substitute_handle_global
...
Iterate over all instances of variable/tag for _t substitutions
2019-08-23 19:43:40 +01:00
Michael Telatynski
310457059b
[i18n] only append tail if it is actually needed
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-22 18:31:02 +01:00
Michael Telatynski
b5daba9026
Iterate over all instances of variable/tag for _t substitutions
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-22 18:17:08 +01:00
Bruno Windels
5cebce9bbf
fix bug detected by tests
2019-08-22 14:41:40 +01:00
Bruno Windels
1dd052d9dd
fix test after refactoring
2019-08-22 14:38:24 +01:00
David Baker
a87fb7eaa2
also remove from comment
2019-08-16 15:36:41 +01:00
David Baker
3c4c595f79
remove old serverCaps
2019-08-16 15:27:11 +01:00
David Baker
19c7a4627d
fix test
2019-08-16 12:24:52 +01:00
Bruno Windels
299cf8542c
Split MessageEditor in edit-specifics & reusable part for main composer
2019-08-05 15:31:18 +02:00
Bruno Windels
af3eebd0a6
add undo steps after word boundary (or capped) when typing or removing
2019-08-02 11:31:01 +02:00
Michael Telatynski
06e7a48aaf
Switch to React 16.8
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-01 15:31:33 +01:00
Bruno Windels
07b2e51dce
put max step length in constant
2019-08-01 16:27:17 +02:00
Bruno Windels
aa22c90f2c
HistoryManager + unit tests
2019-08-01 11:25:04 +02:00
Michael Telatynski
201d7fb448
Merge branches 'develop' and 't3chguy/prop-types' of github.com:matrix-org/matrix-react-sdk into t3chguy/prop-types
...
# Conflicts:
# test/components/structures/MessagePanel-test.js
2019-07-31 12:21:00 +01:00
Michael Telatynski
1087e04bb5
Replace React.PropTypes with usage of the prop-types
package
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-31 12:19:29 +01:00
J. Ryan Stinnett
fb77802d54
Merge pull request #3260 from matrix-org/t3chguy/hide_msg_action_buttons_on_perms
...
Introduce RoomContext for sharing state between RoomView and children
2019-07-31 11:43:26 +01:00
J. Ryan Stinnett
c338f8bf1f
Add room
context to test
2019-07-31 11:17:28 +01:00
Bruno Windels
e855a056c7
Merge pull request #3247 from matrix-org/bwindels/editortests
...
Unit tests for new editor
2019-07-30 14:46:33 +00:00
Bruno Windels
4b08bf0e76
add tests for removing multiple characters in edit
2019-07-30 12:31:40 +02:00
Michael Telatynski
fd039431bc
put maySendMessage stub on stubRoom in the right place
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 13:50:11 +01:00
Michael Telatynski
ac66388a7f
Add missing stubs to stubRoom.currentState
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 13:27:49 +01:00
Michael Telatynski
f45b1bfdda
Fix StubRoom for react-sdk tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 13:18:02 +01:00
Michael Telatynski
265ff452d7
Upgrade mockRoom to implement EventEmitter like mxRoom does
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 12:39:44 +01:00
Bruno Windels
b8a3c5ebd0
test serialization only produces html messages when needed
2019-07-25 18:47:29 +02:00
Bruno Windels
0b92077bba
tests for turning caret position from model into dom position
2019-07-25 18:38:00 +02:00
Bruno Windels
e8a31edeba
test html to editor model deserialization
2019-07-25 17:27:47 +02:00
Bruno Windels
08ff9e598a
put mock code in separate file to reuse elsewhere
2019-07-25 17:27:29 +02:00
Bruno Windels
94957fcfd0
add more tests for empty lines
2019-07-25 16:06:43 +02:00
Bruno Windels
7f5ba08de9
test typing in middle of pills
2019-07-25 15:06:32 +02:00
Bruno Windels
a474f53c51
more auto-complete tests
2019-07-25 14:50:20 +02:00
Bruno Windels
d6133eefd9
tests for non-editable parts
2019-07-25 14:50:20 +02:00
Bruno Windels
a7259b31b6
first set of model tests
2019-07-25 14:50:20 +02:00
Bruno Windels
419c800167
add tests for diffAtCaret
2019-07-25 14:50:20 +02:00
Bruno Windels
595dc82543
unit test + fixes + comments + simplication for diffDeletion
2019-07-25 14:50:20 +02:00
David Baker
2eb8a8879b
Merge pull request #3199 from matrix-org/dbkr/terms
...
ToS for ISes/IMs: prompt on use screen
2019-07-23 10:32:11 +01:00
Travis Ralston
ff0c4c0571
Merge pull request #3211 from matrix-org/travis/send-proper-uia
...
Send the correct UIA alongside the wrong UIA for backwards comaptibility
2019-07-12 08:14:01 -06:00
Travis Ralston
f3e82b56e9
Remove unused disable_identity_server config flag
...
Fixes https://github.com/vector-im/riot-web/issues/10229
2019-07-11 15:11:59 -06:00
Travis Ralston
7a3aa9be2e
Remove unused identityEnabled property from ValidatedServerConfig
...
See https://github.com/vector-im/riot-web/issues/10229
2019-07-11 15:11:09 -06:00
Travis Ralston
ba5238d86a
Finally fix tests
2019-07-11 15:01:56 -06:00
Travis Ralston
698fd3b897
Hopefully actually make the tests happy
2019-07-11 14:45:36 -06:00
Travis Ralston
a9419135aa
Fix tests to use UIA proper
2019-07-11 14:38:28 -06:00
David Baker
e6fdff43d8
unsused variable
2019-07-11 16:02:02 +01:00
David Baker
69fa34d71f
Fix ScalarAuthClient to refresh tokens if they fail
...
Also add a test to make sure it does it
2019-07-11 16:00:24 +01:00
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
c68a621a71
Fix tests for liveliness checks
2019-06-05 09:53:22 -06: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
fc5c93ab5f
Fix unit tests for new login
...
Supply a server config to the component and adjust the wait logic to be less of a race. The Login component will noop onPasswordLogin if it is "busy", and it is busy when it requests the login flows.
2019-05-03 16:27:41 -06:00
Travis Ralston
ae63df95ea
Fix tests to use new serverConfig prop
2019-05-03 11:34:30 -06:00
Travis Ralston
a5092dc763
Fix tests to use new server config options
2019-05-03 11:06:32 -06:00
J. Ryan Stinnett
eb1d1517ca
Setup crypto store for restore session tests
...
The new storage consistency work expects a crypto store exist together with
local storage. This updates the loading tests to create them together.
Needed for https://github.com/vector-im/riot-web/issues/9109
2019-03-29 18:01:04 +00: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
J. Ryan Stinnett
fef69b54fb
Use on_logged_in
action in tests
...
This changes the way tests wait for login to complete from a timer-based system
(which can cause intermittent failures) to an action-based system. The lifecycle
code dispatches the action `on_logged_in` when login completes which we can wait
for in the tests as a much better indication that work is done.
2019-03-26 15:21:53 +00:00
J. Ryan Stinnett
5112b33af2
Remove unused test helper
2019-03-26 14:41:10 +00:00
J. Ryan Stinnett
f321aba4ac
Convert away from Promise.defer
...
`Promise.defer` is deprecated in Bluebird and it logs loudly each time it's
called. This cleans up testing logs significantly by converting away from it.
2019-03-26 12:46:26 +00: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
David Baker
ad95ca4e86
Add home page to fix loading tests
2019-02-14 13:29:57 +00: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
585d28692d
Fix loading tests for welcome page
2019-02-11 15:18:29 +00:00
J. Ryan Stinnett
50baa09f5e
Revert "Disable even more tests"
...
This was only done because CI was missing
matrix-org/matrix-react-sdk@5977859dd9 .
This reverts commit e55ceef905
.
2019-02-11 10:06:44 +00:00
David Baker
fdb7a781e0
Merge pull request #8466 from vector-im/jryans/add-welcome-page
...
Add configurable welcome page
2019-02-08 17:17:24 +00:00
J. Ryan Stinnett
e55ceef905
Disable even more tests
2019-02-08 16:57:08 +00:00
J. Ryan Stinnett
ec83f792ad
Fix / disable tests after welcome page
2019-02-08 16:35:39 +00:00
Bruno Windels
758723256e
fix app tests after force enabling lazy loading + removing feature flag
2019-02-08 11:48:06 +00: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
cec8a77d52
Disable room directory test because it doesn't work
...
See enclosed comments.
2019-01-30 00:11:01 -07:00
Travis Ralston
d20bdbbc1a
Disable room settings tests
2019-01-28 14:11:10 -07:00
J. Ryan Stinnett
2d360eab74
Remove support for team servers
2019-01-25 16:14:04 -06: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
e98346e7cd
Rename login directory to auth
2019-01-21 17:46:03 -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
David Baker
0e580635eb
Update tests for new platform layout
2018-12-18 18:13:51 +00:00
Richard van der Hoff
6ca0b3ad03
Update the tests to match https://github.com/matrix-org/matrix-react-sdk/pull/2340
...
See the react-sdk PR for some context.
2018-12-11 16:14:17 +00: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
David Baker
1dfaf70562
Revert "Revert "Run lint on travis builds and use modern node versions""
2018-11-22 18:25:55 +00:00
David Baker
f701e2601a
Revert "Run lint on travis builds and use modern node versions"
2018-11-22 18:17:09 +00: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
Aaron Raimist
70fe4f67ee
eslint --fix on test/
2018-10-19 20:59:07 -05: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
c8b26a1002
fix tests
2018-04-16 00:23:34 +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
Matthew Hodgson
8757c8cae0
move notif UTs to sdk
2018-04-12 20:24:44 +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
Michael Telatynski
f7a26ddb91
fix (race?) broken tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-11-19 20:46:40 +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
Stefan Parviainen
cdd03dd1c5
Use toEqual instead of toBe
2017-11-14 19:34:47 +01:00
Stefan Parviainen
2acd42e7c5
Make eslint happy
2017-11-13 21:10:08 +01:00
Stefan Parviainen
672d5080ad
Add unit tests for translation
2017-11-13 20:20:41 +01:00
Travis Ralston
10519f9465
Fix the tests
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-11-05 14:56:41 -07:00
Travis Ralston
ae10a11ac4
Convert synced settings to granular settings
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-29 01:43:52 -06:00
Luke Barnard
8a64123ab8
Add sensible missing entry generator for MELS tests
...
Fixes vector-im/riot-web#5426 (because we don't test plurals anywhere else)
2017-10-27 16:55:13 +01:00
Matthew Hodgson
b9cf2c6b6c
remove 'return to app' test
2017-10-26 18:08:42 +01:00
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.
2017-10-11 17:56:17 +01:00
David Baker
c32e736754
Comment why we don't expect joining flag to reset
2017-09-19 10:23:12 +01:00
David Baker
30efd02d22
Fix test for new behaviour of 'joining' flag
...
It's no longer reset when the join request completes, so don't
assert it. (The important test is later, asserting that the room
object is non-null).
2017-09-15 15:57:37 +01:00
turt2live
0363f73e28
Fix the MessagePanel test
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-09-14 20:57:28 -06:00
David Baker
609d61d53c
Revert "Implement sticky date separators"
2017-09-06 17:40:58 +01:00
Luke Barnard
69bce6aee5
Update tests to reflect not supressing first date separator
2017-08-30 17:35:26 +01:00
Luke Barnard
c4f049effe
Merge pull request #1243 from matrix-org/t3chguy/hide-join-part-2
...
T3chguy/hide join part (attempt) 2
2017-07-26 17:15:43 +01:00
Luke Barnard
f7145941fd
Add tests to assert correct MD mention link stripping
...
Tab-completed @Mentions should only be sent as display names in the `body` of the event. The HTML should be unaffected, and always sent as an anchor tag.
2017-07-24 14:42:20 +01:00
Michael Telatynski
928294eba3
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/hide-join-part-2
2017-07-21 19:23:42 +01:00
Michael Telatynski
f036fd1d0f
first attempt at stubbing tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-07-21 19:16:30 +01:00
Richard van der Hoff
238afde00a
Increase the timeout for clearing indexeddbs
...
Chrome seems to take ages (like, 1500ms regularly) to clear out the indexeddbs,
and that's causing test timeouts. Bump the timeout to hack around it.
Also: clear both dbs in parallel (can't hurt, right?) and improve diagnostics
on the process.
2017-07-20 11:01:27 +01:00
Richard van der Hoff
66ddf25977
Deflake the joining test
...
Just give the client longer to get started (it seems to be taking a long time
to get started talking to indexeddb)
2017-07-14 16:14:42 +01:00
Richard van der Hoff
32ef273f9d
use flushAllExpected in joining test
...
It won't do much to help with the vm stopping for 300ms, but it should make the
code and logs clearer.
2017-07-13 13:23:10 +01:00
Richard van der Hoff
76181f4771
Merge remote-tracking branch 'origin/develop' into rav/bluebird
2017-07-13 12:04:54 +01:00
Richard van der Hoff
69eb1a49d4
Fix a broken test
...
turns out that you could call defer.resolve on q defers as an unbound function,
whereas that doesn't work with bluebird promises.
2017-07-13 00:56:13 +01:00
Richard van der Hoff
4c5b5ca0ba
replace q.Promise
with new Promise
2017-07-13 00:50:01 +01:00
Richard van der Hoff
d5b550f89a
replace q method calls with bluebird ones
...
```
find src test -name '*.js' |
xargs perl -i -pe 's/q\.(all|defer|reject|delay|try|isFulfilled)\(/Promise.$1(/'
```
2017-07-13 00:50:01 +01:00
Richard van der Hoff
b29b4a959b
q(...) -> Promise.resolve
...
```
find src test -name '*.js' | xargs perl -i -pe 's/\b[qQ]\(/Promise.resolve(/'
```
2017-07-13 00:50:01 +01:00
Richard van der Hoff
10decf95f6
replace imports of q
with bluebird
...
update `package.json`
```
find src test -name '*.js' |
xargs perl -i -pe 'if (/require\(.[qQ].\)/) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
find src test -name '*.js' |
xargs perl -i -pe 'if (/import [qQ] /) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
```
2017-07-13 00:48:31 +01:00
Richard van der Hoff
b2403d59b7
loading tests: wait for login component
...
Rather than a fixed delay, use matrix-react-test-utils to wait for the login
component to appear. Hopefully this will deflakify some tests.
2017-07-13 00:18:49 +01:00
Richard van der Hoff
0d7cc59d99
replace q method calls with bluebird ones
...
```
find src test -name '*.js' |
xargs perl -i -pe 's/q\.(all|defer|reject|delay|try|isFulfilled)\(/Promise.$1(/'
```
2017-07-12 18:05:40 +01:00
Richard van der Hoff
0254d2b3a2
q(...) -> Promise.resolve
...
```
find src test -name '*.js' | xargs perl -i -pe 's/\b[qQ]\(/Promise.resolve(/'
```
2017-07-12 18:05:08 +01:00
Richard van der Hoff
a06bd84213
replace imports of q
with bluebird
...
update `package.json`
```
find src test -name '*.js' |
xargs perl -i -pe 'if (/require\(.[qQ].\)/) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
find src test -name '*.js' |
xargs perl -i -pe 'if (/import [qQ]/) { $_ = "import Promise from '\''bluebird'\'';\n"; }'
```
2017-07-12 18:05:08 +01:00
Richard van der Hoff
7455002b1a
InteractiveAuthDialogTest: increase timeout
...
Blindly increase the number of attempts, because it's failing on travis, but
not on my dev box...
2017-07-12 00:24:00 +01:00
Richard van der Hoff
ab61b6b1b6
Use matrix-react-test-utils rather than our own impl
...
waitForRenderedDOMComponentWithTag is now in matrix-react-test-utils.
2017-07-11 23:14:56 +01:00
Luke Barnard
3bab720a7b
Merge pull request #1208 from matrix-org/rav/timelinepanel_test_flakiness
...
Fix a flaky test in the timelinepanel code
2017-07-11 18:10:55 +01:00
Richard van der Hoff
1139dd2be5
Fix a flaky test in the timelinepanel code
...
Sometimes it was possible for there to be a scroll event before the initial
pagination completed, which then upset the rest of the test. Just give it a few
ms to sort itself out instead.
2017-07-11 17:34:46 +01:00
Luke Barnard
c9df079464
Merge pull request #1176 from matrix-org/luke/feature-enable-RTE
...
Take RTE out of labs! 🎉
2017-07-10 13:56:00 +01:00
Richard van der Hoff
167ce88a80
Rewrite ScrollPanel test
...
It turns out that Chrome now implements scroll-anchoring itself (ie, content
stays in the same place when you add more stuff off-screen), which means we
cannot rely on back-pagination to make ScrollPanel do a scroll.
Instead, just do a scrollToToken. Which turns out to be considerably simpler
anyway.
2017-07-05 14:34:25 +01:00
Richard van der Hoff
bd1196716a
Use external mock-request
...
mock-request is now factored out to matrix-mock-request; use it
2017-07-04 15:59:21 +01:00
Luke Barnard
e3f2eb5232
Take RTE out of labs! 🎉
...
This stops react-sdk from tracking any state previously stored for the purposes of enabling or disabling the lab feature that enabled the new MessageComposer. It is now enabled permanently.
This is being done with the hope that we can get more feedback for it so that when we release we can be confident that people will be OK with the changes it brings.
2017-07-04 14:44:55 +01:00
Luke Barnard
030358e764
Clarify test names
2017-06-30 12:56:19 +01:00
Luke Barnard
80a73a50f5
Update tests
...
When sending the letter "a" we expect it to be sent as a text message when RTE is enabled because we now detect that there is no formatting or styled blocks in the composer. We also expect emoji to be sent as plaintext if there is no formatting
2017-06-30 12:39:08 +01:00
Luke Barnard
004d4828f8
Make the tests pass
...
sendTextMessage is not called when RTE Markdown is enabled, but rather sendHtmlMessage
2017-06-23 17:08:37 +01:00
Richard van der Hoff
ca3399df77
Clean up some log outputs from the integ tests
2017-06-20 17:41:21 +01:00
Richard van der Hoff
abf21675d5
Add some more logging to the tests
...
... to help diagnose when they fail
2017-06-20 16:24:04 +01:00
Richard van der Hoff
557d4ae4c1
Test 'return-to-app' functionality
...
Add a test for the 'log in as user' functionality, as well as the 'return to
app' functionality.
2017-06-19 10:47:36 +01:00
Richard van der Hoff
5a8a41ad50
Merge branch 'develop' into rav/fix_token_redirect
2017-06-19 09:05:19 +01:00
Richard van der Hoff
60be24c665
Rename promise
2017-06-19 09:04:24 +01:00
Richard van der Hoff
6df1574b8b
onLoadCompleted is now onTokenLoginCompleted
2017-06-16 15:05:14 +01:00
Richard van der Hoff
f5b2a92e84
Give the login panel a bit longer to appear
2017-06-15 18:17:00 +01:00
Richard van der Hoff
1fcd462660
Tweak tests to match updates to matrixchat
...
Mostly this is just making it look at the `view` state rather than the
individual boolean flags.
One other tweak merits explanation: we now implement the initial
couldn't-register-as-guest login with an explicit switch to the LOGIN view,
which means that the URL gets updated to #/login.
2017-06-15 17:52:18 +01:00
Richard van der Hoff
584e4c04da
Merge pull request #4313 from vector-im/rav/deflakify_joining_test
...
Attempts to deflakify the joining test
2017-06-15 16:29:37 +01:00
Richard van der Hoff
a7a7ffd84b
Merge pull request #4315 from vector-im/rav/test_rts_login
...
Add a test for the login flow when there is a teamserver
2017-06-15 16:13:05 +01:00
Richard van der Hoff
a28af8bcc6
Extend timeouts in joining tests again
...
this seems to work? maybe?
2017-06-15 16:01:26 +01:00
Richard van der Hoff
43f56483aa
Merge branch 'develop' into rav/deflakify_joining_test
2017-06-15 15:48:13 +01:00
Richard van der Hoff
ca736cfce8
fix test description
...
logs in, not registers
2017-06-15 14:54:32 +01:00
Richard van der Hoff
98e694646c
Add a test for the login flow when there is a teamserver
...
- just to check it keeps working.
2017-06-15 02:17:24 +01:00
Richard van der Hoff
6f2eee1f03
Attempts to deflakify the joining test
...
Treat the waitTime passed into `flush` as a timeout rather than a
time-between-loops, so that we can pass in bigger times and not slow the tests
down too much.
Bump the timeout when waiting for /publicRooms and /initialSync in the joining
test.
2017-06-14 22:58:12 +01:00
Richard van der Hoff
4ca009b9f7
Remove onload simulator from loading test
...
This used to exist to reproduce the functionality in the window.onload handler
in vector/index.js -- which got removed in 31915db
. Having it here is confusing
at best.
2017-06-14 18:01:44 +01:00
Richard van der Hoff
5ff59b0c23
Tests: delete indexeddbs after running
2017-06-14 17:08:49 +01:00
Richard van der Hoff
27d5704978
Improve logging in mock-request
...
Try to make it a bit more obvious what's been going on in mock-request: add
timestamps to lines, and an identifier so that where we have two flushes in
parallel, we can see what's what.
2017-06-14 16:59:46 +01:00
Richard van der Hoff
59da904353
Check that we don't register a guest account on /#/login ( #4306 )
...
If you go straight to a /#/login link, we shoudn't go registering guest
accounts or reanimating the saved creds.
2017-06-14 16:59:00 +01:00
Richard van der Hoff
aa07266f12
Test that we handle stored mx_last_room_id correctly
...
* Do we show the last room correctly on resume?
* Do we show the home page if we have no last room?
* If we follow a login link, and re-log-in, do we correctly vape the
mx_last_room_id (#4283 )
2017-06-13 12:52:35 +01:00
Richard van der Hoff
57b4c422b1
Merge pull request #1061 from matrix-org/rav/megolm_key_encryption_errors
...
Improve error logging/reporting in megolm import/export
2017-06-12 10:09:52 +01:00
Luke Barnard
de334cccfd
Expect to see HTTP /join/#some:alias when we the view knows it
2017-06-08 18:01:55 +01:00
Luke Barnard
3218cae6e3
Expect to join by alias if given to RVS
2017-06-08 17:47:48 +01:00
Richard van der Hoff
b16e652acc
rewrite MegolmExportEncryption using async/await
...
... to make it easier to add exception handling
2017-06-08 14:45:01 +01:00
Richard van der Hoff
d9bc8ebc53
de-lint MegolmExportEncryption + test
2017-06-08 14:29:53 +01:00
David Baker
8e288e14bf
Add more hacky q.delays
...
To work around the fact that we now do more trips around the
event loop to update view state (because of going vis the store).
Also add comment saying how horrible this is.
2017-06-06 15:59:24 +01:00
David Baker
15d0bd9271
Partially revert https://github.com/vector-im/riot-web/pull/4201
...
The q.delay is needed to make sure (or at least reasonably
sure...) that the login component has appeared by that point. The
done handler needs to be the error callback too otherwise failures
result in timeouts rather than the actual failure.
2017-06-06 15:54:45 +01:00
Luke Barnard
feaff9d99d
Fix tests for new-guest-access
...
This time the test wasn't being flaky, but it does inspect a lot of the internal of RoomView, which has had some modifications recently. I've updated the test to reflect this and it passes locally.
Also, fix a bug in HomePage with an undeclared "error" which should be "err".
Let's see what Travis thinks of this!
2017-06-05 20:16:44 +01:00
Luke Barnard
619830617a
Merge branch 'develop' into luke/ilag-i18n
...
In order to get ILAG internationalised
Conflicts:
src/components/structures/LoggedInView.js
src/components/structures/MatrixChat.js
src/components/views/dialogs/ChatCreateOrReuseDialog.js
src/components/views/dialogs/SetDisplayNameDialog.js
src/createRoom.js
src/i18n/strings/en_EN.json
2017-06-05 16:08:03 +01:00
Luke Barnard
7808994b71
Modify RVS test to wait until room loaded
...
This allows for the alias resolution to occur before a join is attempted. In theory, join_room could in future do an optional view_room-esque thing before attemping a join which would be less fragile than dispatching things in the right order.
Also, make sure the store indicates that it is not loading when a room ID has been used - no alias resolution need take place.
2017-06-02 09:22:48 +01:00
Marcel
1b35f816fb
Fix languages.json
2017-06-01 21:10:32 +02:00
Marcel
46750c4b9b
Fix tests for PR #989
2017-06-01 20:40:27 +02:00
Luke Barnard
6cc7fa3a36
Expect a HomePage now instead of a directory, because one is now shown by default
2017-05-30 12:55:50 +01:00
Matthew Hodgson
5c885922d9
Merge branch 'develop' into new-guest-access
2017-05-28 22:58:18 +01:00
David Baker
e07f9a8bc9
Pass through i18n keys in karma tests
2017-05-26 15:29:58 +01:00
David Baker
9c7731e141
Don't include src in the test resolve root
...
As https://github.com/matrix-org/matrix-react-sdk/pull/931
2017-05-26 14:02:03 +01:00
David Baker
bb344740dd
Add test languages file
2017-05-26 13:09:29 +01:00
David Baker
0de0b8954d
Trailing whitespace
2017-05-26 12:03:36 +01:00
David Baker
e44f3cc709
Fix tests
...
* Serve translation files from the karma server
* Port UserSettingsStore to ES6 exports because the test runner
gets confused by ES6 importing a commonjs module
* Remove extra spaces in translations strings for MELS
* Fix 'his/her' back to be 'their'
* Change test to expect singular 'invitation' for a single person
(there may be multiple invitations, but IMO this should be
'rejected n invitations' and we can play with the wording later,
I don't think the singular is any worse than the plural).
* set language in the MELS tests (and wait for it to complete)
* Don't bother setting lang in other tests for now
2017-05-26 11:58:45 +01:00
David Baker
dfc8cf3f54
Merge branch 'dbkr/dont_put_src_in_resolve_root' into dbkr/translations
2017-05-25 23:16:39 +01:00
David Baker
ba8e37a84e
Don't include src in the test resolve root
...
Don't include src in resolve root for the karma test, as otherwise
modules from react sdk get pulled in instead of npm libraries like
'extend' which breaks everything in really subtle ways.
2017-05-25 23:13:49 +01:00
Luke Barnard
298c5e4df3
Implement a store for RoomView
...
This allows for a truely flux-y way of storing the currently viewed room, making some callbacks (like onRoomIdResolved) redundant and making sure that the currently viewed room (ID) is only stored in one place as opposed to the previous many places.
This was required for the `join_room` action which can be dispatched to join the currently viewed room.
Another change was to introduce `LifeCycleStore` which is a start at encorporating state related to the lifecycle of the app into a flux store. Currently it only contains an action which will be dispatched when the sync state has become PREPARED. This was necessary to do a deferred dispatch of `join_room` following the registration of a PWLU (PassWord-Less User).
The following actions are introduced:
- RoomViewStore:
- `view_room`: dispatch to change the currently viewed room ID
- `join_room`: dispatch to join the currently viewed room
- LifecycleStore:
- `do_after_sync_prepared`: dispatch to store an action which will be dispatched when `sync_state` is dispatched with `state = 'PREPARED'`
- MatrixChat:
- `sync_state`: dispatched when the sync state changes. Ideally there'd be a SyncStateStore that emitted an `update` upon receiving this, but for now the `LifecycleStore` will listen for `sync_state` directly.
2017-05-24 16:56:13 +01:00
David Baker
d419c42a4f
Squash merge https://github.com/matrix-org/matrix-react-sdk/pull/801
2017-05-23 15:16:31 +01:00
Richard van der Hoff
ea67fa9c16
More riot-web test deflakification
...
Two changes:
1. wait longer for /sync to arrive in the loading tests, via an
`expectAndAwaitSync` method.
2. https://github.com/matrix-org/matrix-react-sdk/pull/773 made it possible for
MatrixChat to not show its syncing spinner despite `loading` being
false. Update `awaitSyncingSpinner` accordingly, so that it doesn't fail
when it happens to check MatrixChat at just taht moment.
2017-05-19 13:33:50 +01:00
Richard van der Hoff
f16086bbea
Attempt to deflakify joining test
...
give the client a bit longer to get started.
2017-05-18 13:39:33 +01:00
Richard van der Hoff
f60773ae1f
mock-request: improve logging
...
attempt to make the logging a bit more comprehensible
2017-05-18 13:37:23 +01:00
Richard van der Hoff
a39a7c8334
Update to more recent mock-request
...
Just copy-and-paste the updated version from js-sdk in here.
2017-05-18 12:18:57 +01:00
Luke Barnard
e1089574ae
Write some tests for the RTS UI
...
Add tests that make assertions about the UI during registration when registration is done with a user recognised as a team member (by the mock rtsClient).
2017-05-17 09:46:17 +01:00
Luke Barnard
5151264f60
Merge branch 'develop' into new-guest-access
...
Conflicts:
src/component-index.js
2017-05-11 13:22:30 +01:00
Luke Barnard
bfa3123f9b
Combine data-scroll-token and -contained-scroll-tokens
...
- Instead of using one attribute, use one that might just contain one token
- Use the first token when tracking a child
- Mandate that no commas can be in individual tokens
2017-05-04 10:00:13 +01:00
Luke Barnard
13d37e43ff
Mock isGuest
2017-05-02 10:14:54 +01:00
Richard van der Hoff
593e101521
Fix a flaky test
...
Depending on timing, the first `httpBackend.flush()` could end up just flushing
a '/presence' call rather than the initial sync. The fix to that is simply to
not set the expectation on /presence.
While we're there, split out the flushes of /publicRooms and
/thirdparty/protocols, so that we can be sure that they happen.
There is probably still a bunch of flakiness there, but this should fix one
particular instance.
2017-04-18 13:45:31 +01:00
Luke Barnard
e40d3852ff
Fix tests to reflect recent changes
...
This is an attempt to reduce flakiness (see https://github.com/matrix-org/matrix-react-sdk/pull/781 also)
2017-03-29 16:07:11 +01:00
David Baker
23c38bd8a3
Put back both done's
...
mocha takes the exception arg and does the right thing
2017-03-16 17:47:15 +00:00
David Baker
375ae8fb04
Fix password UI auth test
...
By adding a way to wait a short time for a component to appear in
the DOM, so we don't get flakey failures like this when we change
something to returning a promise that needs to resolve before the
component actually appears.
2017-03-16 17:26:42 +00:00
David Baker
c4d3d66f31
Support for phone number registration/signin, mk2
...
Changes from https://github.com/vector-im/riot-web/pull/3381
2017-03-14 14:45:54 +00:00
Richard van der Hoff
e5b3ec83b3
Revert "Support for phone number registration / signin ( #3381 )"
...
This reverts commit 271fedd1e9
.
This breaks against the current synapse release. We need to think more
carefully about backwards compatibility.
2017-03-09 20:41:11 +00:00
David Baker
271fedd1e9
Support for phone number registration / signin ( #3381 )
...
* WIP msisdn signin (css)
* Changed how highlights are done
to support keyboard based navigation
* Support for new InteractiveAuth registration
* CSS for msisdn auth entry component
* CSS tweaks for msisdn login
* Fix tests
2017-03-09 10:58:58 +00:00
David Baker
51467506f8
Port registration over to use InteractiveAuth
...
These changes are moved over from the dbkr/msisdn_signin branch
2017-02-24 11:41:23 +00:00
Kegan Dougal
d876e4482b
Fix broken tests caused by adding IndexedDB support
...
This test assumed that `/sync` would be called immediately after rendering
`<MatrixChat />` but this isn't true in an IndexedDB world: it bounces via
`store.startup()` first.
It looks like the tests resolve this by adding `q.delay(1)` so that's what
I've done: in the future it would be better to extend `HttpBackend` to have
a `waitFor(req) Promise` function so we can removing timing from the tests.
2017-02-17 14:32:08 +00:00
David Baker
8fc3104507
Replace submit button with a spinner when busy
...
and update test accordingly
2017-02-13 18:52:33 +00:00
Richard van der Hoff
5368c87dc1
Fix tests to run crypto code
...
Return a device_id from /login requests, so that all the crypto logic works.
2017-02-02 23:41:49 +00:00
David Baker
6f53b2de2c
Merge pull request #663 from matrix-org/rav/fix_tests
...
Make tests pass on Chrome again
2017-02-01 10:20:30 +00:00
Richard van der Hoff
cd1cf09dc9
Make tests pass on Chrome again
...
It seems that a number of the tests had started failing when run in
Chrome. They were fine under PhantomJS, but the MegolmExport tests only work
under Chrome, and I need them to work...
Mostly the problems were timing-related, where assumptions made about how
quickly the `then` handler on a promise would be called were no longer
valid. Possibly Chrome 55 has made some changes to the relative priorities of
setTimeout and sendMessage calls.
One of the TimelinePanel tests was failing because it was expecting the contents
of a div to take up more room than they actually were. It's possible this is
something very environment-specific; hopefully the new value will work on a
wider range of machines.
Also some logging tweaks.
2017-01-31 22:40:53 +00:00
Richard van der Hoff
c5f447260a
Megolm import: Fix handling of short files
...
Make sure we throw a sensible error when the body of the data is too short.
2017-01-31 12:30:30 +00:00
Luke Barnard
24e94787dd
A lot of linting
2017-01-25 10:52:55 +00:00
Luke Barnard
d5edf26371
Improve comment
2017-01-25 10:39:39 +00:00
Luke Barnard
e9719b1766
Get rid of .only
2017-01-25 09:12:29 +00:00
Luke Barnard
bd106968ce
Merge branch 'develop' into luke/fix-join-part-collapsing-causality
...
Conflicts:
src/components/structures/MessagePanel.js
2017-01-24 14:22:18 +00:00
Richard van der Hoff
fe64b04339
More test resilience
...
Give the tests more than one chance for the roomview to load.
2017-01-24 13:35:41 +00:00
Richard van der Hoff
597705716b
Hopefully, fix intermittent test failure
...
This seeks to fix the intermittent failure of the "MatrixClient rehydrated from
stored credentials" tests.
The problem appears to be that the 'load_completed' is sometimes taking a while
to come through from the dispatcher - or rather, it is taking a long time to
get *sent* to the dispatcher: the chain of `q().then().catch().done()` in
componentDidMount can take a while to happen.
As a workaround, give the test a few goes when waiting for us to start
syncing. It's not ideal to be poking into the internal state of MatrixChat like
this, but it'll do for now.
2017-01-24 11:26:09 +00:00
David Baker
bc714ba3a0
Add eslint config
...
An early start that gets some linting in place.
2017-01-23 14:22:54 +00:00
David Baker
4d12a65529
Add mocha env for tests in eslint config
2017-01-23 14:16:25 +00:00
Richard van der Hoff
bb7d589287
Merge pull request #617 from matrix-org/rav/megolm_backup
...
Megolm session import and export
2017-01-19 16:14:18 +00:00
Richard van der Hoff
fdc213cbb8
Megolm export: fix test
2017-01-19 10:44:01 +00:00
Johannes Löthberg
14ead373e2
Add markdown test-cases
...
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-01-18 20:54:34 +01:00
Richard van der Hoff
31df78f946
Use text-encoding-utf-8 as a TextEncoder polyfill
...
Somebody else seems to have done a good job of polyfilling TextEncoder, so
let's use that.
2017-01-18 11:39:44 +00:00
lukebarnard
41d2697e28
Remove done
, const instead of var for requier
s
2017-01-18 12:03:38 +01:00
lukebarnard
867a532e5e
Remove parentDiv from tests
2017-01-18 11:58:54 +01:00
lukebarnard
78e2c787e0
Refactor and document test helpers.
2017-01-18 11:53:17 +01:00
lukebarnard
5dd1512ff2
Move aggregation code to dedicated function
2017-01-18 10:59:19 +01:00
lukebarnard
3ba9f50873
Move functions around, remove redundancies, add docs
2017-01-17 19:07:45 +01:00
lukebarnard
49f2b9df88
Remove duplicate test
2017-01-17 18:53:38 +01:00
lukebarnard
ade7c65617
Add test for MemberEventListSummary
2017-01-17 12:01:54 +01:00
Richard van der Hoff
e37bf6b7be
Skip crypto tests on PhantomJS
2017-01-14 01:41:48 +00:00
Richard van der Hoff
f8e56778ea
Encryption and decryption for megolm backups
2017-01-14 01:34:34 +00:00
Richard van der Hoff
1d5d44d63d
TextEncoder polyfill
...
Apparently Safari doesn't sport a TextEncoder, so here's a polyfill for it.
2017-01-14 00:45:51 +00:00
David Baker
161978ab05
Fix tests
2016-12-16 15:20:52 +00:00
David Baker
67cf4230ac
Fix broken tests
...
Promises are now not being resolved within the same tick, so give
another tick for the UI to update after all the HTTP calls have
flushed through. This is fairly terrible, but I can't immediately
see a better way of doing this.
2016-12-09 14:27:41 +00:00
David Baker
e52907a462
Missed semicolon
2016-12-09 10:59:05 +00:00
David Baker
d65374f7f9
Make the 'loading' tests work in isolation
...
The 'loading' tests only worked when run with the other tests and
failed if you just ran the file by itself, because the skin was
loading in the 'joining' tests, but not here.
2016-12-09 10:31:26 +00:00
David Baker
289f8ab439
Fix failing test
...
For some reason, update webpack causes the promise to no longer
complete by the next tick. Change the test to not depend on how
fast the promise goes through.
2016-12-08 18:44:38 +00:00
Luke Barnard
8a6ed1d7e9
Do not assume unpagination will occur during scroll test
2016-11-22 17:43:45 +00:00
Luke Barnard
cf41155610
Test TimelinePanel canForwardPaginate ( #561 )
...
Fix scroll up, down pagination test
NB: this test may not fail on Travis, although it did fail locally without a fix : #563 .
Once the test has scrolled the panel to the top, to the earliest events, it should be able to forward paginate, because some degree of unpagination occurs. This does assume that unpagination will occur when scrolling to the beginning of the events and that unpagination should allow pagination again in the same direction.
Instead of checking that the first event is no longer the first event (varies due to unpagination), check instead that the most recent event can be seen when scrolling all the way down to the bottom of the TimelinePanel.
Scrolling past the bottom of content seems to have strange behaviour, which isn't a useful part of the test. So now the test will scroll down until the last event instead.
2016-11-18 11:44:45 +00:00
Luke Barnard
b718f1542c
Fix infinite loop when there are a lot of invisible events ( #554 )
...
Instead of using a window of a fixed number of events, unpaginate based on the distance of the viewport from the end of the scroll range.
The ScrollPanel uses the scrollTokens to convey to its parent (the TimelinePanel, in this case) the point to unpaginate up to. The TimelinePanel then takes a chunk of events off the front or back of `this.state.events` using `timelineWindow.unpaginate`.
Fixes https://github.com/vector-im/vector-web/issues/2020
2016-11-16 14:25:52 +00:00
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.
2016-11-14 18:22:56 +00:00
Richard van der Hoff
1a81397d31
InteractiveAuthDialog
...
A dialog which will take the user through an interactive-auth process
2016-10-12 08:23:28 +01:00
Richard van der Hoff
388839a094
PR feedback
2016-10-11 14:59:35 +01:00
Richard van der Hoff
24bc90f9cc
Fix flaky TimelinePanel test
...
The 'should load new events even if you are scrolled up' test was sometimes
failing. It turned out that pagination *sometimes* wasn't starting soon enough
after setting the scrollTop, and awaitPaginationCompletion was incorrectly
believing it to have already been and gone.
Add an awaitScroll to make sure that we wait long enough for the pagination to
begin.
2016-10-11 14:20:40 +01:00
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.
2016-10-11 14:20:40 +01:00
David Baker
bbfc05b0c0
Fix name of text emote sending & fix tests
2016-09-26 10:20:56 +01:00
David Baker
3938abc5dd
add webkit vendor prefixed properties
...
for mavericks safari
2016-09-23 17:18:52 +01:00
David Baker
d0618c4f49
Update test now that /publicRooms is a post
2016-09-16 20:49:28 +01:00
Aviral Dasgupta
9a991a4dfd
Autocomplete fixes and improvements
2016-09-13 17:30:29 +05:30
Matthew Hodgson
92b4107174
fix tests
2016-09-12 17:19:58 +01:00
Matthew Hodgson
83209197f4
Merge branch 'develop' into matthew/notif-panel
2016-09-11 02:38:16 +01:00
Aviral Dasgupta
fec1e4d4c1
Add some tests for the rich text editor
2016-09-09 18:07:42 +05:30
Matthew Hodgson
4aef352a5c
update to use new API based on js-sdk PR input
2016-09-08 22:48:44 +01:00
Matthew Hodgson
334564c814
unbreak tests
2016-09-07 22:54:38 +01:00
Matthew Hodgson
e22d0a53b6
WIP switch-over of TimePanel from taking Rooms to taking EventTimelineSets
2016-09-07 22:54:37 +01:00
Richard van der Hoff
dd77cd74d1
Add text prefix to test event content
2016-08-25 15:13:28 +01:00
Richard van der Hoff
6bcf9cc9db
TimelinePanel-test: Hackery to make it pass
2016-08-24 17:30:53 +01:00
Richard van der Hoff
cdd2902b01
Update annoying TimelinePanel test
...
* Actually test what we were supposed to be testing (viz, that we can paginate
back down after we hit the top of the room)
* Make the cap on the number of events we show in the timeline a configurable
property, so that we can set it in the test
* Use a smaller cap in the test, so that we have to do less paginating to hit
the cap, to make the test run quicker.
* add some more logging so that we can see how far it's got if it gets stuck.
2016-08-24 16:28:00 +01:00
Richard van der Hoff
70c0290aec
Fix TimelinePanel test
...
https://github.com/matrix-org/matrix-react-sdk/pull/422 made events take up
less vertical space, so we now need more of them to allow us to scroll back.
2016-08-23 14:39:44 +01:00
Richard van der Hoff
5440fd7504
Fix tests
...
MatrixClientPeg no longer has a replaceUsingUrls method, so don't try to stub
it out.
2016-08-12 07:27:53 +01:00
Richard van der Hoff
244265d52b
Make sure that we clear localstorage before *all* tests
...
This was causing flaky tests, as sometimes the joining test would inherit an
"mx_is_guest" setting from a previous test run.
2016-08-11 11:42:29 +01:00
Richard van der Hoff
da7a556629
More tests for the loading process:
...
1. Check that localstorage is correctly updated on successful login (test for
https://github.com/matrix-org/matrix-react-sdk/pull/404 )
2. Check that the saved HS isused for guest registration (test for
https://github.com/matrix-org/matrix-react-sdk/pull/405 )
3. Test loginToken handling (test for
https://github.com/matrix-org/matrix-react-sdk/pull/406 /
https://github.com/vector-im/vector-web/pull/1946 )
2016-08-11 02:00:27 +01:00
Richard van der Hoff
dd6868c255
Fix joining test
...
This had been broken by
https://github.com/matrix-org/matrix-react-sdk/pull/399 . Change the way we
populate the matrixclient used for the joining tests.
2016-08-10 22:39:53 +01:00
Richard van der Hoff
fe4bb3e413
More app-loading tests
...
1. fix the 'Clean load' tests which had been broken by
https://github.com/matrix-org/matrix-react-sdk/pull/399 : make sure we clear
localStorage between tests.
2. Test the session rehydration properly by setting the localStorage rather
than setting up the MatrixClientPeg before loading the app.
3. Add some tests for the auto-guest-registration flows.
2016-08-10 14:37:30 +01:00
Richard van der Hoff
afc889ff4d
Some tests of the application load process
2016-08-10 00:15:04 +01:00
Richard van der Hoff
24841cc5c4
Start to factor out session-loading magic
...
Take some of the magic out of MatrixChat.componentDidMount() into a new
component.
Also delete the MatrixChat test. It wasn't really doing much, is broken by the
change, and I am replacing it with (better) app-level tests in the vector
project.
2016-08-10 00:05:44 +01:00
David Baker
c9ab977d73
Fix unit tests
...
ReplaceUsingAccessToken was, uh, replaced with replacedUsingCreds
2016-08-05 14:38:10 +01:00
David Baker
cbfb0ad998
Merge pull request #377 from matrix-org/dbkr/use_logout_api
...
Call the logout API when we log out
2016-08-03 17:51:42 +01:00
Richard van der Hoff
8a57881618
Add more logging to TimelinePanel-test
...
In an attempt to figure out why this is timing out sometimes, add even more
debugging.
2016-08-03 15:24:56 +01:00
David Baker
da03af6c1c
Fix tests
2016-08-03 10:51:58 +01:00
David Baker
a5272542ef
Lengthen timelinepanel test timeout again
...
It's now hitting this timeout on the jenkins box instead of the browser disconnect timeout
2016-07-14 10:40:12 +01:00
Kegsay
20210e7104
Log scrollTop and scrollHeight to try to debug flakey test
...
Sometimes it fails because awaitScroll() on :277 isn't resolving because onScroll isn't firing. We need to know if this is because we aren't changing scrollTop
2016-07-14 10:38:24 +01:00
David Baker
a2b64798f7
Fix timelinepanel test timeout
...
The previous fix was adjusting the wrong timeout: it's hitting browserNoActivityTimeout, so revert previous fix & do this instead
2016-07-05 14:35:34 +01:00
David Baker
1c280badde
Increase timeout on TimelinePanel test
...
Since it looks like this timeout sometimes isn't sufficient to scroll all the way up when jenkins is very busy
2016-06-23 18:36:44 +01:00
David Baker
dc50a0f24a
Add logging to TimelinePanel test
...
to see where it fails on jenkins
2016-06-23 16:20:40 +01:00
David Baker
607923b58f
Fix test since we peek by room ID, not alias
2016-06-17 17:49:36 +01:00
David Baker
53d92df6f8
Set up / teardown container div in before/afterEach
2016-06-17 15:50:13 +01:00
David Baker
b2f0ed09ab
Sort alphabetically (and name consistently)
2016-06-17 15:46:31 +01:00
David Baker
d3a463e9ac
restore the room header too
2016-06-17 12:23:45 +01:00
David Baker
b0bf24c136
Comment
2016-06-17 12:22:16 +01:00
David Baker
1fbf027a40
Some basic tests for RoomView
2016-06-17 12:20:26 +01:00
Richard van der Hoff
30f273c611
Merge pull request #283 from matrix-org/rav/issue_1427
...
Fix bug which stopped us scrolling down after we scrolled up
2016-04-21 14:26:42 +01:00
Richard van der Hoff
380b991d16
Merge pull request #281 from matrix-org/rav/velociraptor_fixes
...
Various fixes to the velociraptor
2016-04-21 14:25:07 +01:00
Richard van der Hoff
f551317b5d
Unmount TimelinePanel when test completes
...
... mostly because it seems like a nice idea.
2016-04-21 14:23:41 +01:00
Richard van der Hoff
9fcf8d00b4
Silence some 404s from the tests
...
Add an edit.png so we don't get a 404 every time we load some event tiles
2016-04-21 14:23:33 +01:00
Richard van der Hoff
2f435f4836
Fix bug which stopped us scrolling down after we scrolled up
...
Make sure that, if we scroll up enough to move the timelinewindow away from the
end of the timeline, we reset the canForwardPaginate flag.
2016-04-21 14:20:12 +01:00
Richard van der Hoff
e5e9a3819e
Load babel-polyfill in tests
...
Object.values() isn't available natively, so use polyfill for it.
2016-04-21 08:10:46 +01:00
Richard van der Hoff
dcd81da856
Fix test failures introduced by last PR
2016-04-19 21:10:23 +01:00
Richard van der Hoff
121fe34180
Improve parsing of keyword notification rules
...
For notification rules, the absence of a value on a 'highlight' tweak means
that the highlight should happen; this was previously confusing us.
Use the action parser from NotificationUtils to simplify the code.
Fixes https://github.com/vector-im/vector-web/issues/1330
2016-04-14 22:45:00 +01:00
Richard van der Hoff
ff5dff45f5
Start Notifications component refactor
...
Factor some things out of the mega Notifications component, and add a dummy
unit test to show willing
2016-04-13 18:44:41 +01:00
Richard van der Hoff
bf31d6d5fa
Karma test tweaks
...
* Make sure we only get one js-sdk (and update runtime config to match)
* Don't verifyNoOutstandingRequests (since it is hard to be certain which we
will get, and makes the tests too dependent on implementation-specifics).
* Disable color for npm test, to avoid confusing Jenkins
2016-04-13 17:41:23 +01:00
Richard van der Hoff
181a6a61ff
tests: Don't add the div to the DOM
2016-04-13 17:20:06 +01:00
Richard van der Hoff
322af6513d
Run some tests under karma
...
Including a regression test for
https://github.com/vector-im/vector-web/issues/1314
2016-04-13 17:20:06 +01:00
Richard van der Hoff
69ce3c43cf
Revert "Merge branch 'develop' into rav/karma"
...
The karma tests don't pass yet, and aren't ready to land on develop.
This reverts commit 438453e61a
, reversing
changes made to 50f94eb040
.
2016-04-13 17:17:45 +01:00
Richard van der Hoff
a512e600a7
tests: Don't add the div to the DOM
2016-04-13 11:16:38 +01:00
Richard van der Hoff
429d110212
Run some tests under karma
...
Including a regression test for
https://github.com/vector-im/vector-web/issues/1314
2016-04-13 10:15:04 +01:00
Richard van der Hoff
e051d1528c
Remember to load new timeline events
...
Fixes a bug where we wouldn't load new timeline events if they arrived when we
were scrolled up (https://github.com/vector-im/vector-web/issues/1367 )
2016-04-11 14:05:04 +01:00
Richard van der Hoff
967528608f
Merge pull request #265 from matrix-org/rav/limit_pagination
...
Stop trying to paginate after we get a failure
2016-04-08 16:00:51 +01:00
Richard van der Hoff
15d0df5d3b
Stop trying to paginate after we get a failure
...
Once TimelineWindow.paginate fails to return any results, set
can*Paginate=false, and use it as a flag to stop us trying to paginate any
further.
2016-04-08 15:05:15 +01:00
Richard van der Hoff
7e6ea192fd
Build our own stub MatrixClient for the tests
...
It turns out that a bunch of things rely on MatrixClient methods to return
promises rather than undefined. Rather than having to undo half the work done
by sinon.createStubInstance, just build our own object with as many methods as
we need stubbed out.
2016-04-08 14:50:04 +01:00
Richard van der Hoff
7a821ce9d1
Make it possible to only run one test file each time
2016-04-07 17:49:39 +01:00
Richard van der Hoff
a2168efcda
Correctly restore MatrixClientPeg after each test case
2016-04-07 16:47:17 +01:00
Richard van der Hoff
c5c9cad0cb
Merge pull request #261 from matrix-org/rav/issue_1151
...
Fix an issue where the scroll stopped working.
2016-04-05 12:55:59 +01:00
Richard van der Hoff
51fe77122b
Fix an issue where the scroll stopped working.
...
Under certain conditions, it was possible to get stuck in a state where any
user-initiated scroll would be met with "Working around
vector-im/vector-web#528" and overridden. Fix this by removing the duplication
between _lastSetScroll and recentEventScroll, and using _lastSetScroll which is
more reliable.
2016-04-05 10:41:32 +01:00
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.
2016-03-31 18:27:46 +01:00
Richard van der Hoff
25b35a09b9
Clean up some redundancy in the MessagePanel test
2016-03-31 17:01:11 +01:00
Richard van der Hoff
3ba7f9f23a
Fix failing test
...
DOM styles are strings, not numbers
2016-03-31 01:01:49 +01:00
Richard van der Hoff
dc5c0928b2
Some basic tests for MessagePanel
...
Check that it puts the read marker in the right place, and check that the
animation works.
... all of which has been surprisingly painful.
2016-03-31 00:48:46 +01:00
Richard van der Hoff
cbcca0bfa1
Fix undefined error in test
2016-03-29 00:12:59 +01:00
Richard van der Hoff
5f3b82a767
Stub out the matrix client
2016-03-29 00:12:59 +01:00
Richard van der Hoff
7e1e2347b5
Don't need alias for test-component-index
2016-03-29 00:12:59 +01:00
Richard van der Hoff
d7801ef3a4
Vaguely working webpack test
2016-03-29 00:12:59 +01:00
Richard van der Hoff
e099aa9ce0
test component index and stub component
2016-03-29 00:12:58 +01:00