Open
Description
Current behavior
If setting a cookie without a name, cypress running under firefox is unable to delete the cookie the next time running the test. Every test after this will fail.
Desired behavior
Cypress should clear all cookies, regardless if it has a name or not.
Test code to reproduce
describe('BugReproductions', () => {
it('Can handle broken cookies', () => {
// Unnamed cookie
cy.setCookie('', `[{"id":"test-data-1","title":"Test Data 1"}]`);
cy.visit('/');
});
});
Cypress Version
13.15.0
Node version
v22.2.0
Operating System
Windows 11
Debug Logs
Removing cookie failed for: {"domain":"localhost","httpOnly":false,"name":"","path":"/","sameSite":"no_restriction","secure":false,"value":"[{"id":"test-data-1","title":"Test Data 1"}]","expirationDate":2359029695}. Cookie did not include a name
Other
I need this to reproduce a bug, where I got an unnamed cookie and it broke my web application.
Activity