After using this code I am getting exception "uncaught exception :error invariant failed in cypress" . Any idea how to handle it