Skip to content

Deleted cookies are not removed but shown with value=deleted #25205

@IdoAdler2

Description

@IdoAdler2

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.
Screen Shot 2022-12-18 at 14 29 04
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);
        });
    });

Screen Shot 2022-12-18 at 14 29 04

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions