Merge branch 'add-issues-button-disable' into 'master'
Disables add issue button Closes #27931 See merge request !9100
This commit is contained in:
commit
a8fa1b264f
2 changed files with 7 additions and 1 deletions
|
@ -95,7 +95,7 @@ $(() => {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
disabled() {
|
disabled() {
|
||||||
return Store.shouldAddBlankState();
|
return !this.store.lists.filter(list => list.type !== 'blank' && list.type !== 'done').length;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
template: `
|
template: `
|
||||||
|
|
|
@ -28,6 +28,12 @@ describe 'Issue Boards', feature: true, js: true do
|
||||||
expect(page).to have_content('Welcome to your Issue Board!')
|
expect(page).to have_content('Welcome to your Issue Board!')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'disables add issues button by default' do
|
||||||
|
button = page.find('.issue-boards-search button', text: 'Add issues')
|
||||||
|
|
||||||
|
expect(button[:disabled]).to eq true
|
||||||
|
end
|
||||||
|
|
||||||
it 'hides the blank state when clicking nevermind button' do
|
it 'hides the blank state when clicking nevermind button' do
|
||||||
page.within(find('.board-blank-state')) do
|
page.within(find('.board-blank-state')) do
|
||||||
click_button("Nevermind, I'll use my own")
|
click_button("Nevermind, I'll use my own")
|
||||||
|
|
Loading…
Reference in a new issue