Commit 0f88dc24 authored by Jose Vargas's avatar Jose Vargas

Fix missing clear cache text inside the dependency proxy dropdown

Changelog: fixed
parent 55de7a0d
......@@ -55,6 +55,7 @@ export default {
deleteCacheAlertMessageSuccess: s__(
'DependencyProxy|All items in the cache are scheduled for removal.',
),
clearCache: s__('DependencyProxy|Clear cache'),
},
confirmClearCacheModal: 'confirm-clear-cache-modal',
modalButtons: {
......
......@@ -259,6 +259,12 @@ describe('DependencyProxyApp', () => {
it('shows the clear cache dropdown list', () => {
expect(findClearCacheDropdownList().exists()).toBe(true);
const clearCacheDropdownItem = findClearCacheDropdownList().findComponent(
GlDropdownItem,
);
expect(clearCacheDropdownItem.text()).toBe('Clear cache');
});
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