Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2021-12-24 15:13:32 +00:00
parent adbde13457
commit 7adf802632
3 changed files with 17 additions and 1 deletions

View File

@ -163,7 +163,7 @@ export default {
</template>
</user-callout-dismisser>
<gl-tabs content-class="gl-pt-0" sync-active-tab-with-query-params>
<gl-tabs content-class="gl-pt-0" sync-active-tab-with-query-params lazy>
<gl-tab
data-testid="security-testing-tab"
:title="$options.i18n.securityTesting"

View File

@ -43,6 +43,18 @@ ci_project_mirrors:
- table: namespaces
column: namespace_id
on_delete: async_delete
merge_requests:
- table: ci_pipelines
column: head_pipeline_id
on_delete: async_nullify
vulnerability_statistics:
- table: ci_pipelines
column: latest_pipeline_id
on_delete: async_nullify
vulnerability_occurrence_pipelines:
- table: ci_pipelines
column: pipeline_id
on_delete: async_delete
packages_build_infos:
- table: ci_pipelines
column: pipeline_id

View File

@ -159,6 +159,10 @@ describe('App component', () => {
expect(findGlTabs().props('syncActiveTabWithQueryParams')).toBe(true);
});
it('lazy loads each tab', () => {
expect(findGlTabs().attributes('lazy')).not.toBe(undefined);
});
it('renders correct amount of tabs', () => {
expect(findTabs()).toHaveLength(expectedTabs.length);
});