Commit Graph

42834 Commits

Author SHA1 Message Date
David Baker e1394d592a Allow translation tags object to be a variable
Don't try to validate the translation tags if it's not an object literal.
2018-09-14 14:11:59 +01:00
Bruno Windels 1906661ef9 Merge branch 'master' into bwindels/lltests3 2018-09-14 14:50:35 +02:00
Bruno Windels 320e39bd41 Merge pull request #19 from matrix-org/bwindels/lltests2
Test all members are in memberlist with LL turned on
2018-09-14 14:49:58 +02:00
Bruno Windels 5e8a3db985 Merge pull request #16 from matrix-org/bwindels/lltests
Test timeline messages have correct display name with lazy loading
2018-09-14 14:49:32 +02:00
Bruno Windels 8cff961ec8 use develop for now as LL with gappy syncs is fixed on that branch for now 2018-09-14 14:46:42 +02:00
Bruno Windels 992a0be4d0 DRY usernames 2018-09-14 14:46:25 +02:00
Bruno Windels 36708cc5db wait for next sync before inspecting memberlist
before we needed a 10s delay here to make the test work
reliable, this should be faster in the best case.
2018-09-14 14:45:40 +02:00
Bruno Windels 27c496aecb remove unneeded async keywords 2018-09-14 13:55:47 +02:00
David Baker 58d52f9cbf Merge pull request #17 from matrix-org/bwindels/flagsandreadme
structure flags better and document them
2018-09-14 11:45:13 +01:00
Bruno Windels 16b2f09915 Test if members joining while user is offline are received after returning online with LL enabled 2018-09-14 12:44:01 +02:00
Bruno Windels 6deb595fec add logging to rest session actions 2018-09-14 12:17:22 +02:00
Bruno Windels af255c6386 dont assert the first time in receiveMessage, as it will show an ugly assert error while everything is fine, just need to wait longer 2018-09-14 09:52:34 +02:00
Bruno Windels fe734b944e remove obsolete warning as peeking will cause the membership to be null 2018-09-13 18:45:38 +02:00
Bruno Windels f194f323f4 postpone loading the members until the user joined the room
when peeking, the members weren't being loaded at all because
the room wasn't available yet,
and the need for loading the members was never re-evaluated after that.

This only loads the members once the user has joined the room,
which also helps to avoid load all the members before an invite
is accepted.
2018-09-13 18:43:24 +02:00
David Baker 292b1f09af WIP e2e key backups
Continues from Matthew's work: adds a feature flag & panel in
user settings to create a backup.

Can't restore a backup yet, nor even continue backing up to the same
backup after a refresh.
2018-09-13 17:11:46 +01:00
Bruno Windels 9f4cf776c5 make receiveMessage more robust by checking first if the message is not already in the timeline 2018-09-13 12:04:18 +02:00
Bruno Windels 239e6a4bce add ll tests to check if all expected members are in memberlist
also move verify-device use case to timeline to reuse memberlist
query for this test.
2018-09-13 12:03:29 +02:00
Bruno Windels 5d06c65ce5 split up ll tests in several functions 2018-09-13 12:02:49 +02:00
Bruno Windels 1725e7524b split up scenarios in multiple files as lazy-loading scenarios grow 2018-09-13 10:31:15 +02:00
Bruno Windels 5ec8f6f9b4 rename tests folder to the more accurate usecases 2018-09-12 18:40:25 +02:00
Bruno Windels 923ae90576 move range and delay over to util module 2018-09-12 18:38:42 +02:00
Bruno Windels 5745e9ed0c move Logger and LogBuffer to own module 2018-09-12 18:36:02 +02:00
Bruno Windels c8fec947e4 structure flags better and document them 2018-09-12 17:27:51 +02:00
Bruno Windels e843d532eb these changes were not needed in the end 2018-09-12 16:48:40 +02:00
Bruno Windels 7bcb255a2c increase timeout here in case this wouldnt be enough for the CI server 2018-09-12 16:47:24 +02:00
Bruno Windels 29aec256df finish basic LL test to see if display names appear from lazy loaded state 2018-09-12 14:53:19 +02:00
Bruno Windels 4057ec8a6a store displayName on RestSession to use it in tests 2018-09-12 14:51:00 +02:00
Bruno Windels 249cf4f87e implement reading and scrolling timeline, group timeline related code 2018-09-12 14:49:48 +02:00
Bruno Windels 244d5b0851 dont show all 20 send messages
support muting a logger and chaining calls
2018-09-12 09:48:37 +02:00
Bruno Windels dcf96e1461 WIP for LL test 2018-09-11 18:32:32 +02:00
Bruno Windels 3db32c93d4 past rest creator to scenario to also be able to call createSessionRange 2018-09-11 18:32:18 +02:00
Bruno Windels abc7c4c3ac join use cases that touch settings in one file, as selectors are similar 2018-09-11 18:30:57 +02:00
Bruno Windels ff20bc783d support joining with a room alias for rest session 2018-09-11 18:30:17 +02:00
Bruno Windels 2be413ba6d allow clients to send messages faster, in order to speed up the test 2018-09-11 18:29:52 +02:00
Bruno Windels be4c1cb899 support setting the room alias 2018-09-11 18:29:05 +02:00
Bruno Windels 4a4b1f65aa wait for the message to be sent 2018-09-11 18:28:50 +02:00
Bruno Windels 40577109c2 Merge branch 'master' into bwindels/lltests 2018-09-11 17:21:30 +02:00
Bruno Windels 827e6365bb add wrapper around multiple rest sessions 2018-09-11 16:18:27 +02:00
Bruno Windels 48d95c228a creator instead of factory, as it does registration and authentication 2018-09-11 15:02:02 +02:00
Bruno Windels 3c5e73d644 support setting the display name on rest session 2018-09-11 14:54:14 +02:00
Bruno Windels afc678fea0 pass rest session creator to scenario 2018-09-11 14:46:25 +02:00
Bruno Windels 98aafd6abb add rest/non-browser session, which we can create a lot more off 2018-09-11 14:40:16 +02:00
David Baker 59e4879b14 Merge remote-tracking branch 'origin/develop' into matthew/e2e_backups 2018-09-11 13:03:22 +01:00
Weblate b4815d1a07 Merge remote-tracking branch 'origin/develop' into develop 2018-09-11 12:03:14 +00:00
David Baker 518be24a5b Merge pull request #2164 from matrix-org/dbkr/dont_exit_fullscreen_when_not
Don't try to exit fullscreen if not fullscreen
2018-09-11 13:03:09 +01:00
David Baker f62e92a07b Merge remote-tracking branch 'origin/develop' into matthew/e2e_backups 2018-09-11 11:37:22 +01:00
David Baker d3038ea765 Don't try to exit fullscreen if not fullscreen
This was causing annoying exceptions on latest Chrome. Use
document.fullScreenElement to detect if we're fullscreen and don't
try to exit if we aren't.
2018-09-11 11:31:24 +01:00
Weblate 1e6e82c3cf Merge remote-tracking branch 'origin/develop' into develop 2018-09-11 08:57:34 +00:00
Bruno Windels ecaabd6b75 Merge pull request #2161 from matrix-org/bwindels/dontupdatememberlistwhileloading
avoid updating the memberlist while the spinner is shown
2018-09-11 10:57:29 +02:00
Weblate e99f42a743 Merge remote-tracking branch 'origin/develop' into develop 2018-09-11 08:54:34 +00:00