Testing #786
closed
Fix failing Redmine helper test
Added by liaham about 3 years ago.
Updated almost 3 years ago.
Compatible Redmine Version:
Description
FAIL CustomFieldsHelperTest#test_select_type_radio_buttons (2.80s)
Expected exactly 10 elements matching "input[type="radio"]", found 12..
Expected: 10
Actual: 12
test/test_helper.rb:251:in assert_select_in' test/helpers/custom_fields_helper_test.rb:101:in
test_select_type_radio_buttons'
274/274: [=========================================================================================================================] 100% Time: 00:00:03, Time: 00:00:03
- Status changed from New to Planned
- Target version changed from 3.5.1 to 3.5.2
The test failed since there are two more modules supporting custom fields (dms, tables).
The test should be patched in xmera_omnia_operations.
class CustomFieldsHelperTest
define_method "test_select_type_radio_buttons" do
result = select_type_radio_buttons('UserCustomField')
assert_select_in result, 'input[type="radio"]', :count => 12
assert_select_in result, 'input#type_UserCustomField[checked=?]', 'checked'
result = select_type_radio_buttons(nil)
assert_select_in result, 'input[type="radio"]', :count => 12
assert_select_in result, 'input#type_IssueCustomField[checked=?]', 'checked'
end
end
- Target version changed from 3.5.2 to 3.6.0
- Status changed from Planned to In Progress
- Assignee set to liaham
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
- Affected component set to xmera-omnia-operations
Also available in: Atom
PDF