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

Issue #3359533: Change default feature and features directory description

parent 1734737a
No related branches found
No related tags found
No related merge requests found
......@@ -305,15 +305,15 @@ class CucumberUiNew extends FormBase
}
else {
$default_feature = '
Feature: Example test for drupal.org about page
Feature: First test for cucumber
As a tester
I want to be able to test the webship.co site
I want to be able to test the cucumber site
So that I know it is working
Scenario: Check the drupal.org about page
Given I go to "https://www.drupal.org/about"
Then I should see "Drupal is content management software."
';
Scenario: Check the cucumber site
Given I go to "/user/login"
Then I should see "Log in"
';
return trim($default_feature);
}
......
......@@ -69,13 +69,7 @@ class CucumberUiSettings extends ConfigFormBase {
$form['features_path'] = [
'#title' => $this->t('Cucumber features directory path'),
'#description' => $this->t('The directory path that has the Gherkin script files with <em>.feature</em> extension. The path is relative to the Cucumber configuration directory path. Do not include trailing slash at the end.<br />
<b>Examples:</b>
<ul>
<li>features</li>
<li>tests/features</li>
<li>tests/features/commerce</li>
</ul>'),
'#description' => $this->t('The directory full path that has the Gherkin script files with <em>.feature</em> extension. The path is relative to the Cucumber configuration directory path. Do not include trailing slash at the end.'),
'#type' => 'textfield',
'#maxlength' => 512,
'#default_value' => $config->get('features_path'),
......@@ -97,7 +91,6 @@ class CucumberUiSettings extends ConfigFormBase {
'#type' => 'textfield',
'#maxlength' => 512,
'#default_value' => $config->get('html_report_dir'),
'#suffix' => '</div></div>',
];
$form['html_report_formatter'] = [
......
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