1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

e2e: Use close instead of save for gas modal (#6066)

This commit is contained in:
Thomas Huang 2019-01-30 08:00:14 -06:00 committed by Whymarrh Whitby
parent 02bdbbbc3e
commit 4c16f4baee

View File

@ -278,6 +278,7 @@ describe('MetaMask', function () {
const inputValue = await inputAmount.getAttribute('value') const inputValue = await inputAmount.getAttribute('value')
assert.equal(inputValue, '1') assert.equal(inputValue, '1')
await delay(regularDelayMs)
}) })
it('opens and closes the gas modal', async function () { it('opens and closes the gas modal', async function () {
@ -288,7 +289,7 @@ describe('MetaMask', function () {
const gasModal = await driver.findElement(By.css('span .modal')) const gasModal = await driver.findElement(By.css('span .modal'))
const save = await findElement(driver, By.xpath(`//button[contains(text(), 'Save')]`)) const save = await findElement(driver, By.css('.page-container__header-close-text'))
await save.click() await save.click()
await driver.wait(until.stalenessOf(gasModal), 10000) await driver.wait(until.stalenessOf(gasModal), 10000)
await delay(regularDelayMs) await delay(regularDelayMs)