fix warning for new-ui screen tests

This commit is contained in:
brunobar79 2018-07-02 20:13:04 -04:00
parent 0da41263ac
commit b4107a505b
1 changed files with 2 additions and 4 deletions

View File

@ -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')