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

modify_design_content_spec.rb « design_management « 2_plan « browser_ui « features « specs « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f4902026d2e91132b017fbb869bc37b60d5e58e (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 'Plan', quarantine: {
    issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/366839',
    type: :test_environment,
    only: { job: 'review-qa-*' }
  } do
    describe '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