Skip to content

Commit

Permalink
Update jest snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Mar 27, 2024
1 parent 7eadc03 commit 8a61bd7
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 142 deletions.
2 changes: 1 addition & 1 deletion internals/jest/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'react-app-polyfill/stable'
// react-testing-library renders your components to document.body,
// this adds jest-dom's custom assertions
import '@testing-library/jest-dom'
import 'jest-styled-components'
import 'jest-styled-components' // Snapshot serializer

// Init i18n for the tests needing it
import 'locales/i18n'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
flex-direction: column;
}
.c5 {
.c7 {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
Expand All @@ -42,7 +42,14 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
width: 12px;
}
.c6 {
.c5 {
font-size: 12px;
line-height: 18px;
color: #a3a3a3;
font-weight: 600;
}
.c8 {
display: inline-block;
box-sizing: border-box;
cursor: pointer;
Expand Down Expand Up @@ -71,48 +78,48 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
font-weight: bold;
}
.c6:hover {
.c8:hover {
box-shadow: 0px 0px 0px 2px #0092f6;
}
.c6:focus {
.c8:focus {
outline: none;
box-shadow: 0 0 2px 2px #6FFFB0;
}
.c6:focus > circle,
.c6:focus > ellipse,
.c6:focus > line,
.c6:focus > path,
.c6:focus > polygon,
.c6:focus > polyline,
.c6:focus > rect {
.c8:focus > circle,
.c8:focus > ellipse,
.c8:focus > line,
.c8:focus > path,
.c8:focus > polygon,
.c8:focus > polyline,
.c8:focus > rect {
outline: none;
box-shadow: 0 0 2px 2px #6FFFB0;
}
.c6:focus::-moz-focus-inner {
.c8:focus::-moz-focus-inner {
border: 0;
}
.c6:focus:not(:focus-visible) {
.c8:focus:not(:focus-visible) {
outline: none;
box-shadow: none;
}
.c6:focus:not(:focus-visible) > circle,.c6:focus:not(:focus-visible) > ellipse,
.c6:focus:not(:focus-visible) > line,.c6:focus:not(:focus-visible) > path,
.c6:focus:not(:focus-visible) > polygon,.c6:focus:not(:focus-visible) > polyline,
.c6:focus:not(:focus-visible) > rect {
.c8:focus:not(:focus-visible) > circle,.c8:focus:not(:focus-visible) > ellipse,
.c8:focus:not(:focus-visible) > line,.c8:focus:not(:focus-visible) > path,
.c8:focus:not(:focus-visible) > polygon,.c8:focus:not(:focus-visible) > polyline,
.c8:focus:not(:focus-visible) > rect {
outline: none;
box-shadow: none;
}
.c6:focus:not(:focus-visible)::-moz-focus-inner {
.c8:focus:not(:focus-visible)::-moz-focus-inner {
border: 0;
}
.c4 {
.c6 {
box-sizing: border-box;
font-size: inherit;
font-family: inherit;
Expand All @@ -126,51 +133,52 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
margin: 0;
border: 1px solid rgba(0,0,0,0.33);
border-radius: 4px;
padding-right: 48px;
}
.c4:focus {
.c6:focus {
outline: none;
box-shadow: 0 0 2px 2px #6FFFB0;
}
.c4:focus > circle,
.c4:focus > ellipse,
.c4:focus > line,
.c4:focus > path,
.c4:focus > polygon,
.c4:focus > polyline,
.c4:focus > rect {
.c6:focus > circle,
.c6:focus > ellipse,
.c6:focus > line,
.c6:focus > path,
.c6:focus > polygon,
.c6:focus > polyline,
.c6:focus > rect {
outline: none;
box-shadow: 0 0 2px 2px #6FFFB0;
}
.c4:focus::-moz-focus-inner {
.c6:focus::-moz-focus-inner {
border: 0;
}
.c4::-webkit-input-placeholder {
.c6::-webkit-input-placeholder {
color: #AAAAAA;
}
.c4::-moz-placeholder {
.c6::-moz-placeholder {
color: #AAAAAA;
}
.c4:-ms-input-placeholder {
.c6:-ms-input-placeholder {
color: #AAAAAA;
}
.c4::-webkit-search-decoration {
.c6::-webkit-search-decoration {
-webkit-appearance: none;
}
.c4::-moz-focus-inner {
.c6::-moz-focus-inner {
border: none;
outline: none;
}
.c4:-moz-placeholder,
.c4::-moz-placeholder {
.c6:-moz-placeholder,
.c6::-moz-placeholder {
opacity: 1;
}
Expand All @@ -179,6 +187,24 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
width: 100%;
}
.c4 {
position: absolute;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-packjustify: center;
-webkit-justify: center;
-ms-flex-packjustify: center;
justify: center;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
pointer-events: none;
right: 12px;
}
.c0 {
font-family: Rubik,sans-serif;
font-size: 18px;
Expand All @@ -199,7 +225,7 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
}
@media only screen and (max-width:768px) {
.c5 {
.c7 {
width: 6px;
}
}
Expand All @@ -218,9 +244,16 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
<div
class="c3"
>
<div
class="c4"
>
<span
class="c5"
/>
</div>
<input
autocomplete="off"
class="c4"
class="c6"
data-testid="amount"
id="amount-id"
min="0"
Expand All @@ -234,10 +267,10 @@ exports[`<AddEscrowForm /> should match snapshot 1`] = `
</div>
</div>
<div
class="c5"
class="c7"
/>
<button
class="c6"
class="c8"
type="submit"
>
account.addEscrow.delegate
Expand Down
Loading

0 comments on commit 8a61bd7

Please sign in to comment.