From f90ad6191cde32830cff4a82d3d8c6a31155bc29 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 29 May 2018 18:20:54 -0700 Subject: [PATCH 1/2] Add account --- test/e2e/metamask.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/e2e/metamask.spec.js b/test/e2e/metamask.spec.js index 8ec7de16c..d2ca29104 100644 --- a/test/e2e/metamask.spec.js +++ b/test/e2e/metamask.spec.js @@ -121,6 +121,12 @@ describe('Metamask popup page', function () { await delay(300) }) + it('adds a second account', async function () { + await driver.findElement(By.css('#app-content > div > div.full-width > div > div:nth-child(2) > span > div')).click() + await delay(300) + await driver.findElement(By.css('#app-content > div > div.full-width > div > div:nth-child(2) > span > div > div > span > div > li:nth-child(3) > span')).click() + }) + it('shows account address', async function () { accountAddress = await driver.findElement(By.css('#app-content > div > div.app-primary.from-left > div > div > div:nth-child(1) > flex-column > div.flex-row > div')).getText() }) From be6776897f16ab73fd6b363a1a9bc685c3afddcd Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 29 May 2018 23:07:45 -0700 Subject: [PATCH 2/2] Delay before getting address text --- test/e2e/metamask.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/metamask.spec.js b/test/e2e/metamask.spec.js index d2ca29104..a08a34d96 100644 --- a/test/e2e/metamask.spec.js +++ b/test/e2e/metamask.spec.js @@ -128,6 +128,7 @@ describe('Metamask popup page', function () { }) it('shows account address', async function () { + await delay(300) accountAddress = await driver.findElement(By.css('#app-content > div > div.app-primary.from-left > div > div > div:nth-child(1) > flex-column > div.flex-row > div')).getText() })