diff options
author | Robert Speicher <robert@gitlab.com> | 2018-02-01 00:08:23 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-02-01 00:08:23 +0000 |
commit | f9e9d5d50e04ad5487e004773783aea52ff85d37 (patch) | |
tree | 6a0f4405c76aa401e15dafa3ac47ff7fddace243 /qa | |
parent | b00c48f407bf96d68eac0b393ec78db062637018 (diff) | |
parent | 787ac467a2d59b5798fe9da088da43cf09bfaf86 (diff) | |
download | gitlab-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.rb | 2 | ||||
-rw-r--r-- | qa/qa/specs/features/project/create_issue_spec.rb | 18 |
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 |