-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applied Gift Cards show current balance #2156
Changes from 2 commits
72fa9e1
bc3a447
f6a356a
e44bd2a
af7baf6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,52 @@ | |
exports[`it renders correctly when it has cards 1`] = ` | ||
<div> | ||
<div> | ||
<span> | ||
unit test code 1 | ||
</span> | ||
<div> | ||
<span> | ||
unit test code 1 | ||
</span> | ||
<span> | ||
Balance: | ||
<span> | ||
$ | ||
</span> | ||
<span> | ||
99 | ||
</span> | ||
<span> | ||
. | ||
</span> | ||
<span> | ||
00 | ||
</span> | ||
</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sirugh I think this |
||
</div> | ||
<button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
Remove | ||
</button> | ||
<span> | ||
unit test code 2 | ||
</span> | ||
<div> | ||
<span> | ||
unit test code 2 | ||
</span> | ||
<span> | ||
Balance: | ||
<span> | ||
$ | ||
</span> | ||
<span> | ||
99 | ||
</span> | ||
<span> | ||
. | ||
</span> | ||
<span> | ||
00 | ||
</span> | ||
</span> | ||
</div> | ||
<button | ||
disabled={false} | ||
onClick={[Function]} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
.card_info { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.balance { | ||
font-size: 0.875rem; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
|
||
.code { | ||
} | ||
|
||
.remove { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no balance in these snaps, not even a zero. Expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected because the value is rendered via the
Price
component, which gets mocked here to an empty<div />
(see next line).