This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-1207
- Loading branch information
Showing
24 changed files
with
249 additions
and
446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,18 @@ | ||
/*jshint jasmine: true, node: true */ | ||
/* global browser */ | ||
'use strict'; | ||
|
||
let builderUtils = require('@blackbaud/skyux-builder/utils/host-utils'); | ||
const config = require('./shared.visual.conf.js'); | ||
|
||
const SpecReporter = require('jasmine-spec-reporter').SpecReporter; | ||
|
||
var config = require('./shared.visual.conf.js'); | ||
config.onPrepare = function () { | ||
jasmine.getEnv().addReporter(new SpecReporter()); | ||
const PixDiff = require('pix-diff'); | ||
browser.pixDiff = new PixDiff( | ||
{ | ||
basePath: 'screenshots-baseline-local/', | ||
diffPath: 'screenshots-diff-local/', | ||
baseline: true, | ||
width: 1000, | ||
height: 800 | ||
} | ||
); | ||
|
||
browser.skyVisualTestOptions = { | ||
createdPath: 'screenshots-created-local/', | ||
createdPathDiff: 'screenshots-created-diff-local/' | ||
}; | ||
|
||
var destination = builderUtils.resolve( | ||
'/', | ||
browser.params.localUrl, | ||
JSON.parse(browser.params.chunks), | ||
JSON.parse(browser.params.skyPagesConfig) | ||
); | ||
|
||
return browser.get(destination); | ||
|
||
}; | ||
|
||
config.capabilities = { | ||
config.capabilities = { | ||
'browserName': 'chrome', | ||
'chromeOptions': { | ||
'args': ['--ignore-certificate-errors'] | ||
'args': [ | ||
'--disable-extensions', | ||
'--ignore-certificate-errors' | ||
] | ||
} | ||
}; | ||
|
||
config.directConnect = true; | ||
|
||
exports.config = config; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.