8000 Backport to fix running cypress tests on Firefox by agagancarczyk · Pull Request #33770 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions js/apps/admin-ui/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
0