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

20230823140934_add_linked_items_widget_to_ticket_work_item_type_spec.rb « migrations « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6a83b4b1a7cad9fee1834f60a24747016e142837 (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
# 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