Commit 9f256235 authored by Miguel Rincon's avatar Miguel Rincon

Merge branch '292393-include-all-available-quick-actions-in-autocomplete' into 'master'

Include all available quick actions in autocomplete

See merge request gitlab-org/gitlab!51239
parents a2610ef0 b5c46172
...@@ -103,6 +103,7 @@ class GfmAutoComplete { ...@@ -103,6 +103,7 @@ class GfmAutoComplete {
at: '/', at: '/',
alias: 'commands', alias: 'commands',
searchKey: 'search', searchKey: 'search',
limit: 100,
skipSpecialCharacterTest: true, skipSpecialCharacterTest: true,
skipMarkdownCharacterTest: true, skipMarkdownCharacterTest: true,
data: GfmAutoComplete.defaultLoadingData, data: GfmAutoComplete.defaultLoadingData,
......
---
title: Show all quick actions in `/` autocomplete
merge_request: 51239
author:
type: added
...@@ -9,8 +9,10 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -9,8 +9,10 @@ info: To determine the technical writer assigned to the Stage/Group associated w
> - Introduced in [GitLab 12.1](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/26672): > - Introduced in [GitLab 12.1](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/26672):
> once an action is executed, an alert appears when a quick action is successfully applied. > once an action is executed, an alert appears when a quick action is successfully applied.
> - In [GitLab 13.2](https://gitlab.com/gitlab-org/gitlab/-/issues/16877) and later, you can use > - Introduced in [GitLab 13.2](https://gitlab.com/gitlab-org/gitlab/-/issues/16877): you can use
> quick actions when updating the description of issues, epics, and merge requests. > quick actions when updating the description of issues, epics, and merge requests.
> - Introduced in [GitLab 13.8](https://gitlab.com/gitlab-org/gitlab/-/issues/292393): when you enter
> `/` into a description or comment field, all available quick actions are displayed in a scrollable list.
Quick actions are textual shortcuts for common actions on issues, epics, merge requests, Quick actions are textual shortcuts for common actions on issues, epics, merge requests,
and commits that are usually done by clicking buttons or dropdowns in the GitLab UI. and commits that are usually done by clicking buttons or dropdowns in the GitLab UI.
......
...@@ -294,6 +294,15 @@ RSpec.describe 'GFM autocomplete', :js do ...@@ -294,6 +294,15 @@ RSpec.describe 'GFM autocomplete', :js do
user_item = find('.atwho-view li', text: user.username) user_item = find('.atwho-view li', text: user.username)
expect(user_item).to have_content(user.username) expect(user_item).to have_content(user.username)
end end
it 'does not limit quick actions autocomplete list to 5' do
note = find('#note-body')
page.within '.timeline-content-form' do
note.native.send_keys('/')
end
expect(page).to have_selector('.atwho-view li', minimum: 6, visible: true)
end
end end
context 'assignees' do context 'assignees' 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