Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update snapshots
Browse files Browse the repository at this point in the history
snitin315 committed Jul 31, 2023
1 parent 19e5146 commit 0f48cd6
Showing 3 changed files with 29 additions and 150 deletions.
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
exports[`<Tag /> should render tag 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
@@ -12,8 +12,8 @@ exports[`<Tag /> should render tag 1`] = `
data-blade-component="tag"
display="flex"
style={
Array [
Object {
[
{
"display": "flex",
},
]
@@ -28,8 +28,8 @@ exports[`<Tag /> should render tag 1`] = `
flexDirection="row"
flexWrap="nowrap"
style={
Array [
Object {
[
{
"alignSelf": "center",
"backgroundColor": "hsla(216, 15%, 54%, 0.18)",
"borderRadius": 9999,
@@ -41,7 +41,7 @@ exports[`<Tag /> should render tag 1`] = `
"paddingRight": 8,
"paddingTop": 4,
},
Object {},
{},
]
}
>
@@ -52,8 +52,8 @@ exports[`<Tag /> should render tag 1`] = `
flexDirection="row"
maxWidth="100px"
style={
Array [
Object {
[
{
"alignItems": "center",
"display": "flex",
"flexDirection": "row",
@@ -63,6 +63,7 @@ exports[`<Tag /> should render tag 1`] = `
}
>
<Text
accessible={true}
color="surface.text.subtle.lowContrast"
data-blade-component="text"
fontFamily="text"
@@ -73,8 +74,8 @@ exports[`<Tag /> should render tag 1`] = `
marginRight="spacing.2"
numberOfLines={1}
style={
Array [
Object {
[
{
"color": "hsla(216, 27%, 36%, 1)",
"fontFamily": "Lato",
"fontSize": 12,
@@ -104,8 +105,8 @@ exports[`<Tag /> should render tag 1`] = `
flexDirection="row"
justifyContent="center"
style={
Array [
Object {
[
{
"alignItems": "center",
"display": "flex",
"flexDirection": "row",
@@ -131,8 +132,8 @@ exports[`<Tag /> should render tag 1`] = `
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Array [
Object {
[
{
"alignSelf": "center",
},
]
@@ -152,15 +153,15 @@ exports[`<Tag /> should render tag 1`] = `
minX={0}
minY={0}
style={
Array [
Object {
[
{
"backgroundColor": "transparent",
"borderWidth": 0,
},
Array [
Object {},
[
{},
],
Object {
{
"flex": 0,
"height": 12,
"width": 12,
@@ -174,7 +175,7 @@ exports[`<Tag /> should render tag 1`] = `
<RNSVGGroup
fill={null}
propList={
Array [
[
"fill",
]
}
@@ -183,7 +184,7 @@ exports[`<Tag /> should render tag 1`] = `
d="M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"
fill={4288851646}
propList={
Array [
[
"fill",
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Tag /> should render tag 1`] = `"<div id=\\"root\\" data-reactroot=\\"\\"><div data-blade-component=\\"tag\\" class=\\"BaseBox-bmPWx bcSLaJ\\"><div data-blade-component=\\"base-box\\" class=\\"BaseBox-bmPWx Tag__FocussableTag-jmwb4r-0 iZePvJ\\"><div data-blade-component=\\"box\\" class=\\"BaseBox-bmPWx fdWAve\\"><p class=\\"StyledBaseText-dVBfTO kDKzNc\\" data-blade-component=\\"text\\">in:User</p></div><div data-blade-component=\\"box\\" class=\\"BaseBox-bmPWx fCLMvl\\"><button type=\\"button\\" aria-label=\\"Close in:User tag\\" data-blade-component=\\"icon-button\\" class=\\"StyledIconButtonweb__StyledButton-sc-1f4cg7d-0 gvuEeM\\"><svg aria-hidden=\\"true\\" data-blade-component=\\"icon\\" height=\\"12px\\" viewBox=\\"0 0 24 24\\" width=\\"12px\\" fill=\\"none\\" class=\\"Svgweb__StyledSvg-vcmjs8-0\\"><path d=\\"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z\\" fill=\\"currentColor\\" data-blade-component=\\"svg-path\\"></path></svg></button></div></div></div></div>"`;
exports[`<Tag /> should render tag 1`] = `"<div id="root" data-reactroot=""><div data-blade-component="tag" class="BaseBox-bmPWx bcSLaJ"><div data-blade-component="base-box" class="BaseBox-bmPWx Tag__FocussableTag-jmwb4r-0 iZePvJ"><div data-blade-component="box" class="BaseBox-bmPWx fdWAve"><p class="StyledBaseText-dVBfTO kDKzNc" data-blade-component="text">in:User</p></div><div data-blade-component="box" class="BaseBox-bmPWx fCLMvl"><button type="button" aria-label="Close in:User tag" data-blade-component="icon-button" class="StyledIconButtonweb__StyledButton-sc-1f4cg7d-0 gvuEeM"><svg aria-hidden="true" data-blade-component="icon" height="12px" viewBox="0 0 24 24" width="12px" fill="none" class="Svgweb__StyledSvg-vcmjs8-0"><path d="M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z" fill="currentColor" data-blade-component="svg-path"></path></svg></button></div></div></div></div>"`;

exports[`<Tag /> should render tag 2`] = `
<div
Original file line number Diff line number Diff line change
@@ -1,155 +1,33 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Tag /> should render tag 1`] = `
.c0 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
}
.c1 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
padding: 4px 8px 4px 12px;
background-color: hsla(216,15%,54%,0.18);
border-radius: 9999px;
}
.c2 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
max-width: 100px;
}
.c4 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.c5 {
border: none;
cursor: pointer;
padding: 0;
border-radius: 2px;
background: transparent;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
color: hsla(214,18%,69%,1);
-webkit-transition-property: color,box-shadow;
transition-property: color,box-shadow;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
-webkit-transition-timing-function: cubic-bezier(0.3,0,0.2,1);
transition-timing-function: cubic-bezier(0.3,0,0.2,1);
}
.c5:hover {
color: hsla(217,18%,45%,1);
}
.c5:focus {
outline: none;
box-shadow: 0px 0px 0px 4px hsla(218,89%,51%,0.18);
color: hsla(217,18%,45%,1);
}
.c5:active {
color: hsla(217,18%,45%,1);
}
.c3 {
color: hsla(216,27%,36%,1);
font-family: Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
font-size: 0.75rem;
font-weight: 400;
font-style: normal;
-webkit-text-decoration-line: none;
text-decoration-line: none;
line-height: 1rem;
margin: 0;
padding: 0;
overflow: hidden;
display: -webkit-box;
line-clamp: 1;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
margin-right: 4px;
}
@media screen and (min-width:768px) {
.c1 {
padding: 2px 4px 2px 8px;
}
}
<div>
<div
class="c0"
class="BaseBox-bmPWx bcSLaJ"
data-blade-component="tag"
>
<div
class="Tag__FocussableTag-jmwb4r-0 c1"
class="BaseBox-bmPWx Tag__FocussableTag-jmwb4r-0 iZePvJ"
data-blade-component="base-box"
>
<div
class="c2"
class="BaseBox-bmPWx fdWAve"
data-blade-component="box"
>
<p
class="c3"
class="StyledBaseText-dVBfTO kDKzNc"
data-blade-component="text"
>
in:User
</p>
</div>
<div
class="c4"
class="BaseBox-bmPWx fCLMvl"
data-blade-component="box"
>
<button
aria-label="Close in:User tag"
class="c5"
class="StyledIconButtonweb__StyledButton-sc-1f4cg7d-0 gvuEeM"
data-blade-component="icon-button"
type="button"
>

0 comments on commit 0f48cd6

Please sign in to comment.