e2e.ts 443 B

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