From 0cdfbb450364d986bd9bee680f16b8a3ab236fbe Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 27 Jun 2018 13:50:44 -0230 Subject: [PATCH] Update condition for backspace in customize gas step of token factory send test (e2e beta). --- test/e2e/beta/metamask-beta-ui.spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index 44610975a..669cc8fce 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -751,7 +751,10 @@ describe('MetaMask', function () { await gasLimitInput.sendKeys(Key.chord(Key.CONTROL, 'a')) await gasLimitInput.sendKeys('60000') await gasLimitInput.sendKeys(Key.chord(Key.CONTROL, 'e')) - if (process.env.SELENIUM_BROWSER === 'firefox') { + + // Needed for different behaviour of input in different versions of firefox + const gasLimitInputValue = await gasLimitInput.getAttribute('value') + if (gasLimitInputValue === '600001') { await gasLimitInput.sendKeys(Key.BACK_SPACE) }