|
|
@ -460,6 +460,11 @@ describe('MetaMask', function () { |
|
|
|
const transactions = await findElements(driver, By.css('.tx-list-item')) |
|
|
|
const transactions = await findElements(driver, By.css('.tx-list-item')) |
|
|
|
assert.equal(transactions.length, 2) |
|
|
|
assert.equal(transactions.length, 2) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await findElement(driver, By.xpath(`//span[contains(text(), 'Submitted')]`)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const txStatuses = await findElements(driver, By.css('.tx-list-status')) |
|
|
|
|
|
|
|
await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed/)) |
|
|
|
|
|
|
|
|
|
|
|
const txValues = await findElement(driver, By.css('.tx-list-value')) |
|
|
|
const txValues = await findElement(driver, By.css('.tx-list-value')) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /3\sETH/), 10000) |
|
|
|
await driver.wait(until.elementTextMatches(txValues, /3\sETH/), 10000) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -510,6 +515,8 @@ describe('MetaMask', function () { |
|
|
|
await confirmButton.click() |
|
|
|
await confirmButton.click() |
|
|
|
await delay(regularDelayMs) |
|
|
|
await delay(regularDelayMs) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await findElement(driver, By.xpath(`//span[contains(text(), 'Submitted')]`)) |
|
|
|
|
|
|
|
|
|
|
|
const txStatuses = await findElements(driver, By.css('.tx-list-status')) |
|
|
|
const txStatuses = await findElements(driver, By.css('.tx-list-status')) |
|
|
|
await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed/)) |
|
|
|
await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed/)) |
|
|
|
|
|
|
|
|
|
|
|