Commit ada8ccdb authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '54311-fix-board-add-label' into 'master'

Fix error when creating labels in a new issue in the boards page

Closes #54311

See merge request gitlab-org/gitlab-ce!24039
parents bb482389 cf5a9d29
......@@ -244,6 +244,7 @@ class List {
issue.project = data.project;
issue.path = data.real_path;
issue.referencePath = data.reference_path;
issue.assignableLabelsEndpoint = data.assignable_labels_endpoint;
if (this.issuesSize > 1) {
const moveBeforeId = this.issues[1].id;
......
---
title: Fix error when creating labels in a new issue in the boards page
merge_request: 24039
author: Ruben Moya
type: fixed
......@@ -86,6 +86,27 @@ describe 'Issue Boards new issue', :js do
expect(page).to have_selector('.issue-boards-sidebar')
end
it 'successfuly loads labels to be added to newly created issue' do
page.within(first('.board')) do
find('.issue-count-badge-add-button').click
end
page.within(first('.board-new-issue-form')) do
find('.form-control').set('new issue')
click_button 'Submit issue'
end
wait_for_requests
page.within(first('.issue-boards-sidebar')) do
find('.labels .edit-link').click
wait_for_requests
expect(page).to have_selector('.labels .dropdown-content li a')
end
end
end
context 'unauthorized user' do
......
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