From 956beaf1f4a1bf4c4ffcbc7c1a9bdefb587d764d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 5 Jul 2018 11:56:19 +0100 Subject: [PATCH] add initial README --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000000..349e0294b7 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Matrix React Web App End-to-End tests + +This repository contains tests for the matrix-react-sdk web app. The tests fire up a headless chrome and simulate user interaction (end-to-end). Note that end-to-end has little to do with the end-to-end encryption matrix supports, just that we test the full stack, going from user interaction to expected DOM in the browser. + +## Current tests + - test riot loads (check title) + - signup with custom homeserver + +## Roadmap +- get rid of jest, as a test framework won't be helpful to have a continuous flow going from one use case to another (think: do login, create a room, invite a user, ...). a test framework usually assumes the tests are semi-indepedent. +- better error reporting (show console.log, XHR requests, partial DOM, screenshot) on error +- cleanup helper methods +- avoid delay when waiting for location.hash to change +- more tests! +- setup installing & running riot and synapse as part of the tests +- look into CI(Travis) integration + +## How to run + +### Setup + + - install dependencies with `npm install` + - have riot-web running on `localhost:8080` + - have a local synapse running at `localhost:8008` + +### Run tests + - run tests with `./node_modules/jest/bin/jest.js` \ No newline at end of file