solve travis check errors

pull/8639/head
bsatarnejad 4 years ago
parent 2ea25f8062
commit a9233e8e2c
  1. 2
      modules/boards/config/locales/js-en.yml
  2. 8
      modules/boards/spec/features/action_boards/subtasks_board_spec.rb
  3. 4
      modules/boards/spec/features/support/board_index_page.rb

@ -65,7 +65,7 @@ en:
status: status
version: version
subproject: subproject
subtasks: parent-child
subtasks: Parent_child
select_attribute: "Action attribute"
add_list_modal:

@ -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'

@ -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

Loading…
Cancel
Save