Commit 0a66e5a4 authored by Stan Hu's avatar Stan Hu

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

The test with the feature flag disabled was not actually disabled
between browser tests. We need to ensure the flag is set before the
browser visits the page for the feature flag to take effect in time.

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