Michael Telatynski
26fef6f294
actually run the new test and remove unrelated tweak
1 year ago
Michael Telatynski
06852436e6
Fix loading-test for SSO plaf changes
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
1b7accddfd
fix loading test for new sso pattern
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
19ff8dde1f
fix loading test for new sso pattern
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Travis Ralston
a21d6e651f
Move dispatcher references in support of TypeScript conversion
...
See https://github.com/matrix-org/matrix-react-sdk/pull/4593
2 years ago
Michael Telatynski
30a9094dc7
fix import in tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
afabf9d4b1
Fix tests post-js-sdk-filters change
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
Michael Telatynski
8fdb41412f
Use URLSearchParams instead of transitive dependency `querystring`
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2 years ago
J. Ryan Stinnett
c70bfe1f91
Update loading test for JS SDK IDB change
...
Part of https://github.com/vector-im/riot-web/issues/12207
3 years ago
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
3 years ago
Travis Ralston
3fb6b1ed63
Remove excessive sleep now that we're not using chrome
3 years ago
Travis Ralston
bcda501864
Replace usages of expect.toStartWith with boolean checks
3 years ago
Travis Ralston
84439cff86
Import the cryptostore from the right place
3 years ago
Travis Ralston
e37da08730
Replace beforeEach with just a cleanLocalstorage call
...
The rest isn't needed anymore.
3 years ago
Travis Ralston
3c9c0ec447
Leave the language handler setup to the test init scripts
3 years ago
Travis Ralston
161a1342b2
Swap over to Jest, breaking everything
3 years ago
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.
3 years ago
Travis Ralston
17e332bb48
Import from src/ for the react-sdk and js-sdk
...
We compile directly for accuracy of sourcemaps.
3 years ago
Michael Telatynski
73990acf7a
use function over const lambda
3 years ago
Michael Telatynski
0a209fc340
Use promises in tests properly
3 years ago
Michael Telatynski
6452cdca04
Don't oversubscribe mocha resolution methods v2.1
3 years ago
Michael Telatynski
c3ce52a6c0
Don't oversubscribe mocha resolution methods v2
3 years ago
Michael Telatynski
86eb601c34
Don't oversubscribe mocha resolution methods
3 years ago
Michael Telatynski
10e1d9093e
transform-async-to-promises: get rid of bluebird
3 years ago
Michael Telatynski
06e7a48aaf
Switch to React 16.8
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
3 years ago
Travis Ralston
f3e82b56e9
Remove unused disable_identity_server config flag
...
Fixes https://github.com/vector-im/riot-web/issues/10229
3 years ago
Travis Ralston
c68a621a71
Fix tests for liveliness checks
3 years ago
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.
3 years ago
Travis Ralston
a5092dc763
Fix tests to use new server config options
3 years ago
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
3 years ago
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.
3 years ago
J. Ryan Stinnett
5112b33af2
Remove unused test helper
3 years ago
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.
3 years ago
David Baker
ad95ca4e86
Add home page to fix loading tests
4 years ago
J. Ryan Stinnett
585d28692d
Fix loading tests for welcome page
4 years ago
J. Ryan Stinnett
50baa09f5e
Revert "Disable even more tests"
...
This was only done because CI was missing
matrix-org/matrix-react-sdk@5977859dd98960189e65f34abc2832d281ec48de.
This reverts commit e55ceef905
.
4 years ago
J. Ryan Stinnett
e55ceef905
Disable even more tests
4 years ago
J. Ryan Stinnett
ec83f792ad
Fix / disable tests after welcome page
4 years ago
Bruno Windels
758723256e
fix app tests after force enabling lazy loading + removing feature flag
4 years ago
Travis Ralston
cec8a77d52
Disable room directory test because it doesn't work
...
See enclosed comments.
4 years ago
J. Ryan Stinnett
2d360eab74
Remove support for team servers
4 years ago
J. Ryan Stinnett
e98346e7cd
Rename login directory to auth
4 years ago
David Baker
0e580635eb
Update tests for new platform layout
4 years ago
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.
4 years ago
David Baker
1dfaf70562
Revert "Revert "Run lint on travis builds and use modern node versions""
4 years ago
David Baker
f701e2601a
Revert "Run lint on travis builds and use modern node versions"
4 years ago
Aaron Raimist
70fe4f67ee
eslint --fix on test/
4 years ago
Matthew Hodgson
c8b26a1002
fix tests
4 years ago
Matthew Hodgson
8757c8cae0
move notif UTs to sdk
4 years ago
Michael Telatynski
f7a26ddb91
fix (race?) broken tests
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
5 years ago