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

issues.rb « factories « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7f6ac44861b0c5622c9143ab97ef7c47abf0a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module QA
  FactoryBot.define do
    # https://docs.gitlab.com/ee/api/issues.html
    factory :issue, class: 'QA::Resource::Issue' do
      title { Faker::Lorem.sentence }
      description { Faker::Lorem.paragraph }

      confidential { false }

      trait :confidential do
        confidential { true }
      end

      trait :incident do
        issue_type { 'incident' }
      end

      factory :incident, traits: [:incident]
    end
  end
end