Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2024-01-18 09:09:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-18 09:09:25 +0300
commit0baa744d45735fa9ec826a11e2ad22c113693fff (patch)
tree88b8fbc4c468b46cd382d6e8f98b7b4433717cd0 /spec/frontend/packages_and_registries/package_registry
parent1b6c7847cee9c54848d4b9df0ea3c5170f76b64e (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.js14
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'}