Commit 60dc5d2c authored by Peter Hegman's avatar Peter Hegman

Merge branch '349628-fix-bulk-edit-in-issues-list-refactor' into 'master'

Fix bulk edit unchecking in issues list refactor

See merge request gitlab-org/gitlab!77683
parents 1e7c3b52 50ef0452
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
v-if="showCheckbox" v-if="showCheckbox"
class="gl-align-self-center" class="gl-align-self-center"
:checked="checkboxChecked" :checked="checkboxChecked"
@input="$emit('checked-input', $event)" @change="$emit('checked-input', $event)"
> >
<span class="gl-sr-only">{{ __('Select all') }}</span> <span class="gl-sr-only">{{ __('Select all') }}</span>
</gl-form-checkbox> </gl-form-checkbox>
......
...@@ -104,6 +104,26 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do ...@@ -104,6 +104,26 @@ RSpec.describe 'Multiple issue updating from issues#index', :js do
end end
end end
describe 'select all issues' do
let!(:issue_2) { create(:issue, project: project) }
before do
stub_feature_flags(vue_issues_list: true)
end
it 'after selecting all issues, unchecking one issue only unselects that one issue' do
visit project_issues_path(project)
click_button 'Edit issues'
check 'Select all'
uncheck issue.title
expect(page).to have_unchecked_field 'Select all'
expect(page).to have_unchecked_field issue.title
expect(page).to have_checked_field issue_2.title
end
end
def create_closed def create_closed
create(:issue, project: project, state: :closed) create(:issue, project: project, state: :closed)
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