summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-02-01 00:08:23 +0000
committerRobert Speicher <robert@gitlab.com>2018-02-01 00:08:23 +0000
commitf9e9d5d50e04ad5487e004773783aea52ff85d37 (patch)
tree6a0f4405c76aa401e15dafa3ac47ff7fddace243 /qa
parentb00c48f407bf96d68eac0b393ec78db062637018 (diff)
parent787ac467a2d59b5798fe9da088da43cf09bfaf86 (diff)
downloadgitlab-ce-f9e9d5d50e04ad5487e004773783aea52ff85d37.tar.gz
Merge branch 'qa-160' into 'master'
Add a QA scenario for creating an issue Closes gitlab-qa#160 See merge request gitlab-org/gitlab-ce!16802
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