Merge pull request #15892 from strapi/fix/front-unit-tests

This commit is contained in:
Josh 2023-02-23 09:41:18 +00:00 committed by GitHub
commit 85ff7d107f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 195 additions and 0 deletions

View File

@ -455,6 +455,35 @@ exports[`<AttributeOptions /> renders and matches the snapshot 1`] = `
<div
class="c20"
>
<div
aria-hidden="true"
class="c21 c22"
>
<svg
class=""
fill="none"
height="1em"
viewBox="0 0 32 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#EAF5FF"
height="23"
rx="2.5"
stroke="#B8E1FF"
width="31"
x="0.5"
y="0.5"
/>
<path
clip-rule="evenodd"
d="M19.286 9.286v-.857a.397.397 0 00-.138-.302A.465.465 0 0018.82 8h-8.357a.465.465 0 00-.326.127.397.397 0 00-.138.302v.857c0 .116.046.216.138.301.092.085.2.127.326.127h8.357a.465.465 0 00.327-.127.397.397 0 00.138-.301zm2.785 2.713v.857a.397.397 0 01-.137.301.465.465 0 01-.327.128H10.464a.465.465 0 01-.326-.128.397.397 0 01-.138-.301v-.857c0-.116.046-.217.138-.302a.465.465 0 01.326-.127h11.143c.126 0 .235.043.327.127a.397.397 0 01.137.302zm-1.857 3.574v.857a.397.397 0 01-.137.302.465.465 0 01-.327.127h-9.286a.465.465 0 01-.326-.127.397.397 0 01-.138-.302v-.857c0-.116.046-.216.138-.301a.465.465 0 01.326-.127h9.286c.126 0 .235.042.326.127a.397.397 0 01.138.301z"
fill="#0C75AF"
fill-rule="evenodd"
/>
</svg>
</div>
<div
class="c23"
>
@ -568,6 +597,33 @@ exports[`<AttributeOptions /> renders and matches the snapshot 1`] = `
<div
class="c20"
>
<div
aria-hidden="true"
class="c21 c22"
>
<svg
class=""
fill="none"
height="1em"
viewBox="0 0 32 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#FCECEA"
height="23"
rx="2.5"
stroke="#F5C0B8"
width="31"
x="0.5"
y="0.5"
/>
<path
d="M9.815 16h1.475V8.954H9.82L8 10.22v1.328l1.729-1.201h.087V16zm3.394 0h5.083v-1.187h-3.106v-.112l1.304-1.216c1.284-1.186 1.7-1.85 1.7-2.651v-.015c0-1.215-1.016-2.046-2.466-2.046-1.543 0-2.598.928-2.598 2.28l.005.02h1.362v-.024c0-.67.474-1.128 1.162-1.128.674 0 1.084.42 1.084 1.02v.015c0 .493-.268.85-1.26 1.812l-2.27 2.24V16zm9.067.156c1.646 0 2.744-.864 2.744-2.143v-.01c0-.957-.683-1.563-1.733-1.66v-.03c.825-.17 1.47-.742 1.47-1.62v-.01c0-1.123-.977-1.885-2.49-1.885-1.48 0-2.471.82-2.574 2.08l-.005.059h1.358l.005-.044c.058-.586.522-.962 1.216-.962.693 0 1.098.361 1.098.947v.01c0 .571-.478.962-1.22.962h-.787v1.05h.806c.855 0 1.357.37 1.357 1.044v.01c0 .596-.493 1.016-1.245 1.016-.761 0-1.264-.39-1.328-.938l-.005-.053h-1.41l.004.063c.098 1.26 1.148 2.114 2.74 2.114z"
fill="#D02B20"
/>
</svg>
</div>
<div
class="c23"
>

View File

