diff options
author | kumavis <aaron@kumavis.me> | 2018-03-12 09:52:27 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-03-12 09:52:27 +0800 |
commit | 07fa26d1f094a7a405107c5f31674e65c94cea8d (patch) | |
tree | 475ee2ce16e49e82b620bb264e2e5af73f169a7f | |
parent | 0419276958a168f2d7b75c11cfe8d14cf5f39514 (diff) | |
download | dexon-wallet-07fa26d1f094a7a405107c5f31674e65c94cea8d.tar.gz dexon-wallet-07fa26d1f094a7a405107c5f31674e65c94cea8d.tar.zst dexon-wallet-07fa26d1f094a7a405107c5f31674e65c94cea8d.zip |
test - add comment about test behavior oddity
-rw-r--r-- | test/integration/index.js | 2 | ||||
-rw-r--r-- | test/integration/lib/send-new-ui.js | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/test/integration/index.js b/test/integration/index.js index 144303db..b266ddf3 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -23,4 +23,4 @@ pump( console.log(`Integration test build completed: "${bundlePath}"`) process.exit(0) } -)
\ No newline at end of file +) diff --git a/test/integration/lib/send-new-ui.js b/test/integration/lib/send-new-ui.js index 07be63a3..faab10fd 100644 --- a/test/integration/lib/send-new-ui.js +++ b/test/integration/lib/send-new-ui.js @@ -43,17 +43,15 @@ async function runSendFlowTest(assert, done) { let sendFromFieldItemAddress = await queryAsync($, '.account-list-item__account-name') assert.equal(sendFromFieldItemAddress[0].textContent, 'Send Account 4', 'send from field shows correct account name') - await timeout() const sendFromFieldItem = await queryAsync($, '.account-list-item') sendFromFieldItem[0].click() + // this seems to fail if the firefox window is not in focus... const sendFromDropdownList = await queryAsync($, '.send-v2__from-dropdown__list') assert.equal(sendFromDropdownList.children().length, 4, 'send from dropdown shows all accounts') - console.log(`!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! sendFromDropdownList.children()[1]`, sendFromDropdownList.children()[1]); sendFromDropdownList.children()[1].click() sendFromFieldItemAddress = await queryAsync($, '.account-list-item__account-name') - console.log(`!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! sendFromFieldItemAddress[0]`, sendFromFieldItemAddress[0]); assert.equal(sendFromFieldItemAddress[0].textContent, 'Send Account 2', 'send from field dropdown changes account name') let sendToFieldInput = await queryAsync($, '.send-v2__to-autocomplete__input') |