From 222df131cd0348863f68acd017825d1e6f0979af Mon Sep 17 00:00:00 2001 From: Janak Ramakrishnan Date: Wed, 9 Oct 2019 16:59:07 -0400 Subject: [PATCH 1/2] Add WebGL support --- .gitignore | 1 - cypress/plugins/index.js | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 cypress/plugins/index.js diff --git a/.gitignore b/.gitignore index 779b02fe0..5d52807ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ node_modules yarn.lock npm-debug.log -cypress/plugins cypress/screenshots cypress/videos .idea/ diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js new file mode 100644 index 000000000..bf2252c9e --- /dev/null +++ b/cypress/plugins/index.js @@ -0,0 +1,22 @@ +// *********************************************************** +// This example plugins/index.js can be used to load plugins +// +// You can change the location of this file or turn off loading +// the plugins file with the 'pluginsFile' configuration option. +// +// 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; + } + }); +}; From 83f08297c2fe572560a64059870fd1f462a8d89c Mon Sep 17 00:00:00 2001 From: Janak Ramakrishnan Date: Wed, 9 Oct 2019 17:02:41 -0400 Subject: [PATCH 2/2] pushing --- cypress/plugins/index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index bf2252c9e..d29684b9c 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -1,9 +1,3 @@ -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// // You can read more here: // https://on.cypress.io/plugins-guide // ***********************************************************