|
|
@ -408,7 +408,7 @@ describe('MetaMask', function () { |
|
|
|
assert.equal(transactions.length, 1) |
|
|
|
assert.equal(transactions.length, 1) |
|
|
|
|
|
|
|
|
|
|
|
if (process.env.SELENIUM_BROWSER !== 'firefox') { |
|
|
|
if (process.env.SELENIUM_BROWSER !== 'firefox') { |
|
|
|
const txValues = await findElement(driver, By.css('.transaction-list-item__amount--secondary')) |
|
|
|
const txValues = await findElement(driver, By.css('.transaction-list-item__amount--primary')) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /-1\sETH/), 10000) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /-1\sETH/), 10000) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
@ -450,7 +450,7 @@ describe('MetaMask', function () { |
|
|
|
const transactions = await findElements(driver, By.css('.transaction-list-item')) |
|
|
|
const transactions = await findElements(driver, By.css('.transaction-list-item')) |
|
|
|
assert.equal(transactions.length, 2) |
|
|
|
assert.equal(transactions.length, 2) |
|
|
|
|
|
|
|
|
|
|
|
const txValues = await findElement(driver, By.css('.transaction-list-item__amount--secondary')) |
|
|
|
const txValues = await findElement(driver, By.css('.transaction-list-item__amount--primary')) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /-3\sETH/), 10000) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /-3\sETH/), 10000) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -528,7 +528,7 @@ describe('MetaMask', function () { |
|
|
|
await delay(largeDelayMs) |
|
|
|
await delay(largeDelayMs) |
|
|
|
|
|
|
|
|
|
|
|
await findElements(driver, By.css('.transaction-list-item')) |
|
|
|
await findElements(driver, By.css('.transaction-list-item')) |
|
|
|
const [txListValue] = await findElements(driver, By.css('.transaction-list-item__amount--secondary')) |
|
|
|
const [txListValue] = await findElements(driver, By.css('.transaction-list-item__amount--primary')) |
|
|
|
await driver.wait(until.elementTextMatches(txListValue, /-4\sETH/), 10000) |
|
|
|
await driver.wait(until.elementTextMatches(txListValue, /-4\sETH/), 10000) |
|
|
|
await txListValue.click() |
|
|
|
await txListValue.click() |
|
|
|
await delay(regularDelayMs) |
|
|
|
await delay(regularDelayMs) |
|
|
@ -562,7 +562,7 @@ describe('MetaMask', function () { |
|
|
|
return confirmedTxes.length === 4 |
|
|
|
return confirmedTxes.length === 4 |
|
|
|
}, 10000) |
|
|
|
}, 10000) |
|
|
|
|
|
|
|
|
|
|
|
const txValues = await findElements(driver, By.css('.transaction-list-item__amount--secondary')) |
|
|
|
const txValues = await findElements(driver, By.css('.transaction-list-item__amount--primary')) |
|
|
|
await driver.wait(until.elementTextMatches(txValues[0], /-4\sETH/), 10000) |
|
|
|
await driver.wait(until.elementTextMatches(txValues[0], /-4\sETH/), 10000) |
|
|
|
|
|
|
|
|
|
|
|
// const txAccounts = await findElements(driver, By.css('.tx-list-account'))
|
|
|
|
// const txAccounts = await findElements(driver, By.css('.tx-list-account'))
|
|
|
@ -594,7 +594,7 @@ describe('MetaMask', function () { |
|
|
|
return confirmedTxes.length === 5 |
|
|
|
return confirmedTxes.length === 5 |
|
|
|
}, 10000) |
|
|
|
}, 10000) |
|
|
|
|
|
|
|
|
|
|
|
const txValues = await findElement(driver, By.css('.transaction-list-item__amount--secondary')) |
|
|
|
const txValues = await findElement(driver, By.css('.transaction-list-item__amount--primary')) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /-0\sETH/), 10000) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /-0\sETH/), 10000) |
|
|
|
|
|
|
|
|
|
|
|
await closeAllWindowHandlesExcept(driver, [extension, dapp]) |
|
|
|
await closeAllWindowHandlesExcept(driver, [extension, dapp]) |
|
|
|