@windstream/react-shared-components 0.1.93 → 0.1.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/contentful/index.esm.js +2 -2
  2. package/dist/contentful/index.esm.js.map +1 -1
  3. package/dist/contentful/index.js +3 -3
  4. package/dist/contentful/index.js.map +1 -1
  5. package/dist/core.d.ts +2 -2
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.esm.js +1 -1
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +3 -3
  10. package/dist/index.js.map +1 -1
  11. package/dist/styles.css +1 -1
  12. package/dist/utils/index.esm.js +1 -1
  13. package/dist/utils/index.js +1 -1
  14. package/package.json +14 -8
  15. package/src/components/accordion/index.test.tsx +270 -0
  16. package/src/components/alert-card/index.test.tsx +152 -0
  17. package/src/components/animation-wrapper/index.test.tsx +424 -0
  18. package/src/components/brand-button/index.test.tsx +292 -0
  19. package/src/components/button/index.test.tsx +91 -0
  20. package/src/components/call-button/index.test.tsx +260 -0
  21. package/src/components/checkbox/index.test.tsx +252 -0
  22. package/src/components/checklist/index.test.tsx +231 -0
  23. package/src/components/checklist/index.tsx +64 -29
  24. package/src/components/checklist/types.ts +7 -1
  25. package/src/components/collapse/index.test.tsx +277 -0
  26. package/src/components/collapse/index.tsx +1 -0
  27. package/src/components/divider/index.test.tsx +53 -0
  28. package/src/components/image/index.test.tsx +174 -0
  29. package/src/components/input/index.test.tsx +348 -0
  30. package/src/components/link/index.test.tsx +199 -0
  31. package/src/components/list/index.test.tsx +166 -0
  32. package/src/components/material-icon/index.test.tsx +130 -0
  33. package/src/components/modal/index.test.tsx +310 -0
  34. package/src/components/next-image/index.test.tsx +406 -0
  35. package/src/components/pagination/index.test.tsx +521 -0
  36. package/src/components/radio-button/index.test.tsx +151 -0
  37. package/src/components/see-more/index.test.tsx +96 -0
  38. package/src/components/select/index.test.tsx +256 -0
  39. package/src/components/select-plan-button/index.test.tsx +173 -0
  40. package/src/components/skeleton/index.test.tsx +74 -0
  41. package/src/components/spinner/index.test.tsx +76 -0
  42. package/src/components/text/index.test.tsx +65 -0
  43. package/src/components/tooltip/index.test.tsx +50 -0
  44. package/src/components/view-cart-button/index.test.tsx +57 -0
  45. package/src/contentful/blocks/accordion/index.test.tsx +218 -0
  46. package/src/contentful/blocks/accordion/index.tsx +3 -1
  47. package/src/contentful/blocks/address-input-banner/index.test.tsx +132 -0
  48. package/src/contentful/blocks/anchored-bottom-banner/index.test.tsx +287 -0
  49. package/src/contentful/blocks/blogs-grid/BlogGrid.stories.tsx +5 -4
  50. package/src/contentful/blocks/blogs-grid/index.test.tsx +355 -0
  51. package/src/contentful/blocks/blogs-grid-base/index.test.tsx +274 -0
  52. package/src/contentful/blocks/breadcrumbs/index.test.tsx +281 -0
  53. package/src/contentful/blocks/button/index.test.tsx +339 -0
  54. package/src/contentful/blocks/callout/index.test.tsx +539 -0
  55. package/src/contentful/blocks/cards/blog-card/index.test.tsx +218 -0
  56. package/src/contentful/blocks/cards/floating-image-card/index.test.tsx +201 -0
  57. package/src/contentful/blocks/cards/full-image-card/index.test.tsx +216 -0
  58. package/src/contentful/blocks/cards/index.test.tsx +39 -0
  59. package/src/contentful/blocks/cards/product-card/index.test.tsx +263 -0
  60. package/src/contentful/blocks/cards/simple-card/index.test.tsx +364 -0
  61. package/src/contentful/blocks/cards/simple-card/index.tsx +1 -1
  62. package/src/contentful/blocks/cards/testimonial-card/index.test.tsx +180 -0
  63. package/src/contentful/blocks/carousel/helper.test.tsx +539 -0
  64. package/src/contentful/blocks/carousel/index.test.tsx +308 -0
  65. package/src/contentful/blocks/carousel/types.test.ts +16 -0
  66. package/src/contentful/blocks/cart-retention-banner/index.test.tsx +409 -0
  67. package/src/contentful/blocks/cart-retention-banner/index.tsx +4 -4
  68. package/src/contentful/blocks/comparison-table/index.test.tsx +114 -0
  69. package/src/contentful/blocks/cookiebanner/index.test.tsx +277 -0
  70. package/src/contentful/blocks/cta-callout/index.test.tsx +244 -0
  71. package/src/contentful/blocks/dynamic-tabs/index.test.tsx +240 -0
  72. package/src/contentful/blocks/email-input-block/index.test.tsx +213 -0
  73. package/src/contentful/blocks/email-input-block/index.tsx +40 -35
  74. package/src/contentful/blocks/find-kinetic/index.test.tsx +269 -0
  75. package/src/contentful/blocks/floating-banner/index.test.tsx +246 -0
  76. package/src/contentful/blocks/footer/index.test.tsx +302 -0
  77. package/src/contentful/blocks/image-promo-bar/helper.test.tsx +61 -0
  78. package/src/contentful/blocks/image-promo-bar/index.test.tsx +467 -0
  79. package/src/contentful/blocks/image-promo-bar/index.tsx +248 -246
  80. package/src/contentful/blocks/image-promo-bar/vimeo-embed.test.tsx +142 -0
  81. package/src/contentful/blocks/image-promo-bar/youtube-embed.test.tsx +104 -0
  82. package/src/contentful/blocks/modal/index.test.tsx +209 -0
  83. package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.test.tsx +208 -0
  84. package/src/contentful/blocks/navigation/index.test.tsx +924 -0
  85. package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.test.tsx +131 -0
  86. package/src/contentful/blocks/primary-hero/index.test.tsx +286 -0
  87. package/src/contentful/blocks/primary-hero/index.tsx +7 -4
  88. package/src/contentful/blocks/search-block/index.test.tsx +268 -0
  89. package/src/contentful/blocks/shape-background-wrapper/index.test.tsx +284 -0
  90. package/src/contentful/blocks/text/index.test.tsx +36 -0
  91. package/src/contentful/index.test.ts +45 -0
  92. package/src/global-mocks/contentful/to-document.ts +25 -0
  93. package/src/global-mocks/cookie.ts +48 -0
  94. package/src/global-mocks/cx.ts +37 -0
  95. package/src/global-mocks/index.ts +89 -0
  96. package/src/global-mocks/speed-card-bg.ts +27 -0
  97. package/src/global-mocks/utm.ts +49 -0
  98. package/src/hooks/contentful/use-contentful-rich-text.test.tsx +1758 -0
  99. package/src/hooks/contentful/use-contentful-rich-text.tsx +1 -1
  100. package/src/hooks/contentful/use-processed-check-list.test.tsx +277 -0
  101. package/src/hooks/use-body-scroll-lock.test.ts +134 -0
  102. package/src/hooks/use-carousel-swipe.test.ts +393 -0
  103. package/src/hooks/use-outside-click.test.ts +142 -0
  104. package/src/index.ts +1 -1
  105. package/src/next/index.test.ts +7 -0
  106. package/src/setupTests.ts +17 -11
  107. package/src/utils/contentful/to-document.test.ts +85 -0
  108. package/src/utils/cookie.test.ts +180 -0
  109. package/src/utils/cx.test.ts +90 -0
  110. package/src/utils/index.test.ts +115 -0
  111. package/src/utils/speed-card-bg.test.ts +46 -0
  112. package/src/utils/utm.test.ts +359 -0
