1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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.
This commit is contained in:
Whymarrh Whitby 2018-05-14 13:58:56 -02:30
parent 4e91fc8639
commit dc6f6addb9

View File

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