diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-04 17:42:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-04 17:42:09 +0300 |
commit | bc82bff16f0c095533a78b1ca894f8ac3b92b2dc (patch) | |
tree | e1e056e14ac6ec99ad8b1f5773cedaeb3245477d /spec/frontend/registry | |
parent | 298593fe47809cf87e4694db2c449461647eb5fc (diff) |
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.js | 4 |
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 () => { |