1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
This commit is contained in:
kumavis 2019-09-11 00:11:49 +08:00
parent b2e1f14039
commit 8eb3e4705a
2 changed files with 1 additions and 10 deletions

View File

@ -1,18 +1,11 @@
const path = require('path')
const assert = require('assert')
const webdriver = require('selenium-webdriver')
const { By, until } = webdriver
const {
delay,
buildChromeWebDriver,
buildFirefoxWebdriver,
installWebExt,
getExtensionIdChrome,
getExtensionIdFirefox,
} = require('./func')
const {
checkBrowserForConsoleErrors,
closeAllWindowHandlesExcept,
findElement,
findElements,
openNewPage,
@ -24,7 +17,6 @@ const {
} = require('./helpers')
describe('MetaMask', function () {
let extensionId
let driver
let publicAddress
@ -38,7 +30,6 @@ describe('MetaMask', function () {
before(async function () {
const result = await prepareExtensionForTesting()
driver = result.driver
extensionId = result.extensionId
await setupFetchMocking(driver)
})

View File

@ -39,7 +39,7 @@ module.exports = {
}
async function prepareExtensionForTesting ({ responsive }={}) {
async function prepareExtensionForTesting ({ responsive } = {}) {
let driver, extensionId, extensionUrl
const targetBrowser = process.env.SELENIUM_BROWSER
switch (targetBrowser) {