diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-11 14:31:19 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-11 14:31:19 +0300 |
commit | 5913f74446cd529cef4899aeaa60f273a1aa418b (patch) | |
tree | 42601f5337b9dd656b3cf1cdb9456a041e99b705 /features/steps/project/issues.rb | |
parent | 350f5574793f9a2c262541f3b873a9b39dd171ad (diff) | |
download | gitlab-ce-5913f74446cd529cef4899aeaa60f273a1aa418b.tar.gz |
Clickable labels feature test
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/steps/project/issues.rb')
-rw-r--r-- | features/steps/project/issues.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/features/steps/project/issues.rb b/features/steps/project/issues.rb index 32a3a0d3f56..65c243a7297 100644 --- a/features/steps/project/issues.rb +++ b/features/steps/project/issues.rb @@ -218,6 +218,18 @@ class ProjectIssues < Spinach::FeatureSteps page.should_not have_content 'Bugfix1' end + step 'issue \'Release 0.4\' has label \'bug\'' do + label = project.labels.create!(name: 'bug', color: '#990000') + issue = Issue.find_by!(title: 'Release 0.4') + issue.labels << label + end + + step 'I click label \'bug\'' do + within ".issues-list" do + click_link 'bug' + end + end + def filter_issue(text) fill_in 'issue_search', with: text |