diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-01 00:09:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-01 00:09:09 +0300 |
commit | 404895390afe87ce8ab939448bf7dff7dc4b7169 (patch) | |
tree | 93c323d7df6b70c84dce7b3e4e4f3d57180394a0 /spec/helpers | |
parent | e9885f7a36065b9b45a35feb6c427c7742a906a4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/sidebars_helper_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/helpers/sidebars_helper_spec.rb b/spec/helpers/sidebars_helper_spec.rb index 6648663b634..f4df7a69b8f 100644 --- a/spec/helpers/sidebars_helper_spec.rb +++ b/spec/helpers/sidebars_helper_spec.rb @@ -319,6 +319,17 @@ RSpec.describe SidebarsHelper, feature_category: :navigation do ) end + it 'returns command palette items', :use_clean_rails_memory_store_caching do + expect(subject[:command_palette_commands]).to match_array([ + { href: "/projects/new", + text: "New project/repository", keywords: [_('Create a new project/repository')] }, + { href: "/groups/new", text: "New group", + keywords: ['Create a new group'] }, + { href: "/-/snippets/new", text: "New snippet", + keywords: ['Create a new snippet'] } + ]) + end + describe 'current context' do context 'when current context is a project' do let_it_be(:project) { build(:project) } |