aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/metamask.spec.js
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/metamask.spec.js
parent44a8e48a04ea69e1f8e530ae1bacf55890f8df98 (diff)
downloadtangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar.gz
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar.bz2
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar.lz
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar.xz
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.tar.zst
tangerine-wallet-browser-4b8a4fd5fe5816dc5d748436b5b1cd9fe7d5bdea.zip
test - e2e - check for phishing warning
Diffstat (limited to 'test/e2e/metamask.spec.js')
-rw-r--r--test/e2e/metamask.spec.js24
1 files changed, 16 insertions, 8 deletions
diff --git a/test/e2e/metamask.spec.js b/test/e2e/metamask.spec.js
index a08a34d96..fb7e083c3 100644
--- a/test/e2e/metamask.spec.js
+++ b/test/e2e/metamask.spec.js
@@ -73,14 +73,6 @@ describe('Metamask popup page', function () {
assert.equal(title, 'MetaMask', 'title matches MetaMask')
})
- 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()
- await delay(300)
- })
-
it('show terms of use', async () => {
const terms = await driver.findElement(By.css('.terms-header')).getText()
assert.equal(terms, 'TERMS OF USE', 'shows terms of use')
@@ -100,6 +92,22 @@ describe('Metamask popup page', function () {
await button.click()
})
+ 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()
+ await delay(300)
+ })
+
+ it('shows phishing notice', async () => {
+ await delay(300)
+ const noticeHeader = await driver.findElement(By.css('.terms-header')).getText()
+ assert.equal(noticeHeader, 'PHISHING WARNING', 'shows phishing warning')
+ await driver.findElement(By.css('button')).click()
+ await delay(300)
+ })
+
it('accepts password with length of eight', async () => {
const passwordBox = await driver.findElement(By.id('password-box'))
const passwordBoxConfirm = await driver.findElement(By.id('password-box-confirm'))