-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WebGL support to Chromium on Cypress (#109)
Following cypress-io/cypress#1194 (comment) Work on #107.
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
node_modules | ||
yarn.lock | ||
npm-debug.log | ||
cypress/plugins | ||
cypress/screenshots | ||
cypress/videos | ||
.idea/ | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// You can read more here: | ||
// https://on.cypress.io/plugins-guide | ||
// *********************************************************** | ||
|
||
// This function is called when a project is opened or re-opened (e.g. due to | ||
// the project's config changing) | ||
// | ||
module.exports = (on, config) => { | ||
on('before:browser:launch', (browser = {}, args) => { | ||
if (browser.name === 'chromium') { | ||
const newArgs = args.filter(arg => arg !== '--disable-gpu'); | ||
newArgs.push('--ignore-gpu-blacklist'); | ||
return newArgs; | ||
} | ||
}); | ||
}; |