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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/boards/sidebar_labels_in_namespaces_spec.rb')
-rw-r--r--spec/features/boards/sidebar_labels_in_namespaces_spec.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/spec/features/boards/sidebar_labels_in_namespaces_spec.rb b/spec/features/boards/sidebar_labels_in_namespaces_spec.rb
new file mode 100644
index 00000000000..8395a0b33c0
--- /dev/null
+++ b/spec/features/boards/sidebar_labels_in_namespaces_spec.rb
@@ -0,0 +1,34 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe 'Issue boards sidebar labels select', :js 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) }
+ let_it_be(:board_list) { create(:backlog_list, board: group_board) }
+
+ 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