diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-03 08:13:04 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-03 08:13:04 +0800 |
commit | b4107a505b06ef4fbf41edb811134bfea38f5e8b (patch) | |
tree | c937b1436a024aaab7d5006639ea408f22f66fbe | |
parent | 0da41263acabe99fb1bf6b1a3a00c0c27a305eea (diff) | |
download | tangerine-wallet-browser-b4107a505b06ef4fbf41edb811134bfea38f5e8b.tar tangerine-wallet-browser-b4107a505b06ef4fbf41edb811134bfea38f5e8b.tar.gz tangerine-wallet-browser-b4107a505b06ef4fbf41edb811134bfea38f5e8b.tar.bz2 tangerine-wallet-browser-b4107a505b06ef4fbf41edb811134bfea38f5e8b.tar.lz tangerine-wallet-browser-b4107a505b06ef4fbf41edb811134bfea38f5e8b.tar.xz tangerine-wallet-browser-b4107a505b06ef4fbf41edb811134bfea38f5e8b.tar.zst tangerine-wallet-browser-b4107a505b06ef4fbf41edb811134bfea38f5e8b.zip |
fix warning for new-ui screen tests
-rw-r--r-- | test/screens/new-ui.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/screens/new-ui.js b/test/screens/new-ui.js index 120612c02..92d1b8378 100644 --- a/test/screens/new-ui.js +++ b/test/screens/new-ui.js @@ -12,7 +12,7 @@ const pngFileStream = require('png-file-stream') const sizeOfPng = require('image-size/lib/types/png') const By = webdriver.By const localesIndex = require('../../app/_locales/index.json') -const { delay, buildChromeWebDriver, buildFirefoxWebdriver, installWebExt, getExtensionIdChrome, getExtensionIdFirefox } = require('../e2e/func') +const { delay, buildChromeWebDriver, getExtensionIdChrome } = require('../e2e/func') const eth = new Ethjs(new Ethjs.HttpProvider('http://localhost:8545')) @@ -43,9 +43,7 @@ captureAllScreens() async function captureAllScreens () { // common names - let button let tabs - let element await cleanScreenShotDir() @@ -108,7 +106,7 @@ async function captureAllScreens () { await captureLanguageScreenShots('terms') await delay(300) - element = driver.findElement(By.linkText('Attributions')) + const element = driver.findElement(By.linkText('Attributions')) await driver.executeScript('arguments[0].scrollIntoView(true)', element) await delay(300) await captureLanguageScreenShots('terms-scrolled') |