From e8eac6c6b61ce1bd1c5fb0a0b58fc4143a15b152 Mon Sep 17 00:00:00 2001 From: Arnaud97234 Date: Wed, 17 Oct 2018 19:18:12 +0200 Subject: [PATCH] check dev mode test --- src/components/SelectCurrency/index.js | 1 - src/components/base/CurrencyBadge.js | 2 +- src/components/base/Modal/ModalBody.js | 5 ++++- test-e2e/enable-dev-mode.spec.js | 6 ++++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/SelectCurrency/index.js b/src/components/SelectCurrency/index.js index 079cb474..0ba3bab4 100644 --- a/src/components/SelectCurrency/index.js +++ b/src/components/SelectCurrency/index.js @@ -40,7 +40,6 @@ const SelectCurrency = ({ onChange, value, t, placeholder, currencies, ...props renderValue={renderOption} options={options} placeholder={placeholder || t('common.selectCurrency')} - data-e2e="test" noOptionsMessage={({ inputValue }: { inputValue: string }) => t('common.selectCurrencyNoOption', { currencyName: inputValue }) } diff --git a/src/components/base/CurrencyBadge.js b/src/components/base/CurrencyBadge.js index 0e4de748..08a27ff5 100644 --- a/src/components/base/CurrencyBadge.js +++ b/src/components/base/CurrencyBadge.js @@ -45,7 +45,7 @@ function CurrencyBadge({ currency, ...props }: { currency: Currency }) { {currency.ticker} - + {currency.name} diff --git a/src/components/base/Modal/ModalBody.js b/src/components/base/Modal/ModalBody.js index 704a380a..c0083590 100644 --- a/src/components/base/Modal/ModalBody.js +++ b/src/components/base/Modal/ModalBody.js @@ -42,7 +42,10 @@ class ModalBody extends PureComponent { const { children, onClose, deferHeight, ...props } = this.props const { isHidden } = this.state return ( - + {onClose && ( diff --git a/test-e2e/enable-dev-mode.spec.js b/test-e2e/enable-dev-mode.spec.js index bff4bebb..7727612e 100644 --- a/test-e2e/enable-dev-mode.spec.js +++ b/test-e2e/enable-dev-mode.spec.js @@ -113,6 +113,12 @@ describe('Application launch', () => { // Add New Account await app.client.click('[data-e2e=menuAddAccount_button]') await waitForExpectedText(app, '[data-e2e=modal_title]', 'Add accounts') + + // Select Bitcoin Testnet from dropdown list + await app.client.setValue('[data-e2e=modalBody] input', 'Bitcoin testnet') + await app.client.keys('Enter') + const currencyBadge = await app.client.getText('[data-e2e=currencyBadge]') + expect(currencyBadge).toEqual('Bitcoin Testnet') }, TIMEOUT, )