mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix warning for new-ui screen tests
This commit is contained in:
parent
0da41263ac
commit
b4107a505b
@ -12,7 +12,7 @@ const pngFileStream = require('png-file-stream')
|
|||||||
const sizeOfPng = require('image-size/lib/types/png')
|
const sizeOfPng = require('image-size/lib/types/png')
|
||||||
const By = webdriver.By
|
const By = webdriver.By
|
||||||
const localesIndex = require('../../app/_locales/index.json')
|
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'))
|
const eth = new Ethjs(new Ethjs.HttpProvider('http://localhost:8545'))
|
||||||
|
|
||||||
@ -43,9 +43,7 @@ captureAllScreens()
|
|||||||
|
|
||||||
async function captureAllScreens () {
|
async function captureAllScreens () {
|
||||||
// common names
|
// common names
|
||||||
let button
|
|
||||||
let tabs
|
let tabs
|
||||||
let element
|
|
||||||
|
|
||||||
await cleanScreenShotDir()
|
await cleanScreenShotDir()
|
||||||
|
|
||||||
@ -108,7 +106,7 @@ async function captureAllScreens () {
|
|||||||
await captureLanguageScreenShots('terms')
|
await captureLanguageScreenShots('terms')
|
||||||
|
|
||||||
await delay(300)
|
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 driver.executeScript('arguments[0].scrollIntoView(true)', element)
|
||||||
await delay(300)
|
await delay(300)
|
||||||
await captureLanguageScreenShots('terms-scrolled')
|
await captureLanguageScreenShots('terms-scrolled')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user