Cookie regression issue in 3.5.0 has not been resolved in 3.6.0
See original GitHub issueCurrent 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:
- Created 4 years ago
- Reactions:5
- Comments:29 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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. =>
Currently, in order to get around this, I need to specify the domain in the options.= >
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