aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/beta
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-14 14:52:51 +0800
committerkumavis <aaron@kumavis.me>2018-06-14 14:52:51 +0800
commit4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea (patch)
tree75b047d3f70f1c5acf6dc7b2d8b6d067f29b8d7c /test/e2e/beta
parent44a8e48a04ea69e1f8e530ae1bacf55890f8df98 (diff)
downloadtangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar.gz
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar.zst
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.zip
test - e2e - check for phishing warning
Diffstat (limited to 'test/e2e/beta')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index ceeea31a5..0d304cf14 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -129,19 +129,25 @@ describe('MetaMask', function () {
})
it('clicks through the privacy notice', async () => {
- const nextScreen = await findElement(driver, By.css('.tou button'))
- await nextScreen.click()
- await delay(regularDelayMs)
-
+ // terms of use
const canClickThrough = await driver.findElement(By.css('.tou button')).isEnabled()
assert.equal(canClickThrough, false, 'disabled continue button')
const bottomOfTos = await findElement(driver, By.linkText('Attributions'))
await driver.executeScript('arguments[0].scrollIntoView(true)', bottomOfTos)
await delay(regularDelayMs)
-
const acceptTos = await findElement(driver, By.css('.tou button'))
await acceptTos.click()
await delay(regularDelayMs)
+
+ // privacy notice
+ const nextScreen = await findElement(driver, By.css('.tou button'))
+ await nextScreen.click()
+ await delay(regularDelayMs)
+
+ // phishing notice
+ const nextScreen = await findElement(driver, By.css('.tou button'))
+ await nextScreen.click()
+ await delay(regularDelayMs)
})
let seedPhrase