Commit graph

245 commits

Author SHA1 Message Date
Bruno Windels
6be5975050 dont assume new target is a new page 2018-08-23 10:03:37 +02:00
Bruno Windels
f49b85897d remove specific timeout for selectors
as these are not hard sleeps, but timeouts, its better to put them
a bit larger, as in the best case they'll return quickly anyway
and in the worst case where they need a lot of time it's still better
if the tests don't fail
2018-08-23 00:29:24 +02:00
Bruno Windels
fd67ace078 increase timeouts so the tests dont timeout on build server 2018-08-23 00:27:30 +02:00
David Baker
1e0baa823d
Merge pull request #9 from matrix-org/bwindels/commander
Add --riot-url option to run test against local dev server
2018-08-17 11:42:03 +01:00
Bruno Windels
c49f1b33fb
Merge pull request #11 from matrix-org/bwindels/increasetimeout2
increase receive message timeout
2018-08-15 15:17:42 +02:00
Bruno Windels
440b1032d5 increase receive message timeout 2018-08-15 15:17:11 +02:00
Bruno Windels
26e4645a01
Merge pull request #10 from matrix-org/bwindels/increasetimeout
Try to fix test running under travis by increasing timeout
2018-08-15 15:06:23 +02:00
Bruno Windels
4f76ad83d5 increase timeout 2018-08-15 15:05:46 +02:00
Bruno Windels
0e56250bc2 didnt mean to commit this 2018-08-15 12:21:08 +02:00
Bruno Windels
8507cf8258 add argument for passing riot server, makes local testing easier 2018-08-15 11:26:46 +02:00
David Baker
956688237a
Merge pull request #8 from matrix-org/bwindels/indentation
bring indentation in line with other front-end projects
2018-08-14 14:02:41 +01:00
Bruno Windels
377a20fffa bring indentation in line with other front-end projects 2018-08-14 12:53:16 +02:00
Bruno Windels
a54f13cd68
Merge pull request #6 from matrix-org/bwindels/e2erooms
Tests for creating and writing in a e2e encrypted room
2018-08-14 12:43:06 +02:00
Bruno Windels
4c3386a2a5
Merge pull request #4 from matrix-org/bwindels/2usersjoin
Support multiple users, have 2nd user join created room
2018-08-14 12:42:50 +02:00
Bruno Windels
2c983f8cee fix composer issue and more 2018-08-09 14:23:09 +02:00
Bruno Windels
af0c0c0afe add test scenario for e2e encryption 2018-08-08 18:30:48 +02:00
Bruno Windels
dc87e2bfe0 avoid typos 2018-08-08 12:42:34 +02:00
Bruno Windels
73c88fe603 prepare for more tests 2018-08-08 12:35:50 +02:00
Bruno Windels
c5f064e389 make receiving a bit more robust 2018-08-08 12:35:36 +02:00
Bruno Windels
1fd379b3d2 wait to receive message from other user 2018-08-08 12:17:36 +02:00
Bruno Windels
a78c095cf6 add support for changing the room settings 2018-08-08 11:45:26 +02:00
Bruno Windels
643af2d344 run synapse on custom port so it doesn't interfere with other synapses on dev machines 2018-08-07 18:44:49 +02:00
Bruno Windels
2a7438e9fb no need to double select here, might speed things up slightly 2018-08-07 18:23:58 +02:00
Bruno Windels
aaa5ee1a25 more consistent naming on session methods 2018-08-07 18:21:53 +02:00
Bruno Windels
4e7df2126b move step logging to tests, DRY; put test scenario in separate file, less globals 2018-08-07 17:58:58 +02:00
Bruno Windels
5fe3861190 create second user and join room first user creates 2018-08-07 17:23:01 +02:00
Bruno Windels
4c0ab117bf move outputting steps to session to scope it to username 2018-08-07 17:16:27 +02:00
Bruno Windels
6b843eacfc move log buffers into session, start logging implicitely 2018-08-07 17:09:43 +02:00
Bruno Windels
7c91ecab7e create session object to scope a user, move helper methods there 2018-08-07 16:45:34 +02:00
David Baker
1b01867b84
Merge pull request #3 from matrix-org/bwindels/ci_script
Make tests run on CI environment
2018-08-02 13:01:47 +01:00
Bruno Windels
97fa7e03d1 dont swallow synapse startup errors 2018-07-31 14:48:05 +02:00
Bruno Windels
f57628e3d0 dont swallow riot server errors 2018-07-31 14:48:05 +02:00
Bruno Windels
3876577218 log when using external chrome! 2018-07-31 14:48:05 +02:00
Bruno Windels
9a2f309486 xhr and console logs are done for all tests now, no need to do it in signup anymore 2018-07-31 14:48:05 +02:00
Bruno Windels
c357a0158d no need to log contents of zip files 2018-07-31 11:48:54 +02:00
Bruno Windels
d738b404ca try upgrading puppeteer 2018-07-31 11:48:54 +02:00
Bruno Windels
a5c8911445 output document html on error and dont make a screenshot on submit 2018-07-31 11:48:54 +02:00
Bruno Windels
e50420dd1b apply config file when starting riot, not installing, so we can support riots that were built by another process 2018-07-31 11:48:54 +02:00
Bruno Windels
31fcf08fec only allow one riot server instance simultaneously 2018-07-31 11:48:29 +02:00
Bruno Windels
5129bb57b6 log all requests with their response code 2018-07-31 10:35:21 +02:00
Bruno Windels
29d688543d stop servers on error in run script 2018-07-31 10:35:21 +02:00
Bruno Windels
758da78659 dont fail when trying to stop riot and its not running 2018-07-31 10:35:21 +02:00
Bruno Windels
5cd52e2ebd show browser logs on error 2018-07-31 10:35:21 +02:00
Bruno Windels
976f041bba remove test exit, and use port we are semi-sure is free 2018-07-31 10:35:21 +02:00
Bruno Windels
e8f626ba18 exit on error 2018-07-31 10:35:21 +02:00
Bruno Windels
c3b7e6c7cb make scripts executable, running them with sh does something weird on travis 2018-07-31 10:35:21 +02:00
Bruno Windels
edf37e3592 add support for passing chrome path as env var 2018-07-31 10:35:21 +02:00
Bruno Windels
20becf8735 force running scripts in bash, as it's not the default shell on Ubuntu (which is what Travis runs) 2018-07-31 10:35:21 +02:00
Bruno Windels
ebc9859cce add instruction to install without chrome download 2018-07-27 15:07:43 +02:00
Bruno Windels
5389a42bc1 use readlink instead of realpath as it seems to be more portable 2018-07-27 15:04:04 +02:00