Skip to content

Commit

Permalink
Merge pull request #518 from gadget-inc/cypress-disable-gpu
Browse files Browse the repository at this point in the history
Disable chrome gpu in CI to see if flakiness is reduced
  • Loading branch information
airhorns authored Jul 17, 2024
2 parents 4fd6079 + 6bb73a6 commit 0876309
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/react/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ export default defineConfig({
},
},
},
setupNodeEvents(on, config) {
on("before:browser:launch", (_browser, launchOptions) => {
if (process.env["CI"]) {
// try to fix https://github.com/cypress-io/cypress/issues/29860
launchOptions.args.push("--disable-gpu");
}
return launchOptions;
});
},
},
retries: process.env["CI"] ? 2 : 0,
});

0 comments on commit 0876309

Please sign in to comment.