title: How to run Protractor e2e tests with different environment variables (Angular 6)
body: <p>In e2e test I want to have environment variable similar to the one as in Angular app. Looks like e2e test project builder <code>"builder": "@angular-devkit/build-angular:protractor"</code> does <strong>not</strong> support file replacements (unlike builder for web app):</p>
  
  <pre><code>"fileReplacements": [{
    "replace": "apps/web/src/environments/environment.ts",
    "with": "apps/web/src/environments/environment.prod.ts"
  }]
  </code></pre>
  
  <p>So using Angular CLI <code>ng e2e</code> command I can switch configurations (or projects in angular.json) and in project configuration I can specify different Protractor configuration files <code>protractor.conf.js</code>. My question is: how can I get in e2e test any variable which will be different in configuration files or any other file, similar to the <code>environment.ts</code> file(s) in the app?</p>