Commit dc0d7fd6 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'jivanvl-fix-clear-cache-missing-text' into 'master'

Fix missing clear cache text inside the dependency proxy dropdown

See merge request gitlab-org/gitlab!84620
parents 07d86233 0f88dc24
...@@ -55,6 +55,7 @@ export default { ...@@ -55,6 +55,7 @@ export default {
deleteCacheAlertMessageSuccess: s__( deleteCacheAlertMessageSuccess: s__(
'DependencyProxy|All items in the cache are scheduled for removal.', 'DependencyProxy|All items in the cache are scheduled for removal.',
), ),
clearCache: s__('DependencyProxy|Clear cache'),
}, },
confirmClearCacheModal: 'confirm-clear-cache-modal', confirmClearCacheModal: 'confirm-clear-cache-modal',
modalButtons: { modalButtons: {
......
...@@ -259,6 +259,12 @@ describe('DependencyProxyApp', () => { ...@@ -259,6 +259,12 @@ describe('DependencyProxyApp', () => {
it('shows the clear cache dropdown list', () => { it('shows the clear cache dropdown list', () => {
expect(findClearCacheDropdownList().exists()).toBe(true); expect(findClearCacheDropdownList().exists()).toBe(true);
const clearCacheDropdownItem = findClearCacheDropdownList().findComponent(
GlDropdownItem,
);
expect(clearCacheDropdownItem.text()).toBe('Clear cache');
}); });
it('shows the clear cache confirmation modal', () => { it('shows the clear cache confirmation modal', () => {
......
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