@ -4115,6 +4115,33 @@ exports[`<ListView /> renders and matches the snapshot 1`] = `
<div
class="c0 c30 c8 c31"
>
<div
aria-hidden="true"
class="c0 c32 c33"
>
<svg
class="c0 "
fill="none"
height="1em"
viewBox="0 0 32 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#FCECEA"
height="23"
rx="2.5"
stroke="#F5C0B8"
width="31"
x="0.5"
y="0.5"
/>
<path
d="M9.815 16h1.475V8.954H9.82L8 10.22v1.328l1.729-1.201h.087V16zm3.394 0h5.083v-1.187h-3.106v-.112l1.304-1.216c1.284-1.186 1.7-1.85 1.7-2.651v-.015c0-1.215-1.016-2.046-2.466-2.046-1.543 0-2.598.928-2.598 2.28l.005.02h1.362v-.024c0-.67.474-1.128 1.162-1.128.674 0 1.084.42 1.084 1.02v.015c0 .493-.268.85-1.26 1.812l-2.27 2.24V16zm9.067.156c1.646 0 2.744-.864 2.744-2.143v-.01c0-.957-.683-1.563-1.733-1.66v-.03c.825-.17 1.47-.742 1.47-1.62v-.01c0-1.123-.977-1.885-2.49-1.885-1.48 0-2.471.82-2.574 2.08l-.005.059h1.358l.005-.044c.058-.586.522-.962 1.216-.962.693 0 1.098.361 1.098.947v.01c0 .571-.478.962-1.22.962h-.787v1.05h.806c.855 0 1.357.37 1.357 1.044v.01c0 .596-.493 1.016-1.245 1.016-.761 0-1.264-.39-1.328-.938l-.005-.053h-1.41l.004.063c.098 1.26 1.148 2.114 2.74 2.114z"
fill="#D02B20"
/>
</svg>
</div>
<span
class="c9 c34"
>
@ -4584,6 +4611,33 @@ exports[`<ListView /> renders and matches the snapshot 1`] = `
<div
class="c0 c30 c8 c31"
>
<div
aria-hidden="true"
class="c0 c32 c33"
>
<svg
class="c0 "
fill="none"
height="1em"
viewBox="0 0 32 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#FCECEA"
height="23"
rx="2.5"
stroke="#F5C0B8"
width="31"
x="0.5"
y="0.5"
/>
<path
d="M9.815 16h1.475V8.954H9.82L8 10.22v1.328l1.729-1.201h.087V16zm3.394 0h5.083v-1.187h-3.106v-.112l1.304-1.216c1.284-1.186 1.7-1.85 1.7-2.651v-.015c0-1.215-1.016-2.046-2.466-2.046-1.543 0-2.598.928-2.598 2.28l.005.02h1.362v-.024c0-.67.474-1.128 1.162-1.128.674 0 1.084.42 1.084 1.02v.015c0 .493-.268.85-1.26 1.812l-2.27 2.24V16zm9.067.156c1.646 0 2.744-.864 2.744-2.143v-.01c0-.957-.683-1.563-1.733-1.66v-.03c.825-.17 1.47-.742 1.47-1.62v-.01c0-1.123-.977-1.885-2.49-1.885-1.48 0-2.471.82-2.574 2.08l-.005.059h1.358l.005-.044c.058-.586.522-.962 1.216-.962.693 0 1.098.361 1.098.947v.01c0 .571-.478.962-1.22.962h-.787v1.05h.806c.855 0 1.357.37 1.357 1.044v.01c0 .596-.493 1.016-1.245 1.016-.761 0-1.264-.39-1.328-.938l-.005-.053h-1.41l.004.063c.098 1.26 1.148 2.114 2.74 2.114z"
fill="#D02B20"
/>
</svg>
</div>
<span
class="c9 c34"
>
@ -4847,6 +4901,35 @@ exports[`<ListView /> renders and matches the snapshot 1`] = `
<div
class="c0 c30 c8 c31"
>
<div
aria-hidden="true"
class="c0 c32 c33"
>
<svg
class="c0 "
fill="none"
height="1em"
viewBox="0 0 32 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#EAF5FF"
height="23"
rx="2.5"
stroke="#B8E1FF"
width="31"
x="0.5"
y="0.5"
/>
<path
clip-rule="evenodd"
d="M19.286 9.286v-.857a.397.397 0 00-.138-.302A.465.465 0 0018.82 8h-8.357a.465.465 0 00-.326.127.397.397 0 00-.138.302v.857c0 .116.046.216.138.301.092.085.2.127.326.127h8.357a.465.465 0 00.327-.127.397.397 0 00.138-.301zm2.785 2.713v.857a.397.397 0 01-.137.301.465.465 0 01-.327.128H10.464a.465.465 0 01-.326-.128.397.397 0 01-.138-.301v-.857c0-.116.046-.217.138-.302a.465.465 0 01.326-.127h11.143c.126 0 .235.043.327.127a.397.397 0 01.137.302zm-1.857 3.574v.857a.397.397 0 01-.137.302.465.465 0 01-.327.127h-9.286a.465.465 0 01-.326-.127.397.397 0 01-.138-.302v-.857c0-.116.046-.216.138-.301a.465.465 0 01.326-.127h9.286c.126 0 .235.042.326.127a.397.397 0 01.138.301z"
fill="#0C75AF"
fill-rule="evenodd"
/>
</svg>
</div>
<span
class="c9 c34"
>
@ -5917,6 +6000,33 @@ exports[`<ListView /> renders and matches the snapshot 1`] = `
<div
class="c0 c30 c8 c31"
>
<div
aria-hidden="true"
class="c0 c32 c33"
>
<svg
class="c0 "
fill="none"
height="1em"
viewBox="0 0 32 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#FCECEA"
height="23"
rx="2.5"
stroke="#F5C0B8"
width="31"
x="0.5"
y="0.5"
/>
<path
d="M9.815 16h1.475V8.954H9.82L8 10.22v1.328l1.729-1.201h.087V16zm3.394 0h5.083v-1.187h-3.106v-.112l1.304-1.216c1.284-1.186 1.7-1.85 1.7-2.651v-.015c0-1.215-1.016-2.046-2.466-2.046-1.543 0-2.598.928-2.598 2.28l.005.02h1.362v-.024c0-.67.474-1.128 1.162-1.128.674 0 1.084.42 1.084 1.02v.015c0 .493-.268.85-1.26 1.812l-2.27 2.24V16zm9.067.156c1.646 0 2.744-.864 2.744-2.143v-.01c0-.957-.683-1.563-1.733-1.66v-.03c.825-.17 1.47-.742 1.47-1.62v-.01c0-1.123-.977-1.885-2.49-1.885-1.48 0-2.471.82-2.574 2.08l-.005.059h1.358l.005-.044c.058-.586.522-.962 1.216-.962.693 0 1.098.361 1.098.947v.01c0 .571-.478.962-1.22.962h-.787v1.05h.806c.855 0 1.357.37 1.357 1.044v.01c0 .596-.493 1.016-1.245 1.016-.761 0-1.264-.39-1.328-.938l-.005-.053h-1.41l.004.063c.098 1.26 1.148 2.114 2.74 2.114z"
fill="#D02B20"
/>
</svg>
</div>
<span
class="c9 c34"
>
@ -6180,6 +6290,35 @@ exports[`<ListView /> renders and matches the snapshot 1`] = `
<div
class="c0 c30 c8 c31"
>
<div
aria-hidden="true"
class="c0 c32 c33"
>
<svg
class="c0 "
fill="none"
height="1em"
viewBox="0 0 32 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#EAF5FF"
height="23"
rx="2.5"
stroke="#B8E1FF"
width="31"
x="0.5"
y="0.5"
/>
<path
clip-rule="evenodd"
d="M19.286 9.286v-.857a.397.397 0 00-.138-.302A.465.465 0 0018.82 8h-8.357a.465.465 0 00-.326.127.397.397 0 00-.138.302v.857c0 .116.046.216.138.301.092.085.2.127.326.127h8.357a.465.465 0 00.327-.127.397.397 0 00.138-.301zm2.785 2.713v.857a.397.397 0 01-.137.301.465.465 0 01-.327.128H10.464a.465.465 0 01-.326-.128.397.397 0 01-.138-.301v-.857c0-.116.046-.217.138-.302a.465.465 0 01.326-.127h11.143c.126 0 .235.043.327.127a.397.397 0 01.137.302zm-1.857 3.574v.857a.397.397 0 01-.137.302.465.465 0 01-.327.127h-9.286a.465.465 0 01-.326-.127.397.397 0 01-.138-.302v-.857c0-.116.046-.216.138-.301a.465.465 0 01.326-.127h9.286c.126 0 .235.042.326.127a.397.397 0 01.138.301z"
fill="#0C75AF"
fill-rule="evenodd"
/>
</svg>
</div>
<span
class="c9 c34"
>