From e95fed06b7162f380317e2a5dedfae5bc8a58e26 Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 14 Jun 2018 00:36:14 -0700 Subject: [PATCH] test - e2e-beta - separate notice tests into individual tests --- test/e2e/beta/metamask-beta-ui.spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index cf081e696..d911b91ed 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -128,7 +128,7 @@ describe('MetaMask', function () { await delay(regularDelayMs) }) - it('clicks through the privacy notice', async () => { + it('clicks through the ToS', async () => { // terms of use const canClickThrough = await driver.findElement(By.css('.tou button')).isEnabled() assert.equal(canClickThrough, false, 'disabled continue button') @@ -138,12 +138,16 @@ describe('MetaMask', function () { const acceptTos = await findElement(driver, By.css('.tou button')) await acceptTos.click() await delay(regularDelayMs) + }) + it('clicks through the privacy notice', async () => { // privacy notice const nextScreen = await findElement(driver, By.css('.tou button')) await nextScreen.click() await delay(regularDelayMs) + }) + it('clicks through the phishing notice', async () => { // phishing notice const noticeElement = await driver.findElement(By.css('.markdown')) await driver.executeScript('arguments[0].scrollTop = arguments[0].scrollHeight', noticeElement)