From 82af778e6251879b3296136c44028d2c65f9d170 Mon Sep 17 00:00:00 2001 From: Alexander Tseung Date: Thu, 5 Apr 2018 10:11:09 -0700 Subject: Revert "commit" This reverts commit fa8500e09ad599837f6ad1b2dfc3530195a03b33. --- test/base.conf.js | 2 -- test/integration/lib/confirm-sig-requests.js | 18 +++++------------- test/integration/lib/send-new-ui.js | 2 -- 3 files changed, 5 insertions(+), 17 deletions(-) (limited to 'test') diff --git a/test/base.conf.js b/test/base.conf.js index 192c98327..e2e9d44ba 100644 --- a/test/base.conf.js +++ b/test/base.conf.js @@ -10,8 +10,6 @@ module.exports = function(config) { terminal: false, }, - browserNoActivityTimeout: 100000000, - // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['qunit'], diff --git a/test/integration/lib/confirm-sig-requests.js b/test/integration/lib/confirm-sig-requests.js index 3936ac5fa..1576e317c 100644 --- a/test/integration/lib/confirm-sig-requests.js +++ b/test/integration/lib/confirm-sig-requests.js @@ -21,22 +21,14 @@ async function runConfirmSigRequestsTest(assert, done) { selectState.val('confirm sig requests') reactTriggerChange(selectState[0]) - // await timeout(1000000) - - const pendingRequestItem = $.find('.tx-list-item.tx-list-pending-item-container.tx-list-clickable') - - if (pendingRequestItem[0]) { - pendingRequestItem[0].click() - } + const pendingRequestItem = await queryAsync($, '.tx-list-item.tx-list-pending-item-container.tx-list-clickable') + pendingRequestItem[0].click() let confirmSigHeadline = await queryAsync($, '.request-signature__headline') assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested') - let confirmSigMessage = await queryAsync($, '.request-signature__notice') - assert.ok(confirmSigMessage[0].textContent.match(/^Signing\sthis\smessage/)) - let confirmSigRowValue = await queryAsync($, '.request-signature__row-value') - assert.equal(confirmSigRowValue[0].textContent, '0x879a053d4800c6354e76c7985a865d2922c82fb5b3f4577b2fe08b998954f2e0') + assert.ok(confirmSigRowValue[0].textContent.match(/^\#\sTerms\sof\sUse/)) let confirmSigSignButton = await queryAsync($, 'button.btn-primary--lg') confirmSigSignButton[0].click() @@ -44,8 +36,8 @@ async function runConfirmSigRequestsTest(assert, done) { confirmSigHeadline = await queryAsync($, '.request-signature__headline') assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested') - confirmSigRowValue = await queryAsync($, '.request-signature__row-value') - assert.ok(confirmSigRowValue[0].textContent.match(/^\#\sTerms\sof\sUse/)) + let confirmSigMessage = await queryAsync($, '.request-signature__notice') + assert.ok(confirmSigMessage[0].textContent.match(/^Signing\sthis\smessage/)) confirmSigSignButton = await queryAsync($, 'button.btn-primary--lg') confirmSigSignButton[0].click() diff --git a/test/integration/lib/send-new-ui.js b/test/integration/lib/send-new-ui.js index fc3d7a5d1..163f3658c 100644 --- a/test/integration/lib/send-new-ui.js +++ b/test/integration/lib/send-new-ui.js @@ -173,8 +173,6 @@ async function runSendFlowTest(assert, done) { console.log(`+++++++++++++++++++++++++++++++= confirmScreenConfirmButton[0]`, confirmScreenConfirmButton[0]); confirmScreenConfirmButton[0].click() - await timeout(10000000) - const txView = await queryAsync($, '.tx-view') console.log(`++++++++++++++++++++++++++++++++ txView[0]`, txView[0]); -- cgit v1.2.3