diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-04-02 07:36:41 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-04-02 07:36:41 -0500 |
commit | fd090a2fab64332907953a1525cf5c822d983993 (patch) | |
tree | beb57291b94a985a3462d25c9ab0ef4bef122e24 /features/steps | |
parent | 09b7b766cbf42ed6e9e9246d494b60f05a7a28e7 (diff) | |
download | gitlab-ce-issue_14853.tar.gz |
Fix bug related to filtering Issues by Label/Milestone.issue_14853
This problem only was affecting the dev env.
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/dashboard/dashboard.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/features/steps/dashboard/dashboard.rb b/features/steps/dashboard/dashboard.rb index 5062e348844..b5980b35102 100644 --- a/features/steps/dashboard/dashboard.rb +++ b/features/steps/dashboard/dashboard.rb @@ -87,4 +87,23 @@ class Spinach::Features::Dashboard < Spinach::FeatureSteps step 'I should see 1 project at group list' do expect(find('span.last_activity/span')).to have_content('1') end + + step 'I filter the list by label "feature"' do + page.within ".labels-filter" do + find('.dropdown').click + click_link "feature" + end + end + + step 'I should see "Bugfix1" in issues list' do + page.within "ul.content-list" do + expect(page).to have_content "Bugfix1" + end + end + + step 'project "Shop" has issue "Bugfix1" with label "feature"' do + project = Project.find_by(name: "Shop") + issue = create(:issue, title: "Bugfix1", project: project, assignee: current_user) + issue.labels << project.labels.find_by(title: 'feature') + end end |