mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
e2e: Use close instead of save for gas modal (#6066)
This commit is contained in:
parent
02bdbbbc3e
commit
4c16f4baee
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user