diff --git a/app/images/eth_logo.svg b/app/images/eth_logo.svg index 356b8e8779f2..4b6ceacffc19 100644 --- a/app/images/eth_logo.svg +++ b/app/images/eth_logo.svg @@ -5,4 +5,4 @@ - + \ No newline at end of file diff --git a/test/e2e/tests/transaction/send-edit.spec.js b/test/e2e/tests/transaction/send-edit.spec.js index 01a69e098425..07cb7e344838 100644 --- a/test/e2e/tests/transaction/send-edit.spec.js +++ b/test/e2e/tests/transaction/send-edit.spec.js @@ -34,7 +34,13 @@ describe('Editing Confirm Transaction', function () { await driver.clickElement( '.confirm-page-container-header__back-button', ); - await driver.fill('.unit-input__input', '2.2'); + + const inputAmount = await driver.findElement('.unit-input__input'); + + await inputAmount.press(driver.Key.BACK_SPACE); + await inputAmount.press('2'); + await inputAmount.press('.'); + await inputAmount.press('2'); await driver.clickElement({ text: 'Next', tag: 'button' }); @@ -103,7 +109,13 @@ describe('Editing Confirm Transaction', function () { await driver.clickElement( '.confirm-page-container-header__back-button', ); - await driver.fill('.unit-input__input', '2.2'); + + const inputAmount = await driver.findElement('.unit-input__input'); + + await inputAmount.press(driver.Key.BACK_SPACE); + await inputAmount.press('2'); + await inputAmount.press('.'); + await inputAmount.press('2'); await driver.clickElement({ text: 'Next', tag: 'button' }); diff --git a/test/e2e/tests/transaction/send-eth.spec.js b/test/e2e/tests/transaction/send-eth.spec.js index 3444fbc5a60a..1a7b1f8493d2 100644 --- a/test/e2e/tests/transaction/send-eth.spec.js +++ b/test/e2e/tests/transaction/send-eth.spec.js @@ -35,7 +35,11 @@ describe('Send ETH', function () { ); const inputAmount = await driver.findElement('.unit-input__input'); - await inputAmount.fill('1000'); + + await inputAmount.press('1'); + await inputAmount.press('0'); + await inputAmount.press('0'); + await inputAmount.press('0'); await driver.findElement({ css: '.send-v2__error-amount', @@ -113,7 +117,7 @@ describe('Send ETH', function () { ); const inputAmount = await driver.findElement('.unit-input__input'); - await inputAmount.fill('1'); + await inputAmount.press('1'); const inputValue = await inputAmount.getProperty('value'); assert.equal(inputValue, '1'); @@ -170,7 +174,7 @@ describe('Send ETH', function () { ); const inputAmount = await driver.findElement('.unit-input__input'); - await inputAmount.fill('1'); + await inputAmount.press('1'); if (!process.env.MULTICHAIN) { // We need to wait for the text "Max Fee: 0.000xxxx ETH" before continuing diff --git a/types/global.d.ts b/types/global.d.ts index c10117659489..7a76ed7e1dd4 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -244,4 +244,9 @@ export declare global { toNeverResolve(): Promise; } } + + /** + * Unions T with U; U's properties will override T's properties + */ + type OverridingUnion = Omit & U; } diff --git a/ui/components/app/currency-input/__snapshots__/currency-input.test.js.snap b/ui/components/app/currency-input/__snapshots__/currency-input.test.js.snap index 339ef4441814..4fcaa50ec99c 100644 --- a/ui/components/app/currency-input/__snapshots__/currency-input.test.js.snap +++ b/ui/components/app/currency-input/__snapshots__/currency-input.test.js.snap @@ -10,15 +10,19 @@ exports[`CurrencyInput Component rendering should render properly with a fiat va >
- 0.00432788 + 0
-
`; @@ -108,15 +108,19 @@ exports[`CurrencyInput Component rendering should render properly with an ETH va >
$231.06 - - USD -
`; diff --git a/ui/components/app/user-preferenced-currency-input/user-preferenced-currency-input.component.js b/ui/components/app/user-preferenced-currency-input/user-preferenced-currency-input.component.js index eb49f74000f9..70b232848d16 100644 --- a/ui/components/app/user-preferenced-currency-input/user-preferenced-currency-input.component.js +++ b/ui/components/app/user-preferenced-currency-input/user-preferenced-currency-input.component.js @@ -6,6 +6,7 @@ export default class UserPreferencedCurrencyInput extends PureComponent { static propTypes = { useNativeCurrencyAsPrimaryCurrency: PropTypes.bool, sendInputCurrencySwitched: PropTypes.bool, + ...CurrencyInput.propTypes, }; render() { @@ -18,7 +19,7 @@ export default class UserPreferencedCurrencyInput extends PureComponent { return (