Skip to content

Commit

Permalink
Testing with Electron
Browse files Browse the repository at this point in the history
  • Loading branch information
edro15 committed Feb 22, 2024
1 parent 1a1870a commit cde68fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ jobs:

- name: Cypress run
uses: cypress-io/github-action@v6
env:
ELECTRON_EXTRA_LAUNCH_ARGS: --disable-gpu
with:
# Run 'npm start' using npm 14 instead of 18 since package-lock generated with npm 14 (see @types/node)
start: npm run cicd-test
Expand Down
4 changes: 3 additions & 1 deletion test/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module.exports = (on, config) => {
// `args` is an array of all the arguments that will
// be passed to browsers when it launches
// console.log(launchOptions.args) // print all current args
launchOptions.args.push('--disable-gpu')
if (browser.name == 'chrome') {
launchOptions.args.push('--disable-gpu')
}
})
}

0 comments on commit cde68fb

Please sign in to comment.