Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

solve travis check errors

bsatarnejada9233e8e2c5c
diff --git a/modules/boards/config/locales/js-en.yml b/modules/boards/config/locales/js-en.yml
index 68a2a9906ec..4a817ebdd23 100644
--- a/modules/boards/config/locales/js-en.yml
+++ b/modules/boards/config/locales/js-en.yml
@@ -65,7 +65,7 @@ en:
status: status
version: version
subproject: subproject
- subtasks: parent-child
+ subtasks: Parent_child
select_attribute: "Action attribute"
add_list_modal:
diff --git a/modules/boards/spec/features/action_boards/subtasks_board_spec.rb b/modules/boards/spec/features/action_boards/subtasks_board_spec.rb
index a2c4cdfb7af..11b5c2e98e8 100644
--- a/modules/boards/spec/features/action_boards/subtasks_board_spec.rb
+++ b/modules/boards/spec/features/action_boards/subtasks_board_spec.rb
@@ -63,7 +63,7 @@ describe 'Subtasks action board', type: :feature, js: true do
board_index.visit!
# Create new board
- board_page = board_index.create_board action: :Children, expect_empty: true
+ board_page = board_index.create_board action: :Parent_child, expect_empty: true
# Expect we can add a work package column
board_page.add_list option: 'Parent WP'
@@ -87,7 +87,7 @@ describe 'Subtasks action board', type: :feature, js: true do
board_index.visit!
# Create new board
- board_page = board_index.create_board action: :Children, expect_empty: true
+ board_page = board_index.create_board action: :Parent_child, expect_empty: true
# Expect we can add a child 1
board_page.add_list option: 'Parent WP'
@@ -100,7 +100,7 @@ describe 'Subtasks action board', type: :feature, js: true do
board_page.expect_movable 'Parent WP', 'Child', movable: true
board_page.board(reload: true) do |board|
- expect(board.name).to eq 'Action board (children)'
+ expect(board.name).to eq 'Action board (Parent_child)'
queries = board.contained_queries
expect(queries.count).to eq(1)
@@ -158,7 +158,7 @@ describe 'Subtasks action board', type: :feature, js: true do
it 'prevents adding a work package to its own column' do
board_index.visit!
- board_page = board_index.create_board action: :Children, expect_empty: true
+ board_page = board_index.create_board action: :Parent_child, expect_empty: true
board_page.add_list option: 'Parent WP'
board_page.expect_list 'Parent WP'
board_page.expect_card 'Parent WP', 'Child'
diff --git a/modules/boards/spec/features/support/board_index_page.rb b/modules/boards/spec/features/support/board_index_page.rb
index e0052a5ca2f..f98b94a3031 100644
--- a/modules/boards/spec/features/support/board_index_page.rb
+++ b/modules/boards/spec/features/support/board_index_page.rb
@@ -60,9 +60,9 @@ module Pages
page.find('.toolbar-item a', text: 'Board').click
if action == nil
- find('.tile-block', text: 'Basic Board').click
+ find('.tile-block-title', text: 'Basic').click
else
- find('.tile-block', text: "Action Board (#{action.to_s})").click
+ find('.tile-block-title', text: "#{action.to_s}").click
end
if expect_empty