Skip to content

Commit

Permalink
code review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rev-doshi committed Oct 3, 2024
1 parent 5a47d31 commit 1992c47
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions nightwatch/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,11 @@ module.exports = {
try {
testObservability.configure(settings);
if (helper.isTestObservabilitySession()) {
if (settings.reporter_options) {
if (settings.reporter_options['save_command_result_value'] != true){
settings.reporter_options['save_command_result_value'] = true
}
} else {
settings.reporter_options = {
save_command_result_value: true
}
}
// adding settings.reporter_options.save_command_result_value = true to ensure screenshot reporting to Observability
settings.reporter_options = {
save_command_result_value: true,
...(settings.reporter_options || {})
};
if (helper.isCucumberTestSuite(settings)) {
cucumberPatcher();
process.env.CUCUMBER_SUITE = 'true';
Expand Down

0 comments on commit 1992c47

Please sign in to comment.