From d6abd906cb64ae68eed3348eba521bc44ebed7b2 Mon Sep 17 00:00:00 2001 From: Varac Date: Fri, 9 Jun 2017 09:40:55 +0200 Subject: [test] Add basic functional login test * Move todo list to https://0xacab.org/leap/bitmask-dev/issues/8929 * use bundled pysqlcipher - debian package has not been fixed yet. * reset bitmaskd for each scenario so they are isolated * run functional tests on CI * moved e2e tests before the bundle * add test_functional_graphical Make target * Install chromedriver in docker image * add screenshots as artifacts on failure * run chrome without sandbox for docker Tests were failing on CI with chrome sandbox: https://0xacab.org/leap/bitmask-dev/-/jobs/15196 Used this workaround: https://stackoverflow.com/questions/28364012/webdriver-exception-chrome-not-reachable/28949227#28949227 - Resolves: #8929 --- tests/functional/README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tests/functional/README.md (limited to 'tests/functional/README.md') diff --git a/tests/functional/README.md b/tests/functional/README.md new file mode 100644 index 00000000..9405d8e0 --- /dev/null +++ b/tests/functional/README.md @@ -0,0 +1,41 @@ +# Bitmask functional UI tests + +## Todo + +Moved to https://0xacab.org/leap/bitmask-dev/issues/8929#note_111673 + +## Setup + +Ubuntu: + + sudo apt install xvfb chromium-chromedriver + ln -s /usr/lib/chromium-browser/chromedriver venv-all/bin/chromedriver + +Debian: + + sudo apt install xvfb chromedriver + + +Setup your virtualenv and python packages: + + virtualenv venv-all + source ./venv-all/bin/activate + make dev-all + make test_functional_setup + +## Run tests + + source ./venv-all/bin/activate + export TEST_USERNAME='user@provider.tld' TEST_PASSWORD='...' + make test_functional + +# Develop tests + +When tests are run using `make test_functional` no window shows you what the browser sees. +In order to see tests running in the browser run: + + make test_functional_graphical + +You can also run behave by itself and have a browser window to watch, i.e. to run all tests tagged as `@wip`: + + behave --wip -k -D host=localhost tests/functional/features -- cgit v1.2.3