@@ -0,0 +1,131 @@
1
+ import React from "react";
2
+ import { MobileLinkGroups } from "./index";
3
+
4
+ import { fireEvent, render, screen } from "@testing-library/react";
5
+
6
+ jest.mock("@shared/components/material-icon", () => ({
7
+ MaterialIcon: ({ name, className }: any) => (
8
+ <span data-testid={`icon-${name}`} className={className}>
9
+ {name}
10
+ </span>
11
+ ),
12
+ }));
13
+
14
+ jest.mock("@shared/contentful/blocks/button", () => ({
15
+ Button: ({
16
+ children,
17
+ buttonClassName,
18
+ onClick,
19
+ linkClassName,
20
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
21
+ linkVariant,
22
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
23
+ showButtonAs,
24
+ ...rest
25
+ }: any) => (
26
+ <button
27
+ data-testid="button"
28
+ className={buttonClassName || linkClassName}
29
+ onClick={onClick}
30
+ aria-expanded={rest["aria-expanded"]}
31
+ >
32
+ {children || rest.buttonLabel}
33
+ </button>
34
+ ),
35
+ }));
36
+
37
+ describe("MobileLinkGroups", () => {
38
+ it("renders nothing when link is undefined", () => {
39
+ const { container } = render(<MobileLinkGroups link={undefined} />);
40
+ expect(container.innerHTML).toBe("");
41
+ });
42
+
43
+ it("renders single Button when link has href (isButton)", () => {
44
+ const link = { href: "/shop", buttonLabel: "Shop", anchorId: "shop1" };
45
+ render(<MobileLinkGroups link={link as any} />);
46
+ expect(screen.getByTestId("button")).toHaveTextContent("Shop");
47
+ });
48
+
49
+ describe("Group rendering", () => {
50
+ const groupLink = {
51
+ anchorId: "grp-1",
52
+ title: "Services",
53
+ items: {
54
+ items: [
55
+ { buttonLabel: "Internet", href: "/internet", anchorId: "s1" },
56
+ { buttonLabel: "TV", href: "/tv", anchorId: "s2" },
57
+ ],
58
+ },
59
+ };
60
+
61
+ it("renders group title button", () => {
62
+ render(<MobileLinkGroups link={groupLink as any} />);
63
+ expect(screen.getByText("Services")).toBeInTheDocument();
64
+ });
65
+
66
+ it("renders down arrow icon when closed", () => {
67
+ render(<MobileLinkGroups link={groupLink as any} />);
68
+ expect(
69
+ screen.getByTestId("icon-keyboard_arrow_down")
70
+ ).toBeInTheDocument();
71
+ });
72
+
73
+ it("toggles open state and shows up arrow when open", () => {
74
+ render(<MobileLinkGroups link={groupLink as any} />);
75
+ const toggleBtn = screen.getAllByTestId("button")[0];
76
+ fireEvent.click(toggleBtn);
77
+ expect(screen.getByTestId("icon-keyboard_arrow_up")).toBeInTheDocument();
78
+ });
79
+
80
+ it("renders submenu items when open", () => {
81
+ render(<MobileLinkGroups link={groupLink as any} />);
82
+ fireEvent.click(screen.getAllByTestId("button")[0]);
83
+ expect(screen.getByText("Internet")).toBeInTheDocument();
84
+ expect(screen.getByText("TV")).toBeInTheDocument();
85
+ });
86
+
87
+ it("renders submenu as list items", () => {
88
+ render(<MobileLinkGroups link={groupLink as any} />);
89
+ fireEvent.click(screen.getAllByTestId("button")[0]);
90
+ const listItems = screen.getAllByRole("listitem");
91
+ expect(listItems).toHaveLength(2);
92
+ });
93
+
94
+ it("closes on second toggle click", () => {
95
+ render(<MobileLinkGroups link={groupLink as any} />);
96
+ const toggleBtn = screen.getAllByTestId("button")[0];
97
+ fireEvent.click(toggleBtn);
98
+ fireEvent.click(toggleBtn);
99
+ expect(
100
+ screen.getByTestId("icon-keyboard_arrow_down")
101
+ ).toBeInTheDocument();
102
+ });
103
+
104
+ it("does not render submenu when closed", () => {
105
+ render(<MobileLinkGroups link={groupLink as any} />);
106
+ expect(screen.queryByRole("list")).not.toBeInTheDocument();
107
+ });
108
+
109
+ it("handles null items", () => {
110
+ const nullItems = { ...groupLink, items: null };
111
+ render(<MobileLinkGroups link={nullItems as any} />);
112
+ fireEvent.click(screen.getAllByTestId("button")[0]);
113
+ // No list rendered since subMenu is empty
114
+ expect(screen.queryByRole("list")).not.toBeInTheDocument();
115
+ });
116
+
117
+ it("handles empty items array", () => {
118
+ const emptyItems = { ...groupLink, items: { items: [] } };
119
+ render(<MobileLinkGroups link={emptyItems as any} />);
120
+ fireEvent.click(screen.getAllByTestId("button")[0]);
121
+ expect(screen.queryByRole("list")).not.toBeInTheDocument();
122
+ });
123
+
124
+ it("renders null title when title is missing", () => {
125
+ const noTitle = { ...groupLink, title: null };
126
+ render(<MobileLinkGroups link={noTitle as any} />);
127
+ // Should render without error, button exists
128
+ expect(screen.getAllByTestId("button")[0]).toBeInTheDocument();
129
+ });
130
+ });
131
+ });
@@ -0,0 +1,286 @@
1
+ import React from "react";
2
+ import { PrimaryHero } from "./index";
3
+
4
+ import { render, screen } from "@testing-library/react";
5
+
6
+ jest.mock("@shared/components/checklist", () => ({
7
+ Checklist: ({ items }: any) => (
8
+ <ul data-testid="checklist">
9
+ {items?.map((i: string, idx: number) => (
10
+ <li key={idx}>{i}</li>
11
+ ))}
12
+ </ul>
13
+ ),
14
+ }));
15
+
16
+ jest.mock("@shared/components/next-image", () => ({
17
+ NextImage: ({ src, alt, className }: any) => (
18
+ <img data-testid="next-image" src={src} alt={alt} className={className} />
19
+ ),
20
+ }));
21
+
22
+ jest.mock("@shared/components/text", () => ({
23
+ Text: ({ as: Tag = "span", children, className }: any) => (
24
+ <Tag className={className}>{children}</Tag>
25
+ ),
26
+ }));
27
+
28
+ jest.mock("@shared/contentful/blocks/button", () => ({
29
+ Button: ({
30
+ children,
31
+ buttonLabel,
32
+ linkClassName,
33
+ buttonClassName,
34
+ ...rest
35
+ }: any) => (
36
+ <button data-testid="button" className={buttonClassName || linkClassName}>
37
+ {children || buttonLabel || rest.label}
38
+ </button>
39
+ ),
40
+ }));
41
+
42
+ jest.mock("@shared/utils", () => ({
43
+ cx: (...args: any[]) => args.filter(Boolean).join(" "),
44
+ }));
45
+
46
+ const baseProps = { title: "Fast Internet" };
47
+
48
+ describe("PrimaryHero", () => {
49
+ beforeEach(() => jest.clearAllMocks());
50
+
51
+ it("renders title as h2 by default", () => {
52
+ render(<PrimaryHero {...baseProps} />);
53
+ expect(screen.getByText("Fast Internet").tagName).toBe("H2");
54
+ });
55
+
56
+ it("renders title as h1 when showAsHeading is true", () => {
57
+ render(<PrimaryHero {...baseProps} showAsHeading={true} />);
58
+ expect(screen.getByText("Fast Internet").tagName).toBe("H1");
59
+ });
60
+
61
+ it("does not render title section when title is empty", () => {
62
+ render(<PrimaryHero {...baseProps} title="" />);
63
+ expect(screen.queryByRole("heading")).not.toBeInTheDocument();
64
+ });
65
+
66
+ it("renders subtitle when provided", () => {
67
+ render(<PrimaryHero {...baseProps} subTitle="Super fast speeds" />);
68
+ expect(screen.getByText("Super fast speeds")).toBeInTheDocument();
69
+ });
70
+
71
+ it("does not render subtitle when not provided", () => {
72
+ const { container } = render(<PrimaryHero {...baseProps} />);
73
+ expect(container.querySelectorAll("p.subheading3")).toHaveLength(0);
74
+ });
75
+
76
+ describe("Price section", () => {
77
+ it("renders price with dollar sign", () => {
78
+ render(<PrimaryHero {...baseProps} price="49.99" />);
79
+ expect(screen.getByText("$")).toBeInTheDocument();
80
+ expect(screen.getByText("49.99")).toBeInTheDocument();
81
+ });
82
+
83
+ it("renders priceSuffix when provided", () => {
84
+ render(<PrimaryHero {...baseProps} price="30" priceSuffix="/mo" />);
85
+ expect(screen.getByText("/mo")).toBeInTheDocument();
86
+ });
87
+
88
+ it("does not render priceSuffix when not provided", () => {
89
+ render(<PrimaryHero {...baseProps} price="30" />);
90
+ expect(screen.queryByText("/mo")).not.toBeInTheDocument();
91
+ });
92
+
93
+ it("renders priceCallout split by pipe", () => {
94
+ render(
95
+ <PrimaryHero
96
+ {...baseProps}
97
+ price="50"
98
+ priceCallout="Starting at|per month"
99
+ />
100
+ );
101
+ expect(screen.getByText("Starting at")).toBeInTheDocument();
102
+ expect(screen.getByText("per month")).toBeInTheDocument();
103
+ });
104
+
105
+ it("does not render priceCallout when not provided", () => {
106
+ render(<PrimaryHero {...baseProps} price="50" />);
107
+ expect(screen.queryByText("Starting at")).not.toBeInTheDocument();
108
+ });
109
+
110
+ it("does not render price section when price is not provided", () => {
111
+ render(<PrimaryHero {...baseProps} />);
112
+ expect(screen.queryByText("$")).not.toBeInTheDocument();
113
+ });
114
+ });
115
+
116
+ describe("Checklist", () => {
117
+ it("renders checklist when provided", () => {
118
+ const checklist = [{ title: "No data caps" }, { title: "Free install" }];
119
+ render(<PrimaryHero {...baseProps} checklist={checklist} />);
120
+ expect(screen.getByTestId("checklist")).toBeInTheDocument();
121
+ expect(screen.getByText("No data caps")).toBeInTheDocument();
122
+ expect(screen.getByText("Free install")).toBeInTheDocument();
123
+ });
124
+
125
+ it("does not render checklist when not provided", () => {
126
+ render(<PrimaryHero {...baseProps} />);
127
+ expect(screen.queryByTestId("checklist")).not.toBeInTheDocument();
128
+ });
129
+ });
130
+
131
+ describe("Primary CTA", () => {
132
+ it("renders primaryCta1 button", () => {
133
+ render(
134
+ <PrimaryHero
135
+ {...baseProps}
136
+ primaryCta1={{ buttonLabel: "Get Started", href: "/start" }}
137
+ />
138
+ );
139
+ expect(screen.getByText("Get Started")).toBeInTheDocument();
140
+ });
141
+
142
+ it("hides primaryCta1 on mobile when hideOnMobileCta1 is true", () => {
143
+ const { container } = render(
144
+ <PrimaryHero
145
+ {...baseProps}
146
+ primaryCta1={{ buttonLabel: "Go" }}
147
+ hideOnMobileCta1={true}
148
+ />
149
+ );
150
+ const ctaWrapper = container.querySelector(".hidden.md\\:block");
151
+ expect(ctaWrapper).toBeInTheDocument();
152
+ });
153
+
154
+ it("does not render primaryCta1 when not provided", () => {
155
+ render(<PrimaryHero {...baseProps} />);
156
+ expect(screen.queryByText("Get Started")).not.toBeInTheDocument();
157
+ });
158
+ });
159
+
160
+ describe("Secondary CTA", () => {
161
+ it("renders secondaryCtaPrefix and secondaryCta", () => {
162
+ render(
163
+ <PrimaryHero
164
+ {...baseProps}
165
+ secondaryCtaPrefix="Or"
166
+ secondaryCta={{ buttonLabel: "Call us" }}
167
+ />
168
+ );
169
+ expect(screen.getAllByText("Or").length).toBeGreaterThan(0);
170
+ expect(screen.getAllByText("Call us").length).toBeGreaterThan(0);
171
+ });
172
+
173
+ it("renders only secondaryCtaPrefix without secondaryCta", () => {
174
+ render(<PrimaryHero {...baseProps} secondaryCtaPrefix="Or" />);
175
+ expect(screen.getAllByText("Or").length).toBeGreaterThan(0);
176
+ });
177
+
178
+ it("renders only secondaryCta without prefix", () => {
179
+ render(
180
+ <PrimaryHero {...baseProps} secondaryCta={{ buttonLabel: "Call us" }} />
181
+ );
182
+ expect(screen.getAllByText("Call us").length).toBeGreaterThan(0);
183
+ });
184
+
185
+ it("does not render secondary section when neither provided", () => {
186
+ const { container } = render(<PrimaryHero {...baseProps} />);
187
+ expect(container.querySelectorAll(".md\\:flex")).toHaveLength(0);
188
+ });
189
+ });
190
+
191
+ describe("Bottom link", () => {
192
+ it("renders bottom link when buttonLabel and href exist", () => {
193
+ render(
194
+ <PrimaryHero
195
+ {...baseProps}
196
+ bottomLink={{ buttonLabel: "Learn more", href: "/learn" }}
197
+ />
198
+ );
199
+ expect(screen.getAllByText("Learn more").length).toBeGreaterThan(0);
200
+ });
201
+
202
+ it("renders bottom link when only href exists (label is from label prop)", () => {
203
+ render(
204
+ <PrimaryHero
205
+ {...baseProps}
206
+ bottomLink={{ label: "Details", href: "/details" }}
207
+ />
208
+ );
209
+ expect(screen.getAllByText("Details").length).toBeGreaterThan(0);
210
+ });
211
+
212
+ it("does not render bottom link when no label and no href", () => {
213
+ render(<PrimaryHero {...baseProps} bottomLink={{}} />);
214
+ // No button rendered for bottom link
215
+ expect(screen.queryAllByTestId("button")).toHaveLength(0);
216
+ });
217
+
218
+ it("does not render bottom link when bottomLink is undefined", () => {
219
+ render(<PrimaryHero {...baseProps} />);
220
+ expect(screen.queryByText("Learn more")).not.toBeInTheDocument();
221
+ });
222
+ });
223
+
224
+ describe("Pricing description disclaimer", () => {
225
+ it("renders pricingDescriptionDisclaimer (desktop and mobile)", () => {
226
+ render(
227
+ <PrimaryHero
228
+ {...baseProps}
229
+ pricingDescriptionDisclaimer="Taxes apply"
230
+ />
231
+ );
232
+ expect(screen.getAllByText("Taxes apply")).toHaveLength(2);
233
+ });
234
+
235
+ it("does not render disclaimer when not provided", () => {
236
+ render(<PrimaryHero {...baseProps} />);
237
+ expect(screen.queryByText("Taxes apply")).not.toBeInTheDocument();
238
+ });
239
+ });
240
+
241
+ describe("Images", () => {
242
+ it("renders carousel image (mobile and desktop)", () => {
243
+ render(
244
+ <PrimaryHero
245
+ {...baseProps}
246
+ carouselImages={["https://img.test/hero.jpg"]}
247
+ />
248
+ );
249
+ const imgs = screen.getAllByAltText("Hero");
250
+ expect(imgs).toHaveLength(2);
251
+ expect(imgs[0]).toHaveAttribute("src", "https://img.test/hero.jpg");
252
+ });
253
+
254
+ it("does not render carousel image when empty array", () => {
255
+ render(<PrimaryHero {...baseProps} carouselImages={[]} />);
256
+ expect(screen.queryByAltText("Hero")).not.toBeInTheDocument();
257
+ });
258
+
259
+ it("renders badge image (mobile and desktop)", () => {
260
+ render(
261
+ <PrimaryHero {...baseProps} badgeImage="https://img.test/badge.png" />
262
+ );
263
+ const badges = screen.getAllByAltText("Badge");
264
+ expect(badges).toHaveLength(2);
265
+ });
266
+
267
+ it("does not render badge image when not provided", () => {
268
+ render(<PrimaryHero {...baseProps} />);
269
+ expect(screen.queryByAltText("Badge")).not.toBeInTheDocument();
270
+ });
271
+ });
272
+
273
+ describe("renderCheckPlans", () => {
274
+ it("passes renderCheckPlans to Button", () => {
275
+ const renderFn = jest.fn();
276
+ render(
277
+ <PrimaryHero
278
+ {...baseProps}
279
+ primaryCta1={{ buttonLabel: "Go" }}
280
+ renderCheckPlans={renderFn}
281
+ />
282
+ );
283
+ expect(screen.getByText("Go")).toBeInTheDocument();
284
+ });
285
+ });
286
+ });
@@ -29,9 +29,8 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
29
29
  } = props;
30
30
 
31
31
  const bottomLinkLabel = bottomLink?.buttonLabel ?? bottomLink?.label;
32
- console.log(primaryCta1);
33
32
  return (
34
- <div className="component-container p-5 lg:h-[724px] lg:p-0">
33
+ <div className="component-container p-5 lg:flex lg:min-h-[724px] lg:items-center lg:p-0 lg:py-4">
35
34
  <div
36
35
  className={cx(
37
36
  "primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"
@@ -86,7 +85,11 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
86
85
  {checklist && (
87
86
  <Checklist
88
87
  listItemClassName="text-white text-left"
89
- items={checklist.map(item => item.title)}
88
+ items={checklist.map(item =>
89
+ item.iconUrl
90
+ ? { title: item.title, iconUrl: item.iconUrl }
91
+ : item.title
92
+ )}
90
93
  />
91
94
  )}
92
95
 
@@ -186,7 +189,7 @@ export const PrimaryHero: React.FC<PrimaryHeroProps> = props => {
186
189
  ) : null}
187
190
 
188
191
  {secondaryCtaPrefix || secondaryCta ? (
189
- <div className="flex md:hidden">
192
+ <div className="flex flex-wrap items-center text-white md:hidden">
190
193
  {secondaryCtaPrefix && (
191
194
  <Text as="span" className="body2 mr-1">
192
195
  {secondaryCtaPrefix}