-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cy.request does not work with followRedirect: false and Set-Cookie in 3.5.0 #5654
cy.request does not work with followRedirect: false and Set-Cookie in 3.5.0 #5654
Comments
This issue was introduced today in 3.6.1. No problems on 3.6.0. Direct requests work fine, but as soon as you start using options and path, it breaks. This request is broken since 3.6.1: cy.request({
url: Cypress.config('baseUrl') + '/auth/realms/' + Cypress.env('shortcode') + '/protocol/openid-connect/auth',
followRedirect: false,
qs: {
scope: 'name,email',
response_type: 'code',
approval_prompt: 'auto',
redirect_uri: Cypress.config('baseUrl') + '/userauth',
client_id: 'account'
}
}) When I remove path and either followRedirect or QS the error is gone. Only removing 1 argument or only removing path will result in same error. Obviously I need all to make the request I need. No path still errors: cy.request({
url: Cypress.config('baseUrl'),
followRedirect: false,
qs: {
scope: 'name,email',
response_type: 'code',
approval_prompt: 'auto',
redirect_uri: Cypress.config('baseUrl') + '/userauth',
client_id: 'account'
}
}) No path and no one less argument, error gone: cy.request({
url: Cypress.config('baseUrl'),
// followRedirect: false,
qs: {
scope: 'name,email',
response_type: 'code',
approval_prompt: 'auto',
redirect_uri: Cypress.config('baseUrl') + '/userauth',
client_id: 'account'
}
}) Sorry for the edits. Made some formatting errors. |
I can confirm this error. If |
I confirm. Same issue for me in 3.6.1. Version 3.6.0 works fine |
Same over here, if I have |
@MattFisher is correct, the error occurs because The bug is even more specific than just |
Opened a PR to resolve this: #5704 |
The code for this is done in cypress-io/cypress#5704, but has yet to be released. |
1 similar comment
The code for this is done in cypress-io/cypress#5704, but has yet to be released. |
Released in |
Hi! 👋
We have a test where we want to test redirects, unfortunately it breaks after update to cypress 3.6.1 from 3.3.2:
Error
Versions
3.6.1
The text was updated successfully, but these errors were encountered: