ci: Use containerized PACS for running end-to-end tests #1122 (#1290)

* ci: Use containerized PACS for running end-to-end tests

* Try to fix cypress test results

Co-authored-by: dannyrb <danny.ri.brown@gmail.com>
This commit is contained in:
Erik Ziegleranddannyrb authored and GitHub committed 2020-12-03 10:26:22 +01:00
1 parent 6c5ad9e98d
commit dfe566e2aa
29 files changed
+748 -379

No files matched your search

+6 -4
View File
@@ -14,20 +14,22 @@ let percyHealthCheck = require('@percy/cypress/task');
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
on('before:browser:launch', (browser = {}, args) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.name === 'chrome') {
// `args` is an araay of all the arguments
// that will be passed to Chrome when it launchers
args.push('--start-fullscreen');
launchOptions.args.push('--start-fullscreen');
// whatever you return here becomes the new args
return args;
return launchOptions;
}
if (browser.name === 'chromium') {
const newArgs = args.filter(arg => arg !== '--disable-gpu');
newArgs.push('--ignore-gpu-blacklist');
return newArgs;
launchOptions.args = newArgs;
return launchOptions;
}
});