Skip to content

Commit

Permalink
Starting port from configuration (#613)
Browse files Browse the repository at this point in the history
Looks good.  Thanks.
  • Loading branch information
lsuchanek authored and garris committed Dec 10, 2017
1 parent 79cbbf5 commit fa28f51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ See casperjs documentation for more info on instance options. An example config
Chromy enables a lot of behavior via constructor options. See Chromy documentation for more info.

**NOTE:** Backstop sets defaults for many Chromy properties. Setting a parameter value with engineOptions will override any default value set by backstop. _But please watch out for the following..._
- (TLDR) Setting `port` is _very_ _very_ not advised.
- (TLDR) Setting `port` is _very_ _very_ not advised. But you can change starting port in configuration. `"startingPort": 9333`
- Setting `chromeFlags` will override all chromeFlags properties set by backstop -- **EXCEPT FOR `--window-size`***... (i.e. `--window-size` flag will be added by backstop if not found in chromeFlags)
- Setting `--window-size` explicitly in `chromeFlags` will override values used in your viewport settings.

Expand Down
2 changes: 1 addition & 1 deletion core/util/runChromy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function processScenarioView (scenario, variantOrScenarioLabelSafe, scenarioLabe
const VP_H = viewport.height || viewport.viewport.height;

const DEFAULT_CHROME_FLAGS = ['--disable-gpu', '--force-device-scale-factor=1', '--disable-infobars=true'];
const PORT = CHROMY_STARTING_PORT_NUMBER + runId;
const PORT = (config.startingPort || CHROMY_STARTING_PORT_NUMBER) + runId;
let defaultOptions = {
chromeFlags: undefined,
port: PORT,
Expand Down

0 comments on commit fa28f51

Please sign in to comment.