Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sidebar_labels_in_namespaces_spec.rb « boards « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ffed4a0854f2189dc291266d86ab2592ee5b9a86 (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
34
35
# 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
        stub_feature_flags(apollo_boards: false)

        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