summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb
blob: 7c675862e2621a5e63c5d3656d1c1dc2b237a2db (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
# frozen_string_literal: true

module QA
  RSpec.describe 'Plan', :reliable do
    describe 'issue suggestions' do
      let(:issue_title) { 'Issue Lists are awesome' }

      before do
        Flow::Login.sign_in

        Resource::Issue.fabricate_via_api! do |issue|
          issue.title = issue_title
        end.project.visit!
      end

      it 'shows issue suggestions when creating a new issue', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/412' do
        Page::Project::Show.perform(&:go_to_new_issue)
        Page::Project::Issue::New.perform do |new_page|
          new_page.fill_title("issue")
          expect(new_page).to have_content(issue_title)

          new_page.fill_title("Issue Board")
          expect(new_page).not_to have_content(issue_title)
        end
      end
    end
  end
end