matrix-org / matrix-react-end-to-end-tests

End to end tests for the matrix react web app
2 stars 2 forks source link

Run tests against given HS as opposed to default one #13

Closed bwindels closed 5 years ago

bwindels commented 6 years ago

because when passing --riot-url, riot doesn't use our config file, so the configuration of the default homeserver might be different than what the tests require. Also it might also not be a local server, ...

bwindels commented 6 years ago

I had originally created the tests against an explictly set HS, and then changed it to the default HS as that is the most common case. Hm...

bwindels commented 6 years ago

This will make the debug experience a lot nicer, because now you need to symlink riot-web, manually build it and use the ./riot/start.sh script to temporarily copy over the riot config file so the default HS is the tests synapse instance. If we can easily disable the tests that test the default HS case, we can debug the tests with a simple ./synapse/start.sh and node start.js --debug --riot-url http://localhost:8080 --hs-url http://localhost:5005