diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-18 09:09:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-18 09:09:25 +0300 |
commit | 0baa744d45735fa9ec826a11e2ad22c113693fff (patch) | |
tree | 88b8fbc4c468b46cd382d6e8f98b7b4433717cd0 /spec/frontend/packages_and_registries/package_registry | |
parent | 1b6c7847cee9c54848d4b9df0ea3c5170f76b64e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/packages_and_registries/package_registry')
-rw-r--r-- | spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js b/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js index 6a1c34df596..eb5c546d2be 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/list/packages_search_spec.js @@ -52,7 +52,7 @@ describe('Package Search', () => { expect(findPersistedSearch().exists()).toBe(false); }); - it('has a LocalStorageSync component', () => { + it('has a LocalStorageSync component with project key', () => { mountComponent(); expect(findLocalStorageSync().props()).toMatchObject({ @@ -64,6 +64,18 @@ describe('Package Search', () => { }); }); + it('has a LocalStorageSync component with group key', () => { + mountComponent(true); + + expect(findLocalStorageSync().props()).toMatchObject({ + storageKey: 'group_package_registry_list_sorting', + value: { + orderBy: LIST_KEY_CREATED_AT, + sort: 'desc', + }, + }); + }); + it.each` isGroupPage | page ${false} | ${'project'} |