-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
topic: cookies 🍪type: bugtype: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version release
Description
Current behavior
After upgrading from version 10.7.0 to newer versions we have problems with some cookies.
Cookies deleted by our web app, stay in the session and are given 'deleted' values.
If we disable experimentalSessionAndOrigin” and do not use cy.session everything is ok.
But we must use cy.session!!! (we love it)
See hows the deleted cookies look in the image attached.

do
Desired behavior
The Cookies should disappear from the browser and not stay there with a 'deleted' value.
Our app acts weird because it acts like 'deleted' is a real value for this cookies keys.
Test code to reproduce
logIn(email: string, pwd: string) {
cy.session([email,pwd], () => {
cy.visit(‘/’);
cy.get(‘#email’).type(email);
cy.get(‘#password’).type(pwd);
cy.get(‘.button._loginBtn.signSubmit’).click();
cy.url().should(‘contain’,‘/root/home’)
});
}
describe(‘Jobs tests’, () => {
let pageRouter: PageRouter;
let logInPage: LogInPage;
let generalPage: GeneralPage;
let mainActions: MainActions;
beforeEach(() => {
pageRouter = new PageRouter;
logInPage = new LogInPage;
generalPage = new GeneralPage;
mainActions = new MainActions;
logInPage.loginWithAccount(7);
});
it(‘When creating new job from jobs it appears in the jobs report’, () => {
cy.visit(‘/root/jobs’);
let createJob = jobsPage.clickCreateNewJob();
createJob.fillJobDetails();
let job = createJob.submitToJob();
cy.get(job.alias).then((jobId) => {
let jobsPage = pageRouter.goToJobsPage()
cy.sortTableByColumn(“.rt-table .rt-th:nth-child(2)“, false);
jobsPage.isJobsTableContainsJobId(jobId);
});
});Cypress Version
12.0.0
Node version
v16.17.0
Operating System
MacOS 13.1
Debug Logs
No response
Other
No response
Metadata
Metadata
Assignees
Labels
topic: cookies 🍪type: bugtype: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version release
