Commit 0f1bf3b8 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'mw-replace-fa-in-fixtures' into 'master'

Replace fa- classes in fixtures

See merge request gitlab-org/gitlab!51312
parents 787d2e97 5b659145
...@@ -7,21 +7,26 @@ ...@@ -7,21 +7,26 @@
data-toggle="dropdown" data-toggle="dropdown"
> >
<span class="dropdown-toggle-text ">some label</span <span class="dropdown-toggle-text ">some label</span
><i aria-hidden="true" data-hidden="true" class="fa fa-chevron-down"></i> >
<svg data-testid="chevron-down-icon" class="gl-icon s16">
<use
href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#chevron-down"
></use>
</svg>
</button> </button>
<div class="dropdown-menu dropdown-select dropdown-menu-selectable"> <div class="dropdown-menu dropdown-select dropdown-menu-selectable">
<div class="dropdown-input"> <div class="dropdown-input">
<input type="search" id="" class="dropdown-input-field" autocomplete="off" /><i <input type="search" id="" class="dropdown-input-field" autocomplete="off" />
aria-hidden="true" <svg data-testid="search-icon" class="gl-icon s16 dropdown-input-search">
data-hidden="true" <use
class="fa fa-search dropdown-input-search" href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#search"
></i ></use>
><i </svg>
aria-hidden="true" <svg data-testid="close-icon" class="gl-icon s16 dropdown-input-clear js-dropdown-input-clear">
data-hidden="true" <use
role="button" href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#close"
class="fa fa-times dropdown-input-clear js-dropdown-input-clear" ></use>
></i> </svg>
</div> </div>
<div class="dropdown-content js-dropdown-content"></div> <div class="dropdown-content js-dropdown-content"></div>
<div class="dropdown-footer"> <div class="dropdown-footer">
......
...@@ -9,7 +9,11 @@ ...@@ -9,7 +9,11 @@
<div class="dropdown-toggle-text"> <div class="dropdown-toggle-text">
Projects Projects
</div> </div>
<i class="fa fa-chevron-down dropdown-toggle-caret js-projects-dropdown-toggle"></i> <svg data-testid="chevron-down-icon" class="gl-icon s16 dropdown-toggle-caret js-projects-dropdown-toggle">
<use
href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#chevron-down"
></use>
</svg>
</button> </button>
<div class="dropdown-menu dropdown-select dropdown-menu-selectable"> <div class="dropdown-menu dropdown-select dropdown-menu-selectable">
<div class="dropdown-title gl-display-flex gl-align-items-center"> <div class="dropdown-title gl-display-flex gl-align-items-center">
...@@ -28,7 +32,11 @@ ...@@ -28,7 +32,11 @@
</div> </div>
<div class="dropdown-input"> <div class="dropdown-input">
<input class="dropdown-input-field" placeholder="Filter results" type="search" /> <input class="dropdown-input-field" placeholder="Filter results" type="search" />
<i class="fa fa-search dropdown-input-search"></i> <svg data-testid="search-icon" class="gl-icon s16 dropdown-input-search">
<use
href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#search"
></use>
</svg>
</div> </div>
<div class="dropdown-content"></div> <div class="dropdown-content"></div>
<div class="dropdown-loading"> <div class="dropdown-loading">
......
...@@ -2,103 +2,153 @@ ...@@ -2,103 +2,153 @@
<div class="file-content"> <div class="file-content">
<div class="line-numbers"> <div class="line-numbers">
<a data-line-number="1" href="#L1" id="L1"> <a data-line-number="1" href="#L1" id="L1">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
1 1
</a> </a>
<a data-line-number="2" href="#L2" id="L2"> <a data-line-number="2" href="#L2" id="L2">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
2 2
</a> </a>
<a data-line-number="3" href="#L3" id="L3"> <a data-line-number="3" href="#L3" id="L3">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
3 3
</a> </a>
<a data-line-number="4" href="#L4" id="L4"> <a data-line-number="4" href="#L4" id="L4">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
4 4
</a> </a>
<a data-line-number="5" href="#L5" id="L5"> <a data-line-number="5" href="#L5" id="L5">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
5 5
</a> </a>
<a data-line-number="6" href="#L6" id="L6"> <a data-line-number="6" href="#L6" id="L6">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
6 6
</a> </a>
<a data-line-number="7" href="#L7" id="L7"> <a data-line-number="7" href="#L7" id="L7">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
7 7
</a> </a>
<a data-line-number="8" href="#L8" id="L8"> <a data-line-number="8" href="#L8" id="L8">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
8 8
</a> </a>
<a data-line-number="9" href="#L9" id="L9"> <a data-line-number="9" href="#L9" id="L9">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
9 9
</a> </a>
<a data-line-number="10" href="#L10" id="L10"> <a data-line-number="10" href="#L10" id="L10">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
10 10
</a> </a>
<a data-line-number="11" href="#L11" id="L11"> <a data-line-number="11" href="#L11" id="L11">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
11 11
</a> </a>
<a data-line-number="12" href="#L12" id="L12"> <a data-line-number="12" href="#L12" id="L12">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
12 12
</a> </a>
<a data-line-number="13" href="#L13" id="L13"> <a data-line-number="13" href="#L13" id="L13">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
13 13
</a> </a>
<a data-line-number="14" href="#L14" id="L14"> <a data-line-number="14" href="#L14" id="L14">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
14 14
</a> </a>
<a data-line-number="15" href="#L15" id="L15"> <a data-line-number="15" href="#L15" id="L15">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
15 15
</a> </a>
<a data-line-number="16" href="#L16" id="L16"> <a data-line-number="16" href="#L16" id="L16">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
16 16
</a> </a>
<a data-line-number="17" href="#L17" id="L17"> <a data-line-number="17" href="#L17" id="L17">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
17 17
</a> </a>
<a data-line-number="18" href="#L18" id="L18"> <a data-line-number="18" href="#L18" id="L18">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
18 18
</a> </a>
<a data-line-number="19" href="#L19" id="L19"> <a data-line-number="19" href="#L19" id="L19">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
19 19
</a> </a>
<a data-line-number="20" href="#L20" id="L20"> <a data-line-number="20" href="#L20" id="L20">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
20 20
</a> </a>
<a data-line-number="21" href="#L21" id="L21"> <a data-line-number="21" href="#L21" id="L21">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
21 21
</a> </a>
<a data-line-number="22" href="#L22" id="L22"> <a data-line-number="22" href="#L22" id="L22">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
22 22
</a> </a>
<a data-line-number="23" href="#L23" id="L23"> <a data-line-number="23" href="#L23" id="L23">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
23 23
</a> </a>
<a data-line-number="24" href="#L24" id="L24"> <a data-line-number="24" href="#L24" id="L24">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
24 24
</a> </a>
<a data-line-number="25" href="#L25" id="L25"> <a data-line-number="25" href="#L25" id="L25">
<i class="fa fa-link"></i> <svg data-testid="link-icon" class="s12">
<use href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#link"></use>
</svg>
25 25
</a> </a>
</div> </div>
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
<span class="gl-spinner"></span> <span class="gl-spinner"></span>
</a> </a>
<a class="new-project-item-select-button"> <a class="new-project-item-select-button">
<i class="fa fa-caret-down"></i> <svg data-testid="chevron-down-icon" class="gl-icon s16">
<use
href="/assets/icons-795a2ef2fd636a0538bbef3b8d2787dd90927b42d7617fdda8620930016b333d.svg#chevron-down"
></use>
</svg>
</a> </a>
</div> </div>
...@@ -89,7 +89,7 @@ describe('LineHighlighter', () => { ...@@ -89,7 +89,7 @@ describe('LineHighlighter', () => {
describe('clickHandler', () => { describe('clickHandler', () => {
it('handles clicking on a child icon element', () => { it('handles clicking on a child icon element', () => {
const spy = jest.spyOn(testContext.class, 'setHash'); const spy = jest.spyOn(testContext.class, 'setHash');
$('#L13 i').mousedown().click(); $('#L13 [data-testid="link-icon"]').mousedown().click();
expect(spy).toHaveBeenCalledWith(13); expect(spy).toHaveBeenCalledWith(13);
expect($('#LC13')).toHaveClass(testContext.css); expect($('#LC13')).toHaveClass(testContext.css);
......
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