Commit 8bad7aae authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'sh-fix-boards-spec-failing-master' into 'master'

Fix broken master in ee/spec/features/boards/boards_spec.rb

Closes #36936

See merge request gitlab-org/gitlab!20523
parents 37d7b0b8 0a66e5a4
...@@ -196,15 +196,15 @@ describe 'issue boards', :js do ...@@ -196,15 +196,15 @@ describe 'issue boards', :js do
let!(:list) { create(:list, board: board, label: label, position: 1) } let!(:list) { create(:list, board: board, label: label, position: 1) }
before do before do
stub_licensed_features(wip_limits: wip_limits)
project.add_developer(user) project.add_developer(user)
login_as(user) login_as(user)
visit project_boards_path(project) visit project_boards_path(project)
end end
context 'When FF is turned on' do context 'When FF is turned on' do
before do let(:wip_limits) { true }
stub_licensed_features(wip_limits: true)
end
it 'shows the list settings button' do it 'shows the list settings button' do
expect(page).to have_selector(:button, "List Settings") expect(page).to have_selector(:button, "List Settings")
...@@ -212,6 +212,8 @@ describe 'issue boards', :js do ...@@ -212,6 +212,8 @@ describe 'issue boards', :js do
end end
context 'When FF is turned off' do context 'When FF is turned off' do
let(:wip_limits) { false }
it 'shows the list settings button' do it 'shows the list settings button' do
expect(page).to have_no_selector(:button, "List Settings") expect(page).to have_no_selector(:button, "List Settings")
end end
......
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