diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index e5df57820bba..6cb3981cb25b 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -474,7 +474,7 @@ describe('MetaMask', function () { const popoverCloseButton = await driver.findClickableElement(By.css('.popover-header__button')) const txGasPrices = await driver.findElements(By.css('.transaction-breakdown__value')) const txGasPriceLabels = await driver.findElements(By.css('.transaction-breakdown-row__title')) - await driver.wait(until.elementTextMatches(txGasPrices[3], /^10$/), 10000) + await driver.wait(until.elementTextMatches(txGasPrices[4], /^10$/), 10000) assert(txGasPriceLabels[2]) await popoverCloseButton.click() }) diff --git a/ui/app/components/app/transaction-breakdown/transaction-breakdown.component.js b/ui/app/components/app/transaction-breakdown/transaction-breakdown.component.js index 6e610a8337dd..2c3d5e924455 100644 --- a/ui/app/components/app/transaction-breakdown/transaction-breakdown.component.js +++ b/ui/app/components/app/transaction-breakdown/transaction-breakdown.component.js @@ -16,6 +16,7 @@ export default class TransactionBreakdown extends PureComponent { className: PropTypes.string, nativeCurrency: PropTypes.string, showFiat: PropTypes.bool, + nonce: PropTypes.string, gas: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), gasPrice: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), @@ -29,13 +30,22 @@ export default class TransactionBreakdown extends PureComponent { render () { const { t } = this.context - const { gas, gasPrice, value, className, nativeCurrency, showFiat, totalInHex, gasUsed } = this.props - + const { gas, gasPrice, value, className, nonce, nativeCurrency, showFiat, totalInHex, gasUsed } = this.props return (