mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Wait for an element with a .tx-list-pending-item-container to be rendered before attempting to select the tx-list-item. (e2e beta tests)
This commit is contained in:
parent
05ee2b7401
commit
07322bc404
@ -550,6 +550,7 @@ describe('MetaMask', function () {
|
|||||||
await driver.switchTo().window(extension)
|
await driver.switchTo().window(extension)
|
||||||
await delay(regularDelayMs)
|
await delay(regularDelayMs)
|
||||||
|
|
||||||
|
await findElements(driver, By.css('.tx-list-pending-item-container'))
|
||||||
const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
|
const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
|
||||||
await driver.wait(until.elementTextMatches(txListValue, /4\sETH/), 10000)
|
await driver.wait(until.elementTextMatches(txListValue, /4\sETH/), 10000)
|
||||||
await txListValue.click()
|
await txListValue.click()
|
||||||
@ -799,6 +800,7 @@ describe('MetaMask', function () {
|
|||||||
await driver.switchTo().window(extension)
|
await driver.switchTo().window(extension)
|
||||||
await delay(largeDelayMs)
|
await delay(largeDelayMs)
|
||||||
|
|
||||||
|
await findElements(driver, By.css('.tx-list-pending-item-container'))
|
||||||
const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
|
const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
|
||||||
await driver.wait(until.elementTextMatches(txListValue, /7\sTST/), 10000)
|
await driver.wait(until.elementTextMatches(txListValue, /7\sTST/), 10000)
|
||||||
await txListValue.click()
|
await txListValue.click()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user