Commit 64027bac authored by Savas Vedova's avatar Savas Vedova

Merge branch '349169-update-security-configuration-tabs-to-utilize-lazy-loading' into 'master'

Update security configuration tabs to utilize lazy loading

See merge request gitlab-org/gitlab!77280
parents eac4078a 92d6e517
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
</template> </template>
</user-callout-dismisser> </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 <gl-tab
data-testid="security-testing-tab" data-testid="security-testing-tab"
:title="$options.i18n.securityTesting" :title="$options.i18n.securityTesting"
......
...@@ -159,6 +159,10 @@ describe('App component', () => { ...@@ -159,6 +159,10 @@ describe('App component', () => {
expect(findGlTabs().props('syncActiveTabWithQueryParams')).toBe(true); expect(findGlTabs().props('syncActiveTabWithQueryParams')).toBe(true);
}); });
it('lazy loads each tab', () => {
expect(findGlTabs().attributes('lazy')).not.toBe(undefined);
});
it('renders correct amount of tabs', () => { it('renders correct amount of tabs', () => {
expect(findTabs()).toHaveLength(expectedTabs.length); expect(findTabs()).toHaveLength(expectedTabs.length);
}); });
......
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