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

issue_suggestions_spec.rb « issue « 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: 9b46a066c8ec5a97e72b05aa1d9b28404e4bdf15 (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
  context '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' do
        Page::Project::Show.perform(&:go_to_new_issue)
        Page::Project::Issue::New.perform do |new_page|
          new_page.add_title("issue")
          expect(new_page).to have_content(issue_title)

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