Specify a browser location for wct-local test

Polymer Starter comes with a web component tester to test your custom elements. In wct.conf.json, you can tell the browser to run tests.

{ "suites": ["app/test"], "plugins": { "local": { "browsers": ["firefox"] } } 

Unfortunately, when I run tests through gulp, wct cannot find my local Firefox. I read on GitHub that wct uses the launchpad to detect local browsers. Afaik, on a Windows machine, the start panel looks for Firefox in the default directory "C: \ Program Files \ Mozilla Firefox". But I installed Firefox in a different directory.

Is there a way to configure the path to my Firefox file in wct.conf.json?

+5
source share

Source: https://habr.com/ru/post/1232619/


All Articles