diff options
| author | barthc <mackintosh02@gmail.com> | 2016-06-27 21:22:19 +0100 |
|---|---|---|
| committer | barthc <mackintosh02@gmail.com> | 2016-09-20 14:39:15 +0100 |
| commit | 418e95bd5f623c4cbeac8f5c2fdf2a50e8893339 (patch) | |
| tree | 76a2ae21d1499233e6c491cb26a2620060fb6ce4 /spec/features/dashboard_issues_spec.rb | |
| parent | f30005f0a99b6ab019af22a8b7db40aecd1ff066 (diff) | |
| download | gitlab-ce-418e95bd5f623c4cbeac8f5c2fdf2a50e8893339.tar.gz | |
fix issues mr counter
Diffstat (limited to 'spec/features/dashboard_issues_spec.rb')
| -rw-r--r-- | spec/features/dashboard_issues_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/dashboard_issues_spec.rb b/spec/features/dashboard_issues_spec.rb index 3fb1cb37544..fc914022a59 100644 --- a/spec/features/dashboard_issues_spec.rb +++ b/spec/features/dashboard_issues_spec.rb @@ -21,6 +21,9 @@ describe "Dashboard Issues filtering", feature: true, js: true do click_link 'No Milestone' + page.within '.issues-state-filters' do + expect(page).to have_selector('.active .badge', text: '1') + end expect(page).to have_selector('.issue', count: 1) end @@ -29,6 +32,9 @@ describe "Dashboard Issues filtering", feature: true, js: true do click_link 'Any Milestone' + page.within '.issues-state-filters' do + expect(page).to have_selector('.active .badge', text: '2') + end expect(page).to have_selector('.issue', count: 2) end @@ -39,6 +45,9 @@ describe "Dashboard Issues filtering", feature: true, js: true do click_link milestone.title end + page.within '.issues-state-filters' do + expect(page).to have_selector('.active .badge', text: '1') + end expect(page).to have_selector('.issue', count: 1) end end |
