diff options
Diffstat (limited to 'spec/frontend/jobs')
-rw-r--r-- | spec/frontend/jobs/components/log/collapsible_section_spec.js | 4 | ||||
-rw-r--r-- | spec/frontend/jobs/components/log/line_header_spec.js | 8 | ||||
-rw-r--r-- | spec/frontend/jobs/components/log/log_spec.js | 8 |
3 files changed, 12 insertions, 8 deletions
diff --git a/spec/frontend/jobs/components/log/collapsible_section_spec.js b/spec/frontend/jobs/components/log/collapsible_section_spec.js index 22ddc8b1c2d..2ab7f5fe22d 100644 --- a/spec/frontend/jobs/components/log/collapsible_section_spec.js +++ b/spec/frontend/jobs/components/log/collapsible_section_spec.js @@ -45,7 +45,7 @@ describe('Job Log Collapsible Section', () => { }); it('renders an icon with the closed state', () => { - expect(findCollapsibleLineSvg().attributes('data-testid')).toBe('angle-right-icon'); + expect(findCollapsibleLineSvg().attributes('data-testid')).toBe('chevron-lg-right-icon'); }); }); @@ -62,7 +62,7 @@ describe('Job Log Collapsible Section', () => { }); it('renders an icon with the open state', () => { - expect(findCollapsibleLineSvg().attributes('data-testid')).toBe('angle-down-icon'); + expect(findCollapsibleLineSvg().attributes('data-testid')).toBe('chevron-lg-down-icon'); }); it('renders collapsible lines content', () => { diff --git a/spec/frontend/jobs/components/log/line_header_spec.js b/spec/frontend/jobs/components/log/line_header_spec.js index 8055fe64d95..bdc8ae0eef0 100644 --- a/spec/frontend/jobs/components/log/line_header_spec.js +++ b/spec/frontend/jobs/components/log/line_header_spec.js @@ -56,8 +56,8 @@ describe('Job Log Header Line', () => { createComponent({ ...data, isClosed: true }); }); - it('sets icon name to be angle-right', () => { - expect(wrapper.vm.iconName).toEqual('angle-right'); + it('sets icon name to be chevron-lg-right', () => { + expect(wrapper.vm.iconName).toEqual('chevron-lg-right'); }); }); @@ -66,8 +66,8 @@ describe('Job Log Header Line', () => { createComponent({ ...data, isClosed: false }); }); - it('sets icon name to be angle-down', () => { - expect(wrapper.vm.iconName).toEqual('angle-down'); + it('sets icon name to be chevron-lg-down', () => { + expect(wrapper.vm.iconName).toEqual('chevron-lg-down'); }); }); diff --git a/spec/frontend/jobs/components/log/log_spec.js b/spec/frontend/jobs/components/log/log_spec.js index 7e11738f82e..9cc56cce9b3 100644 --- a/spec/frontend/jobs/components/log/log_spec.js +++ b/spec/frontend/jobs/components/log/log_spec.js @@ -68,7 +68,9 @@ describe('Job Log', () => { }); it('renders an icon with the open state', () => { - expect(findCollapsibleLine().find('[data-testid="angle-down-icon"]').exists()).toBe(true); + expect(findCollapsibleLine().find('[data-testid="chevron-lg-down-icon"]').exists()).toBe( + true, + ); }); describe('on click header section', () => { @@ -146,7 +148,9 @@ describe('Job Log, infinitelyCollapsibleSections feature flag enabled', () => { }); it('renders an icon with the open state', () => { - expect(findCollapsibleLine().find('[data-testid="angle-down-icon"]').exists()).toBe(true); + expect(findCollapsibleLine().find('[data-testid="chevron-lg-down-icon"]').exists()).toBe( + true, + ); }); describe('on click header section', () => { |