aboutsummaryrefslogtreecommitdiffstats
path: root/testem.yml
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-23 06:43:30 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-23 06:43:30 +0800
commitb724dd009c36574aa7d090435a60f89c1adc881d (patch)
tree1f208864a7a6842a576fd403406e7f8dba714281 /testem.yml
parentbf5f1df20e64c21745d49b1315a31a1bf1cf720e (diff)
downloadtangerine-wallet-browser-b724dd009c36574aa7d090435a60f89c1adc881d.tar.gz
tangerine-wallet-browser-b724dd009c36574aa7d090435a60f89c1adc881d.tar.zst
tangerine-wallet-browser-b724dd009c36574aa7d090435a60f89c1adc881d.zip
Add UI Testing Framework and Simple UI Test
Added a Testem configuration that launches a Qunit page with an iFrame that builds and loads our mock-dev page and can interact with it and run tests on it. Wrote a simple test that accepts the terms and conditions and transitions to the next page. I am not doing any fancy redux-hooks for the async waiting, I've simply added a `tests/integration/helpers.js` file with a `wait()` function that returns a promise that should wait long enough. Long term we should hook into the app lifecycle by some means for testing, so we only wait the right amount of time, and wait long enough for slower processes to complete, but this may work for the time being, just enough to run some basic automated browser tests.
Diffstat (limited to 'testem.yml')
-rw-r--r--testem.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/testem.yml b/testem.yml
new file mode 100644
index 000000000..a13422b3a
--- /dev/null
+++ b/testem.yml
@@ -0,0 +1,10 @@
+launch_in_dev:
+ - Chrome
+ - Firefox
+framework:
+ - QUnit
+test_page: "test/integration/index.html"
+before_tests: "browserify ./mock-dev.js -o ./development/bundle.js"
+after_tests: "rm ./development/bundle.js"
+src_files: "./mock-dev.js"
+