e2e: Wait a bit before clicking through privacy screen

The network connection can take a bit so we need to wait for the
spinner to go away.
feature/default_network_editable
Whymarrh Whitby 7 years ago
parent 4e91fc8639
commit dc6f6addb9
  1. 1
      test/e2e/firefox/metamask.spec.js

@ -59,6 +59,7 @@ describe('', function () {
}) })
it('shows privacy notice', async () => { it('shows privacy notice', async () => {
await delay(300)
const privacy = await driver.findElement(By.css('.terms-header')).getText() const privacy = await driver.findElement(By.css('.terms-header')).getText()
assert.equal(privacy, 'PRIVACY NOTICE', 'shows privacy notice') assert.equal(privacy, 'PRIVACY NOTICE', 'shows privacy notice')
await driver.findElement(By.css('button')).click() await driver.findElement(By.css('button')).click()

Loading…
Cancel
Save