Skip to content

Commit 6aae5c6

Browse files
committed
update snapshots
1 parent 80b2d64 commit 6aae5c6

4 files changed

+46
-6
lines changed

components/illustration/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Illustration.propTypes = {
131131
*/
132132
path: PropTypes.string,
133133
/**
134-
* Size of the illustration. _Tested with Mocha testing._
134+
* Size of the illustration. _Tested with snapshot testing._ _Tested with Mocha testing._
135135
*/
136136
size: PropTypes.oneOf(['small', 'large']),
137137
/**

tests/__snapshots__/story-based-tests.snapshot-test.js.snap

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,7 @@ exports[`DOM snapshots SLDSIllustration Heading Only 1`] = `
29292929
className="slds-p-around--medium"
29302930
>
29312931
<div
2932-
className="slds-illustration"
2932+
className="slds-illustration slds-illustration_small"
29332933
>
29342934
<div
29352935
className="slds-text-longform"
@@ -2949,7 +2949,7 @@ exports[`DOM snapshots SLDSIllustration Heading and Message 1`] = `
29492949
className="slds-p-around--medium"
29502950
>
29512951
<div
2952-
className="slds-illustration"
2952+
className="slds-illustration slds-illustration_small"
29532953
>
29542954
<div
29552955
className="slds-text-longform"
@@ -2969,17 +2969,22 @@ exports[`DOM snapshots SLDSIllustration Heading and Message 1`] = `
29692969
</div>
29702970
`;
29712971

2972-
exports[`DOM snapshots SLDSIllustration Image and Text 1`] = `
2972+
exports[`DOM snapshots SLDSIllustration Large Image and Text 1`] = `
29732973
<div
29742974
className="slds-p-around--medium"
29752975
>
29762976
<div
2977-
className="slds-illustration"
2977+
className="slds-illustration slds-illustration_large"
29782978
>
29792979
<svg
29802980
aria-hidden="true"
29812981
className="slds-illustration__svg"
29822982
name="no-access"
2983+
style={
2984+
Object {
2985+
"height": "400px",
2986+
}
2987+
}
29832988
>
29842989
<use
29852990
xlinkHref="/assets/images/illustrations/empty-state-no-access.svg#no-access"
@@ -3008,11 +3013,46 @@ exports[`DOM snapshots SLDSIllustration Message Only 1`] = `
30083013
className="slds-p-around--medium"
30093014
>
30103015
<div
3011-
className="slds-illustration"
3016+
className="slds-illustration slds-illustration_small"
3017+
>
3018+
<div
3019+
className="slds-text-longform"
3020+
>
3021+
<p
3022+
className="slds-text-body_regular"
3023+
>
3024+
Lorem ipsum dolor sit amet, consectetur
3025+
</p>
3026+
</div>
3027+
</div>
3028+
</div>
3029+
`;
3030+
3031+
exports[`DOM snapshots SLDSIllustration Small Image and Text 1`] = `
3032+
<div
3033+
className="slds-p-around--medium"
3034+
>
3035+
<div
3036+
className="slds-illustration slds-illustration_small"
30123037
>
3038+
<svg
3039+
aria-hidden="true"
3040+
className="slds-illustration__svg"
3041+
name="no-access"
3042+
style={Object {}}
3043+
>
3044+
<use
3045+
xlinkHref="/assets/images/illustrations/empty-state-no-access.svg#no-access"
3046+
/>
3047+
</svg>
30133048
<div
30143049
className="slds-text-longform"
30153050
>
3051+
<h3
3052+
className="slds-text-heading_medium"
3053+
>
3054+
Lorem ipsum dolor
3055+
</h3>
30163056
<p
30173057
className="slds-text-body_regular"
30183058
>

0 commit comments

Comments
 (0)