I was developing a feature that redirects users to profiles on various platforms.
And to test this, I wrote the following code using the newly released cy.origin yesterday.
cy.origin('www.example.com', () => {
cy.visit('/username')
})
However, github and twitter were successfully redirected, but linkedin was not the only one.

I think the problem is caused by the user agent. Is there any way to solve this problem?
For the record,
cy.origin('https://www.linkedin.com', () => {
cy.visit('/in/sunwoo0706', {failOnStatusCode: false}) // redirects to login page
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With