-
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
reporterOptions are not resolved when they are set in setupNodeEvents #27689
Comments
Seeing what might be a similar issue. Using Cypress 12.17.1. In Tested with Cypress 10.7.0 and seeing the same unexpected behavior where |
Able to confirm in my project that this is an issue only with the key-value pair type configurations, like reporterOptions and retries Cypress version: 13.1.0 Test Code to reproduce:const { defineConfig } = require("cypress");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
config.baseUrl = "https://www.google.com";
config.chromeWebSecurity = false;
config.defaultCommandTimeout = 35000;
config.excludeSpecPattern = ["abc.spec.ts", "xyz.spec.ts"];
config.reporterOptions = {
charts: true,
graphs: false,
};
config.retries = {
openMode: 2,
runMode: 2,
};
return config;
},
},
}); In cypress settings, I can see that all given config properties got resolved with values provided in setupNodeEvents, except retries and reporterOptions
|
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
Hello @jennifer-shehane could someone from Cypress team check this issue? Due to inactivity it will be automatically closed. It's not a good way to handle the issues ;] |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
@jennifer-shehane any update on this issue? Still valid... |
Has anyone confirmed if this is a bug with the visual display of the reporterOptions/retries in the resolved config in the UI? Or is it also a problem with Cypress reading in these values properly. My guess is that it's a bug in the resolved config VIEW. |
Yes, it really doesn't work, it's not only the UI. |
Current behavior
reporterOptions
insetupNodeEvents
results:
reporterOptions
are not resolved correctly - like they have been set in setupNodeEvents. They are always set tonull
. I observed this only fot this one config option.Desired behavior
reporterOptions
resolved correctly, like they have been set insetupNodeEvents
Test code to reproduce
Quite easy to reproduce, just define
reporterOptions
incypress.config.ts
:Cypress Version
12.17.2
Node version
18.12.1
Operating System
Windows, Linux, not tested on OS
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: