summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/3_create/design_management/modify_design_content_spec.rb
blob: 6a0c51245ad357075621ceacc026b7e46980f122 (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
36
37
# frozen_string_literal: true

module QA
  RSpec.describe 'Create', quarantine: {
    issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/366839',
    type: :test_environment,
    only: { job: 'review-qa-*' }
  } do
    context 'Design Management' do
      let(:design) do
        Resource::Design.fabricate_via_browser_ui! do |design|
          design.filename = 'testfile.png'
        end
      end

      before do
        Flow::Login.sign_in
      end

      it(
        'user adds a design and modifies it',
        testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347712'
      ) do
        design.issue.visit!

        Page::Project::Issue::Show.perform do |issue|
          expect(issue).to have_created_icon
        end

        Page::Project::Issue::Show.perform do |issue|
          issue.update_design(design.filename)
          expect(issue).to have_modified_icon
        end
      end
    end
  end
end