Project

General

Profile

Actions

Testing #786

closed

Fix failing Redmine helper test

Added by liaham about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
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


Related issues 1 (0 open1 closed)

Related to xmera Omnia - Maintenance #907: Support Redmine 4.2.6Closedliaham

Actions
Actions #1

Updated by liaham about 3 years ago

  • Status changed from New to Planned
Actions #2

Updated by liaham almost 3 years ago

  • Target version changed from 3.5.1 to 3.5.2
Actions #3

Updated by liaham almost 3 years ago

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
Actions #4

Updated by liaham almost 3 years ago

  • Target version changed from 3.5.2 to 3.6.0
Actions #5

Updated by liaham almost 3 years ago

Actions #6

Updated by liaham almost 3 years ago

  • Status changed from Planned to In Progress
  • Assignee set to liaham
Actions #7

Updated by liaham almost 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
  • Affected component set to xmera-omnia-operations
Actions

Also available in: Atom PDF