|
|
|
@ -769,6 +769,22 @@ describe('MetaMask', function () { |
|
|
|
|
await driver.switchTo().window(popup) |
|
|
|
|
await delay(regularDelayMs) |
|
|
|
|
|
|
|
|
|
const configureGas = await driver.wait(until.elementLocated(By.css('.confirm-detail-row__header-text--edit')), 10000) |
|
|
|
|
await configureGas.click() |
|
|
|
|
await delay(regularDelayMs) |
|
|
|
|
|
|
|
|
|
const advancedTabButton = await driver.wait(until.elementLocated(By.xpath(`//li[contains(text(), 'Advanced')]`)), 10000) |
|
|
|
|
await advancedTabButton.click() |
|
|
|
|
await delay(tinyDelayMs) |
|
|
|
|
|
|
|
|
|
const [gasPriceInput, gasLimitInput] = await findElements(driver, By.css('.advanced-tab__gas-edit-row__input')) |
|
|
|
|
assert(gasPriceInput.getAttribute('value'), 20) |
|
|
|
|
assert(gasLimitInput.getAttribute('value'), 4700000) |
|
|
|
|
|
|
|
|
|
const saveButton = await findElement(driver, By.xpath(`//button[contains(text(), 'Save')]`)) |
|
|
|
|
await saveButton.click() |
|
|
|
|
await delay(regularDelayMs) |
|
|
|
|
|
|
|
|
|
const confirmButton = await findElement(driver, By.xpath(`//button[contains(text(), 'Confirm')]`)) |
|
|
|
|
await confirmButton.click() |
|
|
|
|
await delay(regularDelayMs) |
|
|
|
|