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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb b/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb
new file mode 100644
index 00000000000..7e8b42e286f
--- /dev/null
+++ b/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb
@@ -0,0 +1,35 @@
+# frozen_string_literal: true
+
+module QA
+ context 'Plan' do
+ describe 'issue suggestions' do
+ let(:issue_title) { 'Issue Lists are awesome' }
+
+ it 'user sees issue suggestions when creating a new issue' do
+ Runtime::Browser.visit(:gitlab, Page::Main::Login)
+ Page::Main::Login.perform(&:sign_in_using_credentials)
+
+ project = Resource::Project.fabricate! do |resource|
+ resource.name = 'project-for-issue-suggestions'
+ resource.description = 'project for issue suggestions'
+ end
+
+ Resource::Issue.fabricate! do |issue|
+ issue.title = issue_title
+ issue.project = project
+ end
+
+ project.visit!
+
+ Page::Project::Show.perform(&:go_to_new_issue)
+ Page::Project::Issue::New.perform do |new_issue_page|
+ new_issue_page.add_title("issue")
+ expect(new_issue_page).to have_content(issue_title)
+
+ new_issue_page.add_title("Issue Board")
+ expect(new_issue_page).not_to have_content(issue_title)
+ end
+ end
+ end
+ end
+end