1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Update condition for backspace in customize gas step of token factory send test (e2e beta).

This commit is contained in:
Dan 2018-06-27 13:50:44 -02:30
parent 0b2db451ee
commit 0cdfbb4503

View File

@ -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)
}