-
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
10.3 broke support for oauth flow with Spotify #22674
Comments
I confirmed this fails in 10.3.0 with the following: it('logs in with spotify', () => {
cy.origin('spotify.com', () => {
cy.visit('https://accounts.spotify.com/en/login')
cy.get('input#login-username').click().type(Cypress.env('spotify-username'))
cy.get('input#login-password').click().type(Cypress.env('spotify-password'))
cy.get('#login-button').click()
})
}) My hunch is that this is related to spotify using This issue will be resolved in the next release of Cypress, which will be this week or next week at the latest. |
Thank you very much for your effort, I will evaluate this once the release is out and give feedback :) |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
We have a test that redirects a user to Spotify to login, performs the login there and then returns on success. This test worked will in 10.2 but fails in 10.3.
We navigate to the login page using cy.origin and receive an error
Desired behavior
This worked before.
Test code to reproduce
Basically:
cy.origin + visit to https://accounts.spotify.com/en/login (the exact url depends on the app you have registered and the callback you use)
cy.get('input#login-username').click().type(email);
cy.get('input#login-password').click().type(spotifyPw);
cy.get('#login-button').click();
-> in 10.2 this works like a charm, in 10.3 it fails with the message in the image above "Oops! Something went wrong, please try again or check out our help area"
Cypress Version
10.3
Other
The form uses a post request that failes with an error code 400.
POST https://accounts.spotify.com/login/password 400 (Bad Request)
From the changelog of version 10.3 I would suspect this to be related to this:
Updated cross-origin cookie handling to align with browser behavior. This fixed various issues with cookies when testing across multiple origins. Fixed #21363 and #20685.
The text was updated successfully, but these errors were encountered: