diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-10-12 06:50:02 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-10-12 06:50:02 +0800 |
commit | 5e9bc31c58aff4b9d1d0d1bd54416ffb0a1b14d3 (patch) | |
tree | 6e98b8dbf03ef61c655625b6349b056dcdc7bbe0 /test | |
parent | f7361d9654b1a55d0c21ba37b11e1575e7a555ca (diff) | |
download | tangerine-wallet-browser-5e9bc31c58aff4b9d1d0d1bd54416ffb0a1b14d3.tar.gz tangerine-wallet-browser-5e9bc31c58aff4b9d1d0d1bd54416ffb0a1b14d3.tar.zst tangerine-wallet-browser-5e9bc31c58aff4b9d1d0d1bd54416ffb0a1b14d3.zip |
Cleanup.
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/tests.js | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/test/integration/tests.js b/test/integration/tests.js index 2d813762d..747845d75 100644 --- a/test/integration/tests.js +++ b/test/integration/tests.js @@ -3,25 +3,37 @@ QUnit.test('agree to terms', function (assert) { // Select the mock app root var app = $('iframe').contents().find('#app-content .mock-app-root') - // var button = $('.agree') - // button.removeAttr('disabled') app.find('.markdown').prop('scrollTop', 100000000) // Agree to terms + // wait().then(function() { + // app.find('button').click() + // 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() + // }) + // }) + wait().then(function() { app.find('button').click() - wait().then(function() { - - var title = app.find('h1').text() - assert.equal(title, 'MetaMask', 'title screen') + }).then(function() { + return 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') + var buttons = app.find('button') + assert.equal(buttons.length, 2, 'two buttons: create and restore') - done() - }) + done() }) // Wait for view to transition: |