From 9db0a32dac81ad071f3c15651ce5fb830d2ddf4a Mon Sep 17 00:00:00 2001 From: Alexander Tseung Date: Tue, 6 Feb 2018 21:07:00 -0800 Subject: Update modal header design on send screen (#3196) --- test/integration/lib/send-new-ui.js | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'test/integration/lib') diff --git a/test/integration/lib/send-new-ui.js b/test/integration/lib/send-new-ui.js index 99571d0e8..3456f2367 100644 --- a/test/integration/lib/send-new-ui.js +++ b/test/integration/lib/send-new-ui.js @@ -30,16 +30,10 @@ async function runSendFlowTest(assert, done) { await timeout(1000) - const sendContainer = $('.send-v2__container') - assert.ok(sendContainer[0], 'send container renders') + const sendTitle = $('.page-container__title') + assert.equal(sendTitle[0].textContent, 'Send ETH', 'Send screen title is correct') - const sendHeader = $('.send-v2__send-header-icon') - assert.ok(sendHeader[0], 'send screen has a header icon') - - const sendTitle = $('.send-v2__title') - assert.equal(sendTitle[0].textContent, 'Send Funds', 'Send screen title is correct') - - const sendCopy = $('.send-v2__copy') + const sendCopy = $('.page-container__subtitle') assert.equal(sendCopy[0].textContent, 'Only send ETH to an Ethereum address.', 'Send screen has copy') const sendFromField = $('.send-v2__form-field') @@ -120,7 +114,7 @@ async function runSendFlowTest(assert, done) { const customizeGasModal = $('.send-v2__customize-gas') assert.ok(customizeGasModal[0], 'should render the customize gas modal') - + const customizeGasPriceInput = $('.send-v2__gas-modal-card').first().find('input') customizeGasPriceInput.val(50) reactTriggerChange(customizeGasPriceInput[0]) @@ -146,7 +140,8 @@ async function runSendFlowTest(assert, done) { 'send gas field should show customized gas total converted to USD' ) - const sendButton = $('.send-v2__next-btn') + const sendButton = $('button.btn-clear.page-container__footer-button') + assert.equal(sendButton[0].textContent, 'Next', 'next button rendered') sendButton[0].click() await timeout(2000) @@ -200,7 +195,8 @@ async function runSendFlowTest(assert, done) { await timeout() - const sendButtonInEdit = $('.send-v2__next-btn') + const sendButtonInEdit = $('.btn-clear.page-container__footer-button') + assert.equal(sendButtonInEdit[0].textContent, 'Next', 'next button in edit rendered') sendButtonInEdit[0].click() await timeout() -- cgit