Commit 1f1f7509 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch '296502-job-failed-941515830' into 'master'

Fix details_page/details_header_spec time dependent spec

See merge request gitlab-org/gitlab!50739
parents 15d5fa08 6e7113de
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 () => {
......
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