diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-08-11 04:48:34 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-08-11 04:48:34 +0800 |
commit | ba1edc429b948962fe0f03ef43588f7945cea3f2 (patch) | |
tree | eda1b54a424c2fc06ef151763b5cb57d2e838116 /test/integration/tests.js | |
parent | 9c6dd9ef4953f6e421feb6e6684ef43da26f6b75 (diff) | |
parent | c48b60d7a6f14d2d2348be8d9a63965ca1267433 (diff) | |
download | tangerine-wallet-browser-ba1edc429b948962fe0f03ef43588f7945cea3f2.tar tangerine-wallet-browser-ba1edc429b948962fe0f03ef43588f7945cea3f2.tar.gz tangerine-wallet-browser-ba1edc429b948962fe0f03ef43588f7945cea3f2.tar.bz2 tangerine-wallet-browser-ba1edc429b948962fe0f03ef43588f7945cea3f2.tar.lz tangerine-wallet-browser-ba1edc429b948962fe0f03ef43588f7945cea3f2.tar.xz tangerine-wallet-browser-ba1edc429b948962fe0f03ef43588f7945cea3f2.tar.zst tangerine-wallet-browser-ba1edc429b948962fe0f03ef43588f7945cea3f2.zip |
Merge branch 'master' into buyForm
Diffstat (limited to 'test/integration/tests.js')
-rw-r--r-- | test/integration/tests.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/integration/tests.js b/test/integration/tests.js new file mode 100644 index 000000000..a3f3cd294 --- /dev/null +++ b/test/integration/tests.js @@ -0,0 +1,21 @@ +QUnit.test('agree to terms', function (assert) { + var done = assert.async() + + // Select the mock app root + var app = $('iframe').contents().find('#app-content .mock-app-root') + + // Agree to terms + app.find('button').click() + + // Wait for view to transition: + wait().then(function() { + + var title = app.find('h1').text() + assert.equal(title, 'MetaMask', 'title screen') + + var buttons = app.find('button') + assert.equal(buttons.length, 2, 'two buttons: create and restore') + + done() + }) +}) |