summaryrefslogtreecommitdiff
path: root/spec/frontend/registry
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-04 14:42:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-04 14:42:09 +0000
commitbc82bff16f0c095533a78b1ca894f8ac3b92b2dc (patch)
treee1e056e14ac6ec99ad8b1f5773cedaeb3245477d /spec/frontend/registry
parent298593fe47809cf87e4694db2c449461647eb5fc (diff)
downloadgitlab-ce-bc82bff16f0c095533a78b1ca894f8ac3b92b2dc.tar.gz
Add latest changes from gitlab-org/gitlab@13-7-stable-ee
Diffstat (limited to 'spec/frontend/registry')
-rw-r--r--spec/frontend/registry/explorer/components/details_page/details_header_spec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/frontend/registry/explorer/components/details_page/details_header_spec.js b/spec/frontend/registry/explorer/components/details_page/details_header_spec.js
index ec883886026..f642c66832b 100644
--- a/spec/frontend/registry/explorer/components/details_page/details_header_spec.js
+++ b/spec/frontend/registry/explorer/components/details_page/details_header_spec.js
@@ -1,5 +1,6 @@
import { shallowMount } from '@vue/test-utils';
import { GlSprintf } from '@gitlab/ui';
+import { useFakeDate } from 'helpers/fake_date';
import TitleArea from '~/vue_shared/components/registry/title_area.vue';
import component from '~/registry/explorer/components/details_page/details_header.vue';
import { DETAILS_PAGE_TITLE } from '~/registry/explorer/constants';
@@ -15,6 +16,9 @@ describe('Details Header', () => {
},
};
+ // set the date to Dec 4, 2020
+ useFakeDate(2020, 11, 4);
+
const findLastUpdatedAndVisibility = () => wrapper.find('[data-testid="updated-and-visibility"]');
const waitForMetadataItems = async () => {