Skip to content

Commit ccc13e7

Browse files
chore(dialog): add missing hasHeroImage args for tests
1 parent ddb7714 commit ccc13e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/dialog/stories/dialog.test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { Template } from "./template.js";
44
export const DialogGroup = Variants({
55
Template: (args, context) => (
66
/*
7-
* This template forces each test case to showModal: false, and give a background
7+
* This template forces each test case to showModal: false, and give a background
88
* color to the dialog grid container when isChromatic() is true.
99
* This should ensure that the Sizes within the Variants() template to display correctly.
1010
*/
1111

1212
Template({
1313
...args,
1414
showModal: window.isChromatic() ? false : args.showModal,
15-
// TODO: The dialog's heading arg is getting passed as the "Sizing" heading arg (instead of the
15+
// TODO: The dialog's heading arg is getting passed as the "Sizing" heading arg (instead of the
1616
// TODO: word "Sizing"). We should be able to remove this arg once that no longers happens.
1717
heading: window.isChromatic() ? "Lorem ipsum dolor sit amet, consectetur adipiscing elit" : args.heading,
1818
customStyles: {
@@ -37,13 +37,15 @@ export const DialogGroup = Variants({
3737
},
3838
{
3939
testHeading: "With hero/cover image",
40+
hasHeroImage: true,
4041
heroImageUrl: "example-card-portrait.png",
4142
wrapperStyles: {
4243
"background-color": "var(--spectrum-gray-50)"
4344
},
4445
},
4546
{
4647
testHeading: "With hero/cover image, dismissible",
48+
hasHeroImage: true,
4749
heroImageUrl: "example-card-portrait.png",
4850
isDismissible: true,
4951
hasFooter: false,

0 commit comments

Comments
 (0)