Commit 88f3dc14 authored by Axel García's avatar Axel García Committed by Paul Slaughter

Add feature spec for overlapping board sidebars

parent 5d12b2d9
......@@ -353,7 +353,7 @@ export default {
v-if="isSettingsShown"
ref="settingsBtn"
:aria-label="__(`List settings`)"
class="no-drag rounded-right"
class="no-drag rounded-right js-board-settings-button"
title="List settings"
type="button"
@click="openSidebarSettings"
......
......@@ -331,4 +331,30 @@ describe 'Issue Boards', :js do
end
end
end
context 'when opening sidebars' do
let(:settings_button) { find('.js-board-settings-button') }
it 'closes card sidebar when opening settings sidebar' do
click_card(card1)
expect(page).to have_selector('.right-sidebar')
settings_button.click
expect(page).to have_selector('.js-board-settings-sidebar')
expect(page).not_to have_selector('.right-sidebar')
end
it 'closes settings sidebar when opening card sidebar' do
settings_button.click
expect(page).to have_selector('.js-board-settings-sidebar')
click_card(card1)
expect(page).to have_selector('.right-sidebar')
expect(page).not_to have_selector('.js-board-settings-sidebar')
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