Test with cypress an custom HTTP Headers
11:24 13 Feb 2019

I try to build an test with cypress. I need to set a cookie and an custom header field for the test.

With curl, it's easy, like:

curl -H "aut: BeUser1"  --cookie "aut=BeUser1" ....

But I don't know who to set header and cookie in cypress:

cy.setCookie("aut", "BeUser1")
cy.visit("/some/foo");
javascript cypress