OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/features/custom_fields/create_bool.feature

33 lines
1.3 KiB

Feature: Localized boolean custom fields can be created
Background:
Given I am admin
And the following languages are active:
| en |
| de |
When I go to the custom fields page
When I follow "New custom field" within "#tab-content-IssueCustomField"
@javascript
Scenario: Available fields
When I select "Boolean" from "custom_field_field_format"
Then there should be the following localizations:
| locale | name | default_value | possible_values |
| en | | 0 | |
And there should be a "custom_field_tracker_ids_1" field visible
And I should see "Bug"
And there should be a "custom_field_tracker_ids_2" field visible
And I should see "Feature"
And there should be a "custom_field_tracker_ids_3" field visible
And I should see "Support"
And there should be a "custom_field_is_required" field visible
And there should be a "custom_field_is_for_all" field visible
And there should be a "custom_field_is_filter" field visible
And there should be a "custom_field_searchable" field invisible
@javascript
Scenario: Creating a boolean custom field
And I add the english localization of the "name" attribute as "New Field"
And I select "Boolean" from "custom_field_field_format"
Then I should not see "Possible values"