Skip to content
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

Return Request/Response cy-api in headless mode #161

Open
1 task
lucasdonato opened this issue Apr 26, 2022 · 4 comments
Open
1 task

Return Request/Response cy-api in headless mode #161

lucasdonato opened this issue Apr 26, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@lucasdonato
Copy link

lucasdonato commented Apr 26, 2022

Good morning.. please, could you create a flag so that the request and response cy-api are returned when the tests are executed in headless mode.

Open mode:

image

  • Expected scenario: Return the response and request when the test is run in headless mode as well, replicating the same behavior in open mode
@lucasdonato
Copy link
Author

This log is very important to analyze the error when the test fails

@bahmutov
Copy link
Owner

bahmutov commented Apr 26, 2022 via email

@LeJeanbono
Copy link
Collaborator

@lucasdonato you want to log request/response in Cypress run mode ?

@lucasdonato
Copy link
Author

lucasdonato commented Apr 28, 2022

@lucasdonato you want to log request/response in Cypress run mode ?

If the test fails I want to see a log with the request data (with the headers, data in the body, URL that I sent in the request) etc..
Basically it's the data that cy-api returns in open mode.

It could be a SHOW_LOG_RUN_MODE flag for example, and if true, the log is displayed in headless mode

@LeJeanbono LeJeanbono added the enhancement New feature or request label Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants