Commit c6f0389a authored by Florie Guibert's avatar Florie Guibert

Remove epic icons on Swimlanes

parent cec8e8a7
......@@ -56,15 +56,6 @@ export default {
chevronIcon() {
return this.isExpanded ? 'chevron-down' : 'chevron-right';
},
stateText() {
return this.isOpen ? __('Opened') : __('Closed');
},
epicIcon() {
return this.isOpen ? 'epic' : 'epic-closed';
},
stateIconClass() {
return this.isOpen ? 'gl-text-green-500' : 'gl-text-blue-500';
},
issuesCount() {
return this.lists.reduce(
(total, list) => total + this.getIssuesByEpic(list.id, this.epic.id).length,
......@@ -126,12 +117,6 @@ export default {
data-testid="epic-lane-chevron"
@click="toggleExpanded"
/>
<gl-icon
class="gl-mr-2 gl-flex-shrink-0"
:class="stateIconClass"
:name="epicIcon"
:aria-label="stateText"
/>
<h4
ref="epicTitle"
class="gl-mr-3 gl-font-weight-bold gl-font-base gl-white-space-nowrap gl-text-overflow-ellipsis gl-overflow-hidden"
......
......@@ -58,21 +58,12 @@ describe('EpicLane', () => {
createComponent();
});
it('icon aria label is Opened when epic is opened', () => {
expect(wrapper.find(GlIcon).attributes('aria-label')).toEqual('Opened');
});
it('icon aria label is Closed when epic is closed', () => {
createComponent({ props: { epic: { ...mockEpic, state: 'closed' } } });
expect(wrapper.find(GlIcon).attributes('aria-label')).toEqual('Closed');
});
it('displays count of issues in epic which belong to board', () => {
expect(findByTestId('epic-lane-issue-count').text()).toContain(2);
});
it('displays 2 icons', () => {
expect(wrapper.findAll(GlIcon)).toHaveLength(2);
it('displays 1 icon', () => {
expect(wrapper.findAll(GlIcon)).toHaveLength(1);
});
it('displays epic title', () => {
......
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