cy.visit('url', {headers: {}}) doesnt work per documentation
See original GitHub issueCurrent behavior:
cy.visit(options);
in options
if we pass headers
like these it doesnt work with headless browser as well as --headed
browser
options = {
url: 'www.localhost.com',
headers: {'a': 'b'}
};
Desired behavior:
above code should work as specified
Steps to reproduce:
try above code
Versions
OS: Mac Browsers Tried: Chrome 72/74, Electron (headless/headed) comes with cypress installation
Issue Analytics
- State:
- Created 4 years ago
- Comments:25 (12 by maintainers)
Top Results From Across the Web
visit
An object that maps HTTP header names to values to be sent along with the request. Note: headers will only be sent for...
Read more >cypress-io/cypress - Gitter
Hi guys! I am trying to spin up my first ever test with Cypress and I am kinda bummed at not being able...
Read more >A Practical Guide to Intercepting Network Requests in ...
First things first - matching our url. When using .intercept() command, there are two main questions that need to be resolved. How do...
Read more >Cypress logs out when using cy.visit()
clear = function (keys, ls, rs) { if (keys) { return } } }) it('A',()=>{ cy.visit('some url') //it works! }) Also when restarting...
Read more >Cypress cy.intercept Problems
A few common cy.intercept gotchas and how to avoid them ... But if you open the "Routes" section, notice that our intercept was...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
is it possible to have a webex call i can walkthrough?or any meeting of your choice
Thank you I will try again and keep posted. Many thanks for your support