Fixed running Cypress tests on Firefox (#33768)
Closes #32617 Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>
This commit is contained in:
parent
988af11a39
commit
00728bebb7
1 changed files with 11 additions and 0 deletions
|
@ -24,6 +24,17 @@ export default defineConfig({
|
|||
slowTestThreshold: 30000,
|
||||
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
|
||||
setupNodeEvents(on, config) {
|
||||
on("before:browser:launch", (browser, launchOptions) => {
|
||||
if (browser.family === "firefox") {
|
||||
// launchOptions.preferences is a map of preference names to values
|
||||
// login is not working in firefox when testing_localhost_is_secure_when_hijacked is false
|
||||
launchOptions.preferences[
|
||||
"network.proxy.testing_localhost_is_secure_when_hijacked"
|
||||
] = true;
|
||||
}
|
||||
|
||||
return launchOptions;
|
||||
});
|
||||
// after:spec collides with cypressSplit function below and is overridden there
|
||||
|
||||
function afterSpecRemoveSuccessfulVideos(spec, results) {
|
||||
|
|
Loading…
Reference in a new issue