diff options
Diffstat (limited to 'spec/requests/api/graphql/boards')
-rw-r--r-- | spec/requests/api/graphql/boards/board_list_issues_query_spec.rb | 2 | ||||
-rw-r--r-- | spec/requests/api/graphql/boards/board_lists_query_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/graphql/boards/board_list_issues_query_spec.rb b/spec/requests/api/graphql/boards/board_list_issues_query_spec.rb index 2775c3d4c5a..86e2b288890 100644 --- a/spec/requests/api/graphql/boards/board_list_issues_query_spec.rb +++ b/spec/requests/api/graphql/boards/board_list_issues_query_spec.rb @@ -19,7 +19,7 @@ RSpec.describe 'get board lists', feature_category: :team_planning do let(:confidential) { false } let(:board_parent_type) { board_parent.class.to_s.downcase } let(:board_data) { graphql_data[board_parent_type]['boards']['nodes'][0] } - let(:lists_data) { board_data['lists']['nodes'][0] } + let(:lists_data) { board_data['lists']['nodes'][1] } let(:issues_data) { lists_data['issues']['nodes'] } let(:issue_params) { { filters: { label_name: label2.title, confidential: confidential }, first: 3 } } diff --git a/spec/requests/api/graphql/boards/board_lists_query_spec.rb b/spec/requests/api/graphql/boards/board_lists_query_spec.rb index 2f23e93e2c6..c1ad9bc8728 100644 --- a/spec/requests/api/graphql/boards/board_lists_query_spec.rb +++ b/spec/requests/api/graphql/boards/board_lists_query_spec.rb @@ -90,7 +90,7 @@ RSpec.describe 'get board lists', feature_category: :team_planning do context 'when using default sorting' do let!(:label_list) { create(:list, board: board, label: label, position: 10) } let!(:label_list2) { create(:list, board: board, label: label2, position: 2) } - let!(:backlog_list) { create(:backlog_list, board: board) } + let(:backlog_list) { board.lists.find_by(list_type: :backlog) } let(:closed_list) { board.lists.find_by(list_type: :closed) } let(:lists) { [backlog_list, label_list2, label_list, closed_list] } |