generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Disable sandboxing for cypress_test rules
Cypress has moved away from supporting the env variable RUN_ELECTRON_AS_NODE which makes it hard to keep up with their electron server's sandboxing violations. We now disable the sandbox so that user's can don't run into these issues.
- Loading branch information
Showing
12 changed files
with
504 additions
and
52 deletions.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,13 +1,15 @@ | ||
import { defineConfig } from 'cypress' | ||
import { defineConfig } from "cypress"; | ||
|
||
process.env.DISPLAY = ":0"; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
specPattern: ["cli_test.cy.ts"], | ||
supportFile: false, | ||
setupNodeEvents(on, config) { | ||
on('before:browser:launch', (browser, launchOptions) => { | ||
launchOptions.args.push("--disable-gpu-shader-disk-cache") | ||
}) | ||
} | ||
on("before:browser:launch", (browser, launchOptions) => { | ||
launchOptions.args.push("--disable-gpu-shader-disk-cache"); | ||
}); | ||
}, | ||
}, | ||
}) | ||
}); |
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
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,13 +1,15 @@ | ||
const { defineConfig } = require('cypress') | ||
const { defineConfig } = require("cypress"); | ||
|
||
process.env.DISPLAY = ":0"; | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
specPattern: ["*.cy.js"], | ||
supportFile: false, | ||
setupNodeEvents(on, config) { | ||
on('before:browser:launch', (browser = {}, launchOptions) => { | ||
launchOptions.args.push("--disable-gpu-shader-disk-cache") | ||
}) | ||
} | ||
on("before:browser:launch", (browser = {}, launchOptions) => { | ||
launchOptions.args.push("--disable-gpu-shader-disk-cache"); | ||
}); | ||
}, | ||
}, | ||
}) | ||
}); |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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