Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #499 from Financial-Times/no-browsers-on-authentic…
Browse files Browse the repository at this point in the history
…ated

Dont run browser tests on authenticated URLs
  • Loading branch information
adgad authored Mar 16, 2018
2 parents 4b6bb44 + 977a6f1 commit 5c97382
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tasks/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,17 @@ function task (opts) {
See https://github.com/Financial-Times/n-heroku-tools/blob/master/docs/smoke.md for docs.
If this app has no web process use the --skip-gtg option`);
}
const smokeTest = new SmokeTest({
const smokeOpts = {
host: host.url(name),
headers: opts.authenticatedSmokeTests ? { 'FT-NEXT-BACKEND-KEY': process.env.FT_NEXT_BACKEND_KEY } : null
});
};

//don't run browser tests against authenticated URLs
if(opts.authenticatedSmokeTests) {
smokeOpts.browsers = ['chrome'];
}

const smokeTest = new SmokeTest(smokeOpts);

smokeTest.addCheck('cacheHeaders', require('../lib/verify-cache-headers'));

Expand Down

0 comments on commit 5c97382

Please sign in to comment.