Skip to content

Commit

Permalink
Remove most snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Jan 28, 2021
1 parent 28349c9 commit ba34af3
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 279 deletions.
213 changes: 0 additions & 213 deletions packages/components/src/text/next/test/__snapshots__/index.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,216 +97,3 @@ exports[`Text snapshot tests should render correctly 1`] = `
Some people are worth melting for.
</span>
`;

exports[`Text snapshot tests should render custom size 1`] = `
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
font-family: var(--wp-g2-font-family);
font-size: 13px;
font-size: var(--wp-g2-font-size);
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
margin: 0;
color: #1e1e1e;
color: var(--wp-g2-color-text);
line-height: 1.2;
line-height: var(--wp-g2-font-line-height-base);
font-size: calc(1.1538461538461537 * 13px);
font-size: calc(1.1538461538461537 * var(--wp-g2-font-size));
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
}
@media (prefers-reduced-motion) {
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
}
[data-system-ui-reduced-motion-mode="true"] .emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
<span
class="components-truncate wp-components-truncate components-text wp-components-text emotion-0"
data-g2-c16t="true"
data-g2-component="Text"
>
Some people are worth melting for.
</span>
`;

exports[`Text snapshot tests should render optimizeReadabilityFor 1`] = `
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
font-family: var(--wp-g2-font-family);
font-size: 13px;
font-size: var(--wp-g2-font-size);
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
margin: 0;
color: #1e1e1e;
color: var(--wp-g2-color-text);
line-height: 1.2;
line-height: var(--wp-g2-font-line-height-base);
font-size: calc(1 * 13px);
font-size: calc(1 * var(--wp-g2-font-size));
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
color: #ffffff;
color: var(--wp-g2-white);
}
@media (prefers-reduced-motion) {
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
}
[data-system-ui-reduced-motion-mode="true"] .emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
<span
class="components-truncate wp-components-truncate components-text wp-components-text emotion-0"
data-g2-c16t="true"
data-g2-component="Text"
>
Some people are worth melting for.
</span>
`;

exports[`Text snapshot tests should render size 1`] = `
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
font-family: var(--wp-g2-font-family);
font-size: 13px;
font-size: var(--wp-g2-font-size);
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
margin: 0;
color: #1e1e1e;
color: var(--wp-g2-color-text);
line-height: 1.2;
line-height: var(--wp-g2-font-line-height-base);
font-size: calc(1.5384615384615385 * 13px);
font-size: calc(1.5384615384615385 * var(--wp-g2-font-size));
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
}
@media (prefers-reduced-motion) {
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
}
[data-system-ui-reduced-motion-mode="true"] .emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
<span
class="components-truncate wp-components-truncate components-text wp-components-text emotion-0"
data-g2-c16t="true"
data-g2-component="Text"
>
Some people are worth melting for.
</span>
`;

exports[`Text snapshot tests should render truncate 1`] = `
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
font-family: var(--wp-g2-font-family);
font-size: 13px;
font-size: var(--wp-g2-font-size);
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
margin: 0;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #1e1e1e;
color: var(--wp-g2-color-text);
line-height: 1.2;
line-height: var(--wp-g2-font-line-height-base);
font-size: calc(1 * 13px);
font-size: calc(1 * var(--wp-g2-font-size));
font-weight: normal;
font-weight: var(--wp-g2-font-weight);
}
@media (prefers-reduced-motion) {
.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
}
[data-system-ui-reduced-motion-mode="true"] .emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0.emotion-0 {
-webkit-transition: none !important;
transition: none !important;
}
<span
class="components-truncate wp-components-truncate components-text wp-components-text emotion-0"
data-g2-c16t="true"
data-g2-component="Text"
>
Some people are worth melting for.
</span>
`;

exports[`Text snapshot tests should render variant 1`] = `
CSSStyleDeclaration {
"0": "box-sizing",
"1": "font-family",
"2": "font-weight",
"3": "margin",
"4": "line-height",
"5": "visibility",
"_importants": Object {
"box-sizing": "",
"color": "",
"font-family": "",
"font-size": "",
"font-weight": "",
"line-height": "",
"margin": "",
"visibility": undefined,
},
"_length": 6,
"_onChange": [Function],
"_values": Object {
"box-sizing": "border-box",
"font-family": "var(--wp-g2-font-family)",
"font-weight": "var(--wp-g2-font-weight)",
"line-height": "var(--wp-g2-font-line-height-base)",
"margin": "0px",
"margin-bottom": "0px",
"margin-left": "0px",
"margin-right": "0px",
"margin-top": "0px",
"visibility": "visible",
},
}
`;
Loading

0 comments on commit ba34af3

Please sign in to comment.