diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-06-15 00:49:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 00:49:38 +0800 |
commit | 3a5089da6faa35d6dc20dacbd87717e055a61a34 (patch) | |
tree | 3d55d150d69405b8c2d76ca9f3c4511626dbc5fb /test/e2e/beta/metamask-beta-ui.spec.js | |
parent | 1f83a110b959fcf9d8fa7cedb852f6c665bd0fc5 (diff) | |
parent | c2afb7903522d87345f4a39f7ca3df8fa8889d53 (diff) | |
download | tangerine-wallet-browser-3a5089da6faa35d6dc20dacbd87717e055a61a34.tar tangerine-wallet-browser-3a5089da6faa35d6dc20dacbd87717e055a61a34.tar.gz tangerine-wallet-browser-3a5089da6faa35d6dc20dacbd87717e055a61a34.tar.bz2 tangerine-wallet-browser-3a5089da6faa35d6dc20dacbd87717e055a61a34.tar.lz tangerine-wallet-browser-3a5089da6faa35d6dc20dacbd87717e055a61a34.tar.xz tangerine-wallet-browser-3a5089da6faa35d6dc20dacbd87717e055a61a34.tar.zst tangerine-wallet-browser-3a5089da6faa35d6dc20dacbd87717e055a61a34.zip |
Merge pull request #4566 from MetaMask/notice-phishing
Push new notice on recent phishing incidents
Diffstat (limited to 'test/e2e/beta/metamask-beta-ui.spec.js')
-rw-r--r-- | test/e2e/beta/metamask-beta-ui.spec.js | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index ceeea31a5..d911b91ed 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -128,22 +128,35 @@ describe('MetaMask', function () { await delay(regularDelayMs) }) - it('clicks through the privacy notice', async () => { - const nextScreen = await findElement(driver, By.css('.tou button')) - await nextScreen.click() - await delay(regularDelayMs) - + 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') 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) }) + 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) + await delay(regularDelayMs) + const nextScreen = await findElement(driver, By.css('.tou button')) + await nextScreen.click() + await delay(regularDelayMs) + }) + let seedPhrase it('reveals the seed phrase', async () => { |