aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/index.html
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-07-26 07:42:39 +0800
committerGitHub <noreply@github.com>2016-07-26 07:42:39 +0800
commit11dfb8e869d425204512b250b00ef71ed85a14cc (patch)
tree3357a7b824bce625ad96fbd470c41855f1f8268f /test/integration/index.html
parentbf5f1df20e64c21745d49b1315a31a1bf1cf720e (diff)
downloadtangerine-wallet-browser-11dfb8e869d425204512b250b00ef71ed85a14cc.tar
tangerine-wallet-browser-11dfb8e869d425204512b250b00ef71ed85a14cc.tar.gz
tangerine-wallet-browser-11dfb8e869d425204512b250b00ef71ed85a14cc.tar.bz2
tangerine-wallet-browser-11dfb8e869d425204512b250b00ef71ed85a14cc.tar.lz
tangerine-wallet-browser-11dfb8e869d425204512b250b00ef71ed85a14cc.tar.xz
tangerine-wallet-browser-11dfb8e869d425204512b250b00ef71ed85a14cc.tar.zst
tangerine-wallet-browser-11dfb8e869d425204512b250b00ef71ed85a14cc.zip
Ui testing (#481)
* 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. * Separate UI tests from normal unit test suite * Add UI tests to CI test script * Add testem and phantom to circleCI pre-script * Fix circle pre script * Move pre scripts to dependencies key * Remove phantom from build deps * Fix testem runner page * Add promise polyfill for PhantomJS * Skip PhantomJS in testem * Run browser tests in parallel * Fix promise usage? * Correct skip usage
Diffstat (limited to 'test/integration/index.html')
-rw-r--r--test/integration/index.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/integration/index.html b/test/integration/index.html
new file mode 100644
index 000000000..6de40b046
--- /dev/null
+++ b/test/integration/index.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width">
+ <title>QUnit Example</title>
+ <link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.0.0.css">
+</head>
+<body>
+ <div id="qunit"></div>
+ <div id="qunit-fixture"></div>
+ <script src="https://code.jquery.com/qunit/qunit-2.0.0.js"></script>
+ <script src="./jquery-3.1.0.min.js"></script>
+ <script src="helpers.js"></script>
+ <script src="tests.js"></script>
+ <script src="/testem.js"></script>
+
+ <iframe src="/development/index.html" height="500px" width="360px">
+ <p>Your browser does not support iframes</p>
+ </iframe>
+</body>
+</html>