Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/browsers/chromium.js

Issue 29892585: Issue 6985 - Running npm test fails on Windows for adblockpluschrome (Closed)
Patch Set: Created Sept. 26, 2018, 10:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dependencies ('k') | test/browsers/firefox.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/browsers/chromium.js
diff --git a/test/browsers/chromium.js b/test/browsers/chromium.js
index 9672237cd704441d113711a0fc192efabed3af00..fce87597ae9e3ac32b194cc4485babbe7a214291 100644
--- a/test/browsers/chromium.js
+++ b/test/browsers/chromium.js
@@ -22,6 +22,10 @@ const chrome = require("selenium-webdriver/chrome");
const {ensureChromium} = require("../../adblockpluscore/test/runners/" +
"chromium_download");
+// We need to require the chromedriver,
+// otherwise on Windows the chromedriver path is not added to process.env.PATH.
+require("chromedriver");
+
exports.platform = "chrome";
exports.ensureBrowser = ensureChromium;
« no previous file with comments | « dependencies ('k') | test/browsers/firefox.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld