Commit fe1bc3f0 authored by sstern's avatar sstern

Revist page with FF off

parent 7cfd6dac
...@@ -188,21 +188,22 @@ describe 'issue boards', :js do ...@@ -188,21 +188,22 @@ describe 'issue boards', :js do
end end
context 'list settings' do context 'list settings' do
before do
project.add_developer(user)
login_as(user)
end
context 'When FF is turned on' do
let!(:label) { create(:label, project: project, name: 'Brount') } let!(:label) { create(:label, project: project, name: 'Brount') }
let!(:list) { create(:list, board: board, label: label, position: 1) } let!(:list) { create(:list, board: board, label: label, position: 1) }
before do before do
project.add_developer(user) stub_feature_flags(wip_limits: true)
login_as(user)
visit project_boards_path(project) visit project_boards_path(project)
end end
context 'When FF is turned on' do
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")
end
it 'does not show the board list settings sidebar as default state' do
expect(page).not_to have_selector(".js-board-settings-sidebar") expect(page).not_to have_selector(".js-board-settings-sidebar")
end end
...@@ -218,13 +219,13 @@ describe 'issue boards', :js do ...@@ -218,13 +219,13 @@ describe 'issue boards', :js do
end end
context 'When FF is turned off' do context 'When FF is turned off' do
# https://gitlab.com/gitlab-org/gitlab/issues/118658 before do
it 'does not show the list settings button', :quarantine do stub_feature_flags(wip_limits: false)
stub_licensed_features(wip_limits: false) visit project_boards_path(project)
expect(page).to have_no_selector(:button, "List Settings")
end end
it 'does not show the board list settings sidebar' do it 'does not show the list settings button' do
expect(page).to have_no_selector(:button, "List Settings")
expect(page).not_to have_selector(".js-board-settings-sidebar") expect(page).not_to have_selector(".js-board-settings-sidebar")
end end
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