Skip to content
Snippets Groups Projects
Commit d66ee7d1 authored by Tasneem Natshah's avatar Tasneem Natshah
Browse files

Issue #3359076 by Tasneem Natshah: Add a new field in the report section to select HTML format

parent 49af6e6f
No related branches found
Tags 10.0.0-alpha1
No related merge requests found
......@@ -3,7 +3,7 @@ config_file: "./nightwatch.conf.js"
features_path: "tests/features"
html_report: true
html_report_dir: "tests/reports"
html_report_format: "cucumberjs_html_formatter"
html_report_format: "html"
json_report: false
json_report_dir: "tests/reports"
log_report_dir: "tests/logs"
......
......@@ -332,15 +332,9 @@ So that I know it is working
$html_report = $config->get('html_report');
$html_report_dir = $config->get('html_report_dir');
$html_report_formatter = $config->get('html_report_formatter');
$html_report_format = '';
if ($html_report_formatter == 'cucumberjs_html_formatter') {
$html_report_format = " --format html:".$html_report_dir."/index.html";
}
elseif ($html_report_formatter == 'bootstrap_html_formatter') {
$html_report_format = " --format bootstrap:".$html_report_dir."/index.html";
}
$html_report_formatter = $config->get('html_report_formatter');
$html_report_format = " --format $html_report_formatter:".$html_report_dir."/index.html";
$log_report_dir = $config->get('log_report_dir');
$save_user_testing_features = $config->get('save_user_testing_features');
......
......@@ -223,15 +223,10 @@ class CucumberUiRunTests extends FormBase
$html_report = $config->get('html_report');
$html_report_dir = $config->get('html_report_dir');
$html_report_formatter = $config->get('html_report_formatter');
$html_report_format = '';
if ($html_report_formatter == 'cucumberjs_html_formatter') {
$html_report_format = " --format html:".$html_report_dir."/index.html";
}
elseif ($html_report_formatter == 'bootstrap_html_formatter') {
$html_report_format = " --format bootstrap:".$html_report_dir."/index.html";
}
$html_report_formatter = $config->get('html_report_formatter');
$html_report_format = " --format $html_report_formatter:".$html_report_dir."/index.html";
$log_report_dir = $config->get('log_report_dir');
$beaht_ui_tempstore_collection = $this->tempStore->get('cucumber_ui');
......
......@@ -99,8 +99,8 @@ class CucumberUiSettings extends ConfigFormBase {
'#description' => $this->t('The report HTML formatter list.'),
'#type' => 'select',
'#options' => [
'cucumberjs_html_formatter' => $this->t('Cucumber-js HTML formatter'),
'bootstrap_html_formatter' => $this->t('Bootstrap HTML formatter'),
'html' => $this->t('Cucumber-js HTML formatter'),
'bootstrap' => $this->t('Bootstrap HTML formatter'),
],
'#default_value' => $config->get('html_report_formatter'),
'#suffix' => '</div></div>',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment