-
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
Cookies are not sent using fetch from electron client #4433
Comments
I have seen the same behaviour using Cypress 3.3.1 and OSX; non-fetch requests send cookies as expected, but fetch based requests do not. |
Experiencing a similar issue working for a client and our tests suddenly stopped failing in headless mode; when debugging the issue it appears as though the cookies we need - which we set earlier before all tests run - are not being passed in the request from the electron client; this is confirmed when using dev tools to look at the network traffic of the headless mode but with |
Our workaround has been to use the |
I experienced the same issue. I figured that the culprit was that the |
This is because the spec changed; modern Chrome uses the updated spec while the Electron instance of Chromium that Cypress uses is out of date. |
@Steakeye - does this mean this is not an issue with cypress itself but with electron? |
Arguably, as Electron is a dependency of Cypress, it depends on whether or
not the latest version of Electron is still using an old version of
Chromium, and therefore still has the old `fetch` implementation. If a
newer version of Electron exists with the correct implementation, then it
would be the responsibility of Cypress to upgrade the version of Electron
they are using.
…On Thu, Aug 1, 2019 at 1:09 PM Gelu Timoficiuc ***@***.***> wrote:
@Steakeye <https://github.com/Steakeye> - does this mean this is not an
issue with cypress itself but with electron?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4433?email_source=notifications&email_token=AB6E4WBCYRZKK6JCCWNMWNTQCLG7HA5CNFSM4HXCBKMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3KLYQA#issuecomment-517258304>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB6E4WBFD5VK5S2A6SR3B4TQCLG7HANCNFSM4HXCBKMA>
.
|
yes, and we are trying to upgrade Electron to the latest v6 in this pull request #4720 |
The code for this is done in cypress-io/cypress#4720, but has yet to be released. |
1 similar comment
The code for this is done in cypress-io/cypress#4720, but has yet to be released. |
Released in |
Current behavior:
When the Electron client used by
cypress run
performsfetch
, no cookies are being sent.This seems to be a behaviour in Cypress' Electron client handling, as I cannot seem to notice it on a raw Electon client.
Desired behavior:
Cookies should be sent. Running against a Chrome browser passes the test.
Steps to reproduce: (app code and test code)
A full minimal project can be found at https://github.com/souphan-adsk/cypress-electron-ajax-cookie
Here are key code sample:
Cypress Spec
Express
Versions
Cypress 3.3.1
Electron 61
OSX
The text was updated successfully, but these errors were encountered: