Commit 92d6e517 authored by David Pisek's avatar David Pisek Committed by Savas Vedova

Update security configuration tabs to utilize lazy loading

parent b536ad6e
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,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