Commit 6ed042bb authored by Florie Guibert's avatar Florie Guibert Committed by Eulyeon Ko

Fix RSPEC test for graphQL project boards

Update tests for GraphQL boards on projects
parent 94fb3fe7
......@@ -10,6 +10,7 @@ RSpec.describe 'epics swimlanes', :js do
let_it_be(:board) { create(:board, project: project) }
let_it_be(:label) { create(:label, project: project, name: 'Label1') }
let_it_be(:list) { create(:list, board: board, label: label, position: 0) }
let_it_be(:backlog_list) { create(:backlog_list, board: board) }
let_it_be(:issue1) { create(:issue, project: project, labels: [label]) }
let_it_be(:issue2) { create(:issue, project: project) }
......
......@@ -81,6 +81,8 @@ RSpec.describe 'Filter issues by iteration', :js do
before do
# iterationWildCardId is not yet supported by graphQL https://gitlab.com/gitlab-org/gitlab/-/issues/300115
stub_feature_flags(graphql_board_lists: false)
visit page_path
page.within('.filtered-search-wrapper') do
find('.filtered-search').set('iter')
......@@ -140,6 +142,7 @@ RSpec.describe 'Filter issues by iteration', :js do
context 'project board' do
let_it_be(:board) { create(:board, project: project) }
let_it_be(:backlog_list) { create(:backlog_list, board: board) }
let(:page_path) { project_board_path(project, board) }
let(:issue_title_selector) { '.board-card .board-card-title' }
......@@ -157,6 +160,7 @@ RSpec.describe 'Filter issues by iteration', :js do
context 'group board' do
let_it_be(:board) { create(:board, group: group) }
let_it_be(:backlog_list) { create(:backlog_list, board: board) }
let_it_be(:user) { create(:user) }
let(:page_path) { group_board_path(group, board) }
......
......@@ -12,6 +12,8 @@ RSpec.describe 'Issue Boards add issue modal filtering', :js do
let!(:issue1) { create(:issue, project: project) }
before do
stub_feature_flags(graphql_board_lists: false)
stub_feature_flags(add_issues_button: true)
project.add_maintainer(user)
sign_in(user)
......
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