Commit 71a0f073 authored by Scott Stern's avatar Scott Stern Committed by Andrew Fontaine

Fix filter count on epic board lists

parent 3edccefc
#import "./epic_board_list.fragment.graphql"
query ListEpics($fullPath: ID!, $boardId: BoardsEpicBoardID!) {
query ListEpics($fullPath: ID!, $boardId: BoardsEpicBoardID!, $filters: EpicFilters) {
group(fullPath: $fullPath) {
board: epicBoard(id: $boardId) {
lists {
lists(epicFilters: $filters) {
nodes {
...EpicBoardListFragment
}
......
......@@ -234,6 +234,7 @@ RSpec.describe 'epic boards', :js do
wait_for_requests
expect(list_header(label_list)).to have_content('0')
expect(page).not_to have_content('Epic1')
expect(page).to have_content('Epic2')
expect(page).to have_content('Epic3')
......@@ -250,6 +251,7 @@ RSpec.describe 'epic boards', :js do
wait_for_requests
expect(list_header(label_list)).to have_content('1')
expect(page).to have_content('Epic1')
expect(page).not_to have_content('Epic2')
expect(page).not_to have_content('Epic3')
......@@ -266,6 +268,7 @@ RSpec.describe 'epic boards', :js do
wait_for_requests
expect(list_header(label_list)).to have_content('1')
expect(page).to have_content('Epic1')
expect(page).not_to have_content('Epic2')
expect(page).not_to have_content('Epic3')
......@@ -282,6 +285,7 @@ RSpec.describe 'epic boards', :js do
wait_for_requests
expect(list_header(label_list)).to have_content('0')
expect(page).not_to have_content('Epic1')
expect(page).to have_content('Epic2')
expect(page).to have_content('Epic3')
......@@ -296,6 +300,7 @@ RSpec.describe 'epic boards', :js do
wait_for_requests
expect(list_header(label_list)).to have_content('1')
expect(page).to have_content('Epic1')
expect(page).not_to have_content('Epic2')
expect(page).not_to have_content('Epic3')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment