diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2018-03-28 05:03:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 05:03:47 +0800 |
commit | 246287ff1c7784a171786f66cb6dd2b4686e84c4 (patch) | |
tree | eb7ad13a770c19dea9d009b311b99a08bf35cffb /test/e2e/func.js | |
parent | 0fe0d8b7a5ec3a143ece38df4d0811b6de02b63f (diff) | |
parent | c2b5538ff3515fd8a9913e3f3424beba93e6ab91 (diff) | |
download | tangerine-wallet-browser-246287ff1c7784a171786f66cb6dd2b4686e84c4.tar tangerine-wallet-browser-246287ff1c7784a171786f66cb6dd2b4686e84c4.tar.gz tangerine-wallet-browser-246287ff1c7784a171786f66cb6dd2b4686e84c4.tar.bz2 tangerine-wallet-browser-246287ff1c7784a171786f66cb6dd2b4686e84c4.tar.lz tangerine-wallet-browser-246287ff1c7784a171786f66cb6dd2b4686e84c4.tar.xz tangerine-wallet-browser-246287ff1c7784a171786f66cb6dd2b4686e84c4.tar.zst tangerine-wallet-browser-246287ff1c7784a171786f66cb6dd2b4686e84c4.zip |
Merge pull request #3754 from MetaMask/selenium-e2e
test - e2e testing with selenium
Diffstat (limited to 'test/e2e/func.js')
-rw-r--r-- | test/e2e/func.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/e2e/func.js b/test/e2e/func.js new file mode 100644 index 000000000..733225565 --- /dev/null +++ b/test/e2e/func.js @@ -0,0 +1,18 @@ +require('chromedriver') +const webdriver = require('selenium-webdriver') + +exports.delay = function delay (time) { + return new Promise(resolve => setTimeout(resolve, time)) +} + + +exports.buildWebDriver = function buildWebDriver (extPath) { + return new webdriver.Builder() + .withCapabilities({ + chromeOptions: { + args: [`load-extension=${extPath}`], + }, + }) + .forBrowser('chrome') + .build() +} |