summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-01-15 11:14:55 +0100
committerRémy Coutable <remy@rymai.me>2018-01-31 11:02:15 +0100
commit787ac467a2d59b5798fe9da088da43cf09bfaf86 (patch)
tree5eddd617c4731f72fa27cda03dc96d0decfff760 /qa
parent36b6746f25406cd830070066fc745de12b2b44fe (diff)
downloadgitlab-ce-787ac467a2d59b5798fe9da088da43cf09bfaf86.tar.gz
Add a QA scenario for creating an issueqa-160
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/factory/resource/issue.rb2
-rw-r--r--qa/qa/specs/features/project/create_issue_spec.rb18
2 files changed, 18 insertions, 2 deletions
diff --git a/qa/qa/factory/resource/issue.rb b/qa/qa/factory/resource/issue.rb
index 06e7e8df56c..95f48e20b3e 100644
--- a/qa/qa/factory/resource/issue.rb
+++ b/qa/qa/factory/resource/issue.rb
@@ -1,5 +1,3 @@
-require 'securerandom'
-
module QA
module Factory
module Resource
diff --git a/qa/qa/specs/features/project/create_issue_spec.rb b/qa/qa/specs/features/project/create_issue_spec.rb
new file mode 100644
index 00000000000..b73f108c2d9
--- /dev/null
+++ b/qa/qa/specs/features/project/create_issue_spec.rb
@@ -0,0 +1,18 @@
+module QA
+ feature 'creates issue', :core do
+ let(:issue_title) { 'issue title' }
+
+ scenario 'user creates issue' do
+ Runtime::Browser.visit(:gitlab, Page::Main::Login)
+ Page::Main::Login.act { sign_in_using_credentials }
+
+ Factory::Resource::Issue.fabricate! do |issue|
+ issue.title = issue_title
+ end
+
+ Page::Menu::Side.act { click_issues }
+
+ expect(page).to have_content(issue_title)
+ end
+ end
+end