blob: da3dd6ba07133cc4e6600e617cfd07955acfcdad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Issue boards sidebar labels select', :js, feature_category: :team_planning do
include BoardHelpers
include_context 'labels from nested groups and projects'
let(:card) { find('.board:nth-child(1)').first('[data-testid="board-card"]') }
context 'group boards' do
context 'in the top-level group board' do
let_it_be(:group_board) { create(:board, group: group) }
before do
load_board group_board_path(group, group_board)
end
context 'selecting an issue from a direct descendant project' do
let_it_be(:project_issue) { create(:issue, project: project) }
include_examples 'an issue from a direct descendant project is selected'
end
context "selecting an issue from a subgroup's project" do
let_it_be(:subproject_issue) { create(:issue, project: subproject) }
include_examples "an issue from a subgroup's project is selected"
end
end
end
end
|