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/migrations/20230823140934_add_linked_items_widget_to_ticket_work_item_type_spec.rb')
-rw-r--r--spec/migrations/20230823140934_add_linked_items_widget_to_ticket_work_item_type_spec.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/migrations/20230823140934_add_linked_items_widget_to_ticket_work_item_type_spec.rb b/spec/migrations/20230823140934_add_linked_items_widget_to_ticket_work_item_type_spec.rb
new file mode 100644
index 00000000000..6a83b4b1a7c
--- /dev/null
+++ b/spec/migrations/20230823140934_add_linked_items_widget_to_ticket_work_item_type_spec.rb
@@ -0,0 +1,29 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+require_migration!
+
+RSpec.describe AddLinkedItemsWidgetToTicketWorkItemType, :migration, feature_category: :portfolio_management do
+ it_behaves_like 'migration that adds a widget to a work item type' do
+ let(:target_type_enum_value) { described_class::TICKET_ENUM_VALUE }
+ let(:target_type) { :ticket }
+ let(:additional_types) { { ticket: 8 } }
+ let(:widgets_for_type) do
+ {
+ 'Assignees' => 0,
+ 'Description' => 1,
+ 'Hierarchy' => 2,
+ 'Labels' => 3,
+ 'Notes' => 5,
+ 'Iteration' => 9,
+ 'Milestone' => 4,
+ 'Weight' => 8,
+ 'Current user todos' => 15,
+ 'Start and due date' => 6,
+ 'Health status' => 7,
+ 'Notifications' => 14,
+ 'Award emoji' => 16
+ }.freeze
+ end
+ end
+end