Bin
2025-12-17 7c6dc86b52527ce8c7c7ed0aebe48d677972a5b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { CURRENT_FLAGS } from "../feature-flags";
import "@humansignal/frontend-test/cypress/support/e2e";
 
beforeEach(() => {
  cy.on("window:before:load", (win) => {
    console.log("Setting feature flags", CURRENT_FLAGS);
    Object.assign(win, {
      DISABLE_DEFAULT_LSF_INIT: true,
      APP_SETTINGS: {
        ...(win.APP_SETTINGS ?? {}),
        feature_flags: CURRENT_FLAGS,
      },
    });
  });
  cy.log("Feature flags set");
});