https://cypress.io logo
Hello people, in my e2e.ts (inside /support) I h...
# help
g
Hello people, in my e2e.ts (inside /support) I have added a
Copy code
ts
beforeEach(() => {
  function setSipFeatureToggle(): void {
  localStorage.setItem('featureToggleOverrides', JSON.stringify({
    'feature-test-provider': true,
  }));
}
});
however when I run my test the first time when doing cypress open, it works but then when I restart the test again, it doesn't apply the beforeEach anymore, what is the reason of that?