question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cookie regression issue in 3.5.0 has not been resolved in 3.6.0

See original GitHub issue

Current behavior:

Like in 3.5.0, the cookie cannot be set in the chrome browser when running cypress.

Desired behavior:

Like in 3.4.1, the cookie can be set in the chrome browser when running cypress.

Steps to reproduce: (app code and test code)

Cypress.Commands.add('adminLogin', ($user, $legacy) => {
	if ($legacy == null) {
		cy.setCookie('UI', 'admin_ui');
	}
	cy.visit('/');
	cy.get('#login_username').type($user.username);
	cy.get('#login_password').type($user.password);
	cy.get('[data-testid=login]').click();
});

//Log into admin
cy.adminLogin(admin);

Versions

3.6.0, Linux mint, chrome

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:29 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
jcheo1commented, Dec 10, 2019

@flotwig Much appreciated. However, I don’t believe the issue is fixed. Previously in 3.4.1, I was able to set cookies with no issue. =>

cy.setCookie('UI', 'admin_ui');

Currently, in order to get around this, I need to specify the domain in the options.= >

cy.setCookie('UI', 'admin_ui', { domain: Cypress.env("domain") });
2reactions
bcholewinskicommented, Nov 5, 2019

I have the same problem. It works correctly when I use cypress on my local project. But we have also pre-built instance and cypress can’t create cookies there. 3.4.1 works fine. 3.5.0 and 3.6.0 have this problem // windows 10 pro and chrome

Read more comments on GitHub >

github_iconTop Results From Across the Web

Since 3.5.0, Cookie headers explicitly set on cy.visit ... - GitHub
Current behavior: If the user explicitly supplies a Cookie header in cy.visit or cy.request, it will be overwritten/replaced by the Cookie ...
Read more >
Maven Could not resolve dependencies, artifacts could not be ...
This error can be reproduced every time I try to build something with maven. Doing mvn dependency:tree, dependency:list, or the usual build package,...
Read more >
Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >
What is Regression Testing? Definition, Tools, Method, and ...
Regression testing is a type of testing that is done to verify that a code change in the software does not impact the...
Read more >
Bug listing with status RESOLVED with resolution TEST ...
status:RESOLVED resolution:TEST-REQUEST severity:critical ... Bug:19112 - "PS/2 mouse does not work until usb-uhci module is loaded" status:RESOLVED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found