Skip to content

Commit bc16f20

Browse files
Update snapshots for jest tests on workbench (#740) (#761)
Signed-off-by: Joshua Li <[email protected]> (cherry picked from commit e6a5ac9) Co-authored-by: Joshua Li <[email protected]>
1 parent dabe1d7 commit bc16f20

File tree

3 files changed

+1578
-123
lines changed

3 files changed

+1578
-123
lines changed

workbench/public/components/Main/__snapshots__/main.test.tsx.snap

Lines changed: 94 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,20 @@ exports[`<Main /> spec click clear button 1`] = `
9999
<span
100100
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
101101
>
102-
EuiIconMock
102+
<svg
103+
aria-hidden="true"
104+
class="euiIcon euiIcon--medium euiIcon--inherit euiButtonContent__icon"
105+
focusable="false"
106+
height="16"
107+
role="img"
108+
viewBox="0 0 16 16"
109+
width="16"
110+
xmlns="http://www.w3.org/2000/svg"
111+
>
112+
<path
113+
d="M13 8.5a.5.5 0 111 0V12a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2h3.5a.5.5 0 010 1H4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8.5zm-5.12.339a.5.5 0 11-.706-.707L13.305 2H10.5a.5.5 0 110-1H14a1 1 0 011 1v3.5a.5.5 0 11-1 0V2.72L7.88 8.838z"
114+
/>
115+
</svg>
103116
<span
104117
class="euiButton__text"
105118
>
@@ -470,7 +483,20 @@ exports[`<Main /> spec click run button, and response causes an error 1`] = `
470483
<span
471484
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
472485
>
473-
EuiIconMock
486+
<svg
487+
aria-hidden="true"
488+
class="euiIcon euiIcon--medium euiIcon--inherit euiButtonContent__icon"
489+
focusable="false"
490+
height="16"
491+
role="img"
492+
viewBox="0 0 16 16"
493+
width="16"
494+
xmlns="http://www.w3.org/2000/svg"
495+
>
496+
<path
497+
d="M13 8.5a.5.5 0 111 0V12a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2h3.5a.5.5 0 010 1H4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8.5zm-5.12.339a.5.5 0 11-.706-.707L13.305 2H10.5a.5.5 0 110-1H14a1 1 0 011 1v3.5a.5.5 0 11-1 0V2.72L7.88 8.838z"
498+
/>
499+
</svg>
474500
<span
475501
class="euiButton__text"
476502
>
@@ -841,7 +867,20 @@ exports[`<Main /> spec click run button, and response is not ok 1`] = `
841867
<span
842868
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
843869
>
844-
EuiIconMock
870+
<svg
871+
aria-hidden="true"
872+
class="euiIcon euiIcon--medium euiIcon--inherit euiButtonContent__icon"
873+
focusable="false"
874+
height="16"
875+
role="img"
876+
viewBox="0 0 16 16"
877+
width="16"
878+
xmlns="http://www.w3.org/2000/svg"
879+
>
880+
<path
881+
d="M13 8.5a.5.5 0 111 0V12a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2h3.5a.5.5 0 010 1H4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8.5zm-5.12.339a.5.5 0 11-.706-.707L13.305 2H10.5a.5.5 0 110-1H14a1 1 0 011 1v3.5a.5.5 0 11-1 0V2.72L7.88 8.838z"
882+
/>
883+
</svg>
845884
<span
846885
class="euiButton__text"
847886
>
@@ -1212,7 +1251,20 @@ exports[`<Main /> spec click run button, and response is ok 1`] = `
12121251
<span
12131252
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
12141253
>
1215-
EuiIconMock
1254+
<svg
1255+
aria-hidden="true"
1256+
class="euiIcon euiIcon--medium euiIcon--inherit euiButtonContent__icon"
1257+
focusable="false"
1258+
height="16"
1259+
role="img"
1260+
viewBox="0 0 16 16"
1261+
width="16"
1262+
xmlns="http://www.w3.org/2000/svg"
1263+
>
1264+
<path
1265+
d="M13 8.5a.5.5 0 111 0V12a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2h3.5a.5.5 0 010 1H4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8.5zm-5.12.339a.5.5 0 11-.706-.707L13.305 2H10.5a.5.5 0 110-1H14a1 1 0 011 1v3.5a.5.5 0 11-1 0V2.72L7.88 8.838z"
1266+
/>
1267+
</svg>
12161268
<span
12171269
class="euiButton__text"
12181270
>
@@ -1583,7 +1635,20 @@ exports[`<Main /> spec click run button, response fills null and missing values
15831635
<span
15841636
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
15851637
>
1586-
EuiIconMock
1638+
<svg
1639+
aria-hidden="true"
1640+
class="euiIcon euiIcon--medium euiIcon--inherit euiButtonContent__icon"
1641+
focusable="false"
1642+
height="16"
1643+
role="img"
1644+
viewBox="0 0 16 16"
1645+
width="16"
1646+
xmlns="http://www.w3.org/2000/svg"
1647+
>
1648+
<path
1649+
d="M13 8.5a.5.5 0 111 0V12a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2h3.5a.5.5 0 010 1H4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8.5zm-5.12.339a.5.5 0 11-.706-.707L13.305 2H10.5a.5.5 0 110-1H14a1 1 0 011 1v3.5a.5.5 0 11-1 0V2.72L7.88 8.838z"
1650+
/>
1651+
</svg>
15871652
<span
15881653
class="euiButton__text"
15891654
>
@@ -1957,7 +2022,20 @@ exports[`<Main /> spec click translation button, and response is ok 1`] = `
19572022
<span
19582023
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
19592024
>
1960-
EuiIconMock
2025+
<svg
2026+
aria-hidden="true"
2027+
class="euiIcon euiIcon--medium euiIcon--inherit euiButtonContent__icon"
2028+
focusable="false"
2029+
height="16"
2030+
role="img"
2031+
viewBox="0 0 16 16"
2032+
width="16"
2033+
xmlns="http://www.w3.org/2000/svg"
2034+
>
2035+
<path
2036+
d="M13 8.5a.5.5 0 111 0V12a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2h3.5a.5.5 0 010 1H4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8.5zm-5.12.339a.5.5 0 11-.706-.707L13.305 2H10.5a.5.5 0 110-1H14a1 1 0 011 1v3.5a.5.5 0 11-1 0V2.72L7.88 8.838z"
2037+
/>
2038+
</svg>
19612039
<span
19622040
class="euiButton__text"
19632041
>
@@ -2328,7 +2406,16 @@ exports[`<Main /> spec renders the component 1`] = `
23282406
<span
23292407
class="euiButtonContent euiButtonContent--iconRight euiButton__content"
23302408
>
2331-
EuiIconMock
2409+
<svg
2410+
aria-hidden="true"
2411+
class="euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonContent__icon"
2412+
focusable="false"
2413+
height="16"
2414+
role="img"
2415+
viewBox="0 0 16 16"
2416+
width="16"
2417+
xmlns="http://www.w3.org/2000/svg"
2418+
/>
23322419
<span
23332420
class="euiButton__text"
23342421
>

0 commit comments

Comments
 (0)