Fix e2e tests

feature/default_network_editable
Alexander Tseung 6 years ago
parent e104744d3b
commit c9ec5ed38d
  1. 14
      test/e2e/beta/metamask-beta-ui.spec.js
  2. 2
      ui/app/css/itcss/components/transaction-list.scss

@ -587,7 +587,7 @@ describe('MetaMask', function () {
await driver.switchTo().window(extension) await driver.switchTo().window(extension)
await delay(regularDelayMs) await delay(regularDelayMs)
const txListItem = await findElement(driver, By.css('.tx-list-item')) const txListItem = await findElement(driver, By.css('.transaction-list-item'))
await txListItem.click() await txListItem.click()
await delay(regularDelayMs) await delay(regularDelayMs)
@ -749,21 +749,21 @@ describe('MetaMask', function () {
}) })
it('finds the transaction in the transactions list', async function () { it('finds the transaction in the transactions list', async function () {
const transactions = await findElements(driver, By.css('.tx-list-item')) const transactions = await findElements(driver, By.css('.transaction-list-item'))
assert.equal(transactions.length, 1) assert.equal(transactions.length, 1)
const txValues = await findElements(driver, By.css('.tx-list-value')) const txValues = await findElements(driver, By.css('.transaction-list-item__amount--primary'))
assert.equal(txValues.length, 1) assert.equal(txValues.length, 1)
// test cancelled on firefox until https://github.com/mozilla/geckodriver/issues/906 is resolved, // test cancelled on firefox until https://github.com/mozilla/geckodriver/issues/906 is resolved,
// or possibly until we use latest version of firefox in the tests // or possibly until we use latest version of firefox in the tests
if (process.env.SELENIUM_BROWSER !== 'firefox') { if (process.env.SELENIUM_BROWSER !== 'firefox') {
await driver.wait(until.elementTextMatches(txValues[0], /50\sTST/), 10000) await driver.wait(until.elementTextMatches(txValues[0], /-50\sTST/), 10000)
} }
const txStatuses = await findElements(driver, By.css('.tx-list-status')) const txStatuses = await findElements(driver, By.css('.transaction-list-item__status'))
const tx = await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed|Failed/), 10000) const tx = await driver.wait(until.elementTextMatches(txStatuses[0], /Outgoing|Failed/), 10000)
assert.equal(await tx.getText(), 'Confirmed') assert.equal(await tx.getText(), 'Outgoing')
}) })
}) })

@ -243,7 +243,7 @@
} }
.tx-list-item { .tx-list-item {
border-top: 1px solid rgb(231, 231, 231); border-bottom: 1px solid $geyser;
flex: 0 0 auto; flex: 0 0 auto;
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;

Loading…
Cancel
Save