@scrippsproduct/networks-ui-library 1.1.9 → 1.1.10-alpha.0
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.
- package/dist/{Form.module-Cd8qH2rj.mjs → Form.module-CarfWK5T.mjs} +1 -1
- package/dist/ResultsTable.module-wcNUQEKe.mjs +14 -0
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +8 -0
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/{chevron-left-DRvpaLmK.mjs → chevron-left-D0UjbrKw.mjs} +1 -1
- package/dist/{chevron-right-C8yCnmfx.mjs → chevron-right-0ZF3LruR.mjs} +1 -1
- package/dist/components/ActionButton/ActionButton.test.js +209 -0
- package/dist/components/AdBlock/AdBlock.test.js +286 -0
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.test.js +295 -0
- package/dist/components/AirDateFormatter/AirDateFormatter.test.js +192 -0
- package/dist/components/AnchorTag/AnchorTag.test.js +463 -0
- package/dist/components/BCVideoPlayer/BCVideoPlayer.test.js +295 -0
- package/dist/components/BasicGridModule/BasicGridModule.js +41 -37
- package/dist/components/BasicGridModule/BasicGridModule.test.js +227 -0
- package/dist/components/Button/Button.test.js +434 -0
- package/dist/components/Carousel/Carousel.js +2 -2
- package/dist/components/Carousel/Carousel.test.js +705 -0
- package/dist/components/CarouselSlide/CarouselSlide.test.js +378 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.test.js +294 -0
- package/dist/components/ChannelSearch/ChannelSearch.test.js +565 -0
- package/dist/components/ChoicesItem/ChoicesItem.test.js +428 -0
- package/dist/components/Concat/Concat.js +1 -1
- package/dist/components/Concat/Concat.test.js +115 -0
- package/dist/components/CtaBlock/CtaBlock.js +1 -1
- package/dist/components/CtaBlock/CtaBlock.test.js +226 -0
- package/dist/components/CustomDataList/CustomDataList.js +4 -4
- package/dist/components/CustomSelect/CustomSelect.js +86 -86
- package/dist/components/CustomSelect/CustomSelect.test.js +313 -0
- package/dist/components/DateNavigation/DateNavigation.js +10 -10
- package/dist/components/DateNavigation/DateNavigation.test.js +370 -0
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.test.js +288 -0
- package/dist/components/DrawerNavigation/DrawerNavigation.test.js +316 -0
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.test.js +337 -0
- package/dist/components/EqualSizeGrid/EqualSizeGrid.test.js +358 -0
- package/dist/components/ErrorHandler/ErrorHandler.js +2 -2
- package/dist/components/ErrorHandler/ErrorHandler.test.js +158 -0
- package/dist/components/FeaturedList/FeaturedList.test.js +353 -0
- package/dist/components/Figure/Figure.js +1 -1
- package/dist/components/Figure/Figure.test.js +198 -0
- package/dist/components/FindUs/FindUs.test.js +499 -0
- package/dist/components/FooterNavigation/FooterNavigation.test.js +310 -0
- package/dist/components/GenericList/GenericList.js +1 -1
- package/dist/components/GenericList/GenericList.test.js +288 -0
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.test.js +689 -0
- package/dist/components/GradientButton/GradientButton.d.ts +1 -1
- package/dist/components/GradientButton/GradientButton.js +33 -31
- package/dist/components/GradientButton/GradientButton.test.js +457 -0
- package/dist/components/GridList/GridList.test.js +371 -0
- package/dist/components/ImageCard/ImageCard.test.js +668 -0
- package/dist/components/ImageCard/ImageCardCore.js +28 -28
- package/dist/components/ImageCard/ImageCardCore.test.js +577 -0
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.test.js +379 -0
- package/dist/components/InfoPanel/InfoPanel.js +1 -1
- package/dist/components/InlineNavigation/InlineNavigation.test.js +149 -0
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.test.js +263 -0
- package/dist/components/InstructionsList/InstructionsList.js +11 -11
- package/dist/components/InstructionsList/InstructionsList.test.js +181 -0
- package/dist/components/LogoListItem/LogoListItem.test.js +303 -0
- package/dist/components/LogoNavigation/LogoNavigation.test.js +352 -0
- package/dist/components/ModalContainer/ModalContainer.js +2 -2
- package/dist/components/NavList/NavList.test.js +332 -0
- package/dist/components/Overlay/Overlay.js +24 -23
- package/dist/components/Overlay/Overlay.test.js +198 -0
- package/dist/components/PageHero/PageHero.test.js +241 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.test.js +414 -0
- package/dist/components/PromotionBlock/PromotionBlock.test.js +208 -0
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.test.js +221 -0
- package/dist/components/PromotionsRowModule/PromotionsRowModule.test.js +349 -0
- package/dist/components/RescanInstructions/RescanInstructions.test.js +218 -0
- package/dist/components/ResponsiveImage/ResponsiveImage.test.js +264 -0
- package/dist/components/ResultsTable/ResultsTable.js +9 -2
- package/dist/components/ResultsTable/ResultsTable.test.js +402 -0
- package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.test.js +445 -0
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +37 -15
- package/dist/components/ResultsTableHeader/ResultsTableHeader.test.js +275 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +654 -626
- package/dist/components/ScheduleLayout/ScheduleLayout.js +1 -1
- package/dist/components/ScheduleLayout/useScheduleContext.js +5 -10
- package/dist/components/ScheduleList/ScheduleList.js +1 -1
- package/dist/components/SectionedContent/SectionedContent.js +1 -1
- package/dist/components/SectionedContent/SectionedContent.test.js +341 -0
- package/dist/components/Select/Select.js +24 -24
- package/dist/components/Select/Select.test.js +367 -0
- package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.test.js +535 -0
- package/dist/components/ShowAboutLayout/ShowAboutLayout.test.js +570 -0
- package/dist/components/SocialLinks/SocialLinks.js +1 -1
- package/dist/components/StringList/StringList.js +1 -1
- package/dist/components/StringList/StringList.test.js +311 -0
- package/dist/components/TabContent/TabContent.js +1 -1
- package/dist/components/TabContent/TabContent.test.js +274 -0
- package/dist/components/TabNavigation/TabNavigation.js +21 -21
- package/dist/components/TabNavigation/TabNavigation.test.js +535 -0
- package/dist/components/TabbedContent/TabbedContent.test.js +654 -0
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/UpcomingList/UpcomingList.test.js +471 -0
- package/dist/{index-VjANCDXC.mjs → index-06PEPfBQ.mjs} +1 -1
- package/dist/index-BUN4jQ3m.mjs +3098 -0
- package/dist/index-BVxBrkZB.mjs +3 -0
- package/dist/{index-DC2JJV3a.mjs → index-D3kkcgee.mjs} +1 -1
- package/dist/{index-C-kn9Zhn.mjs → index-DzfYkULW.mjs} +2 -1
- package/dist/magic-string.es-uPKorP4O.mjs +663 -0
- package/dist/matchers-35e4d3bd-BBPNTlen.mjs +2404 -0
- package/dist/react.esm-DLSrfVwM.mjs +23410 -0
- package/dist/test/setupTests.d.ts +1 -0
- package/dist/test/setupTests.js +55 -0
- package/dist/{triangle-PcCcGXjr.mjs → triangle-C4z906Wf.mjs} +1 -1
- package/dist/useScheduleContext-D7FdzNxe.mjs +17 -0
- package/dist/utils/analytics.js +1 -1
- package/dist/utils/getOnNowProgram.js +10 -10
- package/dist/{x-C-QzJ-qD.mjs → x-Ck9Vk5Fo.mjs} +1 -1
- package/package.json +4 -1
- package/dist/ResultsTable.module-1zxhXaem.mjs +0 -14
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { v as y, d as u, b as k, a as C, i as l, r, g as t, s as c } from "../../react.esm-DLSrfVwM.mjs";
|
|
3
|
+
import { u as g } from "../../index-BUN4jQ3m.mjs";
|
|
4
|
+
import f from "react";
|
|
5
|
+
import { ImageCard as o } from "./ImageCard.js";
|
|
6
|
+
y.mock("../../utils/helpers", () => ({
|
|
7
|
+
classes: (m) => m.filter(Boolean).join(" ")
|
|
8
|
+
}));
|
|
9
|
+
y.mock("./ImageCard.module.scss", () => ({
|
|
10
|
+
default: {
|
|
11
|
+
"image-card--clickable": "image-card--clickable-module",
|
|
12
|
+
"image-card--inline": "image-card--inline-module"
|
|
13
|
+
}
|
|
14
|
+
}));
|
|
15
|
+
y.mock("./ImageCardCore", () => ({
|
|
16
|
+
default: f.forwardRef(
|
|
17
|
+
(m, i) => /* @__PURE__ */ a("div", { "data-props": JSON.stringify(m), "data-testid": "image-card-core", ref: i, children: "ImageCardCore" })
|
|
18
|
+
)
|
|
19
|
+
}));
|
|
20
|
+
u("ImageCard", () => {
|
|
21
|
+
const m = (e) => ({
|
|
22
|
+
url: "https://example.com/image.jpg",
|
|
23
|
+
altText: "Test image",
|
|
24
|
+
aspectRatio: 1.7777777777777777,
|
|
25
|
+
sources: [],
|
|
26
|
+
...e
|
|
27
|
+
}), i = (e) => ({
|
|
28
|
+
label: "Learn More",
|
|
29
|
+
href: "https://example.com",
|
|
30
|
+
type: "external-link",
|
|
31
|
+
relatedResourceId: "resource-123",
|
|
32
|
+
relatedResourceType: "article",
|
|
33
|
+
position: "end",
|
|
34
|
+
...e
|
|
35
|
+
});
|
|
36
|
+
k(() => {
|
|
37
|
+
y.clearAllMocks();
|
|
38
|
+
}), C(() => {
|
|
39
|
+
y.restoreAllMocks();
|
|
40
|
+
}), u("Basic Rendering", () => {
|
|
41
|
+
l("should render image-card element", () => {
|
|
42
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
43
|
+
const e = document.querySelector("image-card");
|
|
44
|
+
t(e).toBeInTheDocument();
|
|
45
|
+
}), l("should render ImageCardCore component", () => {
|
|
46
|
+
r(/* @__PURE__ */ a(o, {})), t(c.getByTestId("image-card-core")).toBeInTheDocument();
|
|
47
|
+
}), l("should pass all props to ImageCardCore", () => {
|
|
48
|
+
const e = m(), n = i({ type: "button" });
|
|
49
|
+
r(
|
|
50
|
+
/* @__PURE__ */ a(
|
|
51
|
+
o,
|
|
52
|
+
{
|
|
53
|
+
content: "Test Content",
|
|
54
|
+
cta: n,
|
|
55
|
+
image: e,
|
|
56
|
+
title: "Test Title"
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
);
|
|
60
|
+
const s = c.getByTestId("image-card-core"), d = JSON.parse(s.getAttribute("data-props") || "{}");
|
|
61
|
+
t(d.image).toEqual(e), t(d.cta).toEqual(n), t(d.title).toBe("Test Title"), t(d.content).toBe("Test Content");
|
|
62
|
+
}), l("should forward ref to ImageCardCore", () => {
|
|
63
|
+
const e = f.createRef();
|
|
64
|
+
r(/* @__PURE__ */ a(o, { ref: e })), t(e.current).toBeTruthy();
|
|
65
|
+
});
|
|
66
|
+
}), u("Clickable Card with Link", () => {
|
|
67
|
+
l("should render anchor when fullCardClickable is true and cta type is external-link", () => {
|
|
68
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
69
|
+
r(
|
|
70
|
+
/* @__PURE__ */ a(
|
|
71
|
+
o,
|
|
72
|
+
{
|
|
73
|
+
fullCardClickable: !0,
|
|
74
|
+
cta: e
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
const n = c.getByRole("link");
|
|
79
|
+
t(n).toBeInTheDocument(), t(n).toHaveAttribute("href", "https://example.com");
|
|
80
|
+
}), l("should render anchor when fullCardClickable is true and cta type is internal-link", () => {
|
|
81
|
+
const e = i({ type: "internal-link", href: "/about" });
|
|
82
|
+
r(
|
|
83
|
+
/* @__PURE__ */ a(
|
|
84
|
+
o,
|
|
85
|
+
{
|
|
86
|
+
fullCardClickable: !0,
|
|
87
|
+
cta: e
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
);
|
|
91
|
+
const n = c.getByRole("link");
|
|
92
|
+
t(n).toBeInTheDocument(), t(n).toHaveAttribute("href", "/about");
|
|
93
|
+
}), l("should not render anchor when fullCardClickable is false", () => {
|
|
94
|
+
const e = i({ type: "external-link" });
|
|
95
|
+
r(
|
|
96
|
+
/* @__PURE__ */ a(
|
|
97
|
+
o,
|
|
98
|
+
{
|
|
99
|
+
cta: e,
|
|
100
|
+
fullCardClickable: !1
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
104
|
+
}), l("should not render anchor when cta href is empty", () => {
|
|
105
|
+
const e = i({ type: "external-link", href: "" });
|
|
106
|
+
r(
|
|
107
|
+
/* @__PURE__ */ a(
|
|
108
|
+
o,
|
|
109
|
+
{
|
|
110
|
+
fullCardClickable: !0,
|
|
111
|
+
cta: e
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
115
|
+
}), l("should not render anchor when cta type is button", () => {
|
|
116
|
+
const e = i({ type: "button" });
|
|
117
|
+
r(
|
|
118
|
+
/* @__PURE__ */ a(
|
|
119
|
+
o,
|
|
120
|
+
{
|
|
121
|
+
fullCardClickable: !0,
|
|
122
|
+
cta: e
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
126
|
+
}), l("should apply clickable class when fullCardClickable is true with valid link", () => {
|
|
127
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
128
|
+
r(
|
|
129
|
+
/* @__PURE__ */ a(
|
|
130
|
+
o,
|
|
131
|
+
{
|
|
132
|
+
fullCardClickable: !0,
|
|
133
|
+
cta: e
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
);
|
|
137
|
+
const n = document.querySelector("image-card");
|
|
138
|
+
t(n).toHaveClass("image-card--clickable-module");
|
|
139
|
+
}), l("should not apply clickable class when not fullCardClickable", () => {
|
|
140
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
141
|
+
r(
|
|
142
|
+
/* @__PURE__ */ a(
|
|
143
|
+
o,
|
|
144
|
+
{
|
|
145
|
+
cta: e,
|
|
146
|
+
fullCardClickable: !1
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
const n = document.querySelector("image-card");
|
|
151
|
+
t(n).not.toHaveClass("image-card--clickable-module");
|
|
152
|
+
});
|
|
153
|
+
}), u("Link Attributes", () => {
|
|
154
|
+
l('should set target="_blank" for external-link', () => {
|
|
155
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
156
|
+
r(
|
|
157
|
+
/* @__PURE__ */ a(
|
|
158
|
+
o,
|
|
159
|
+
{
|
|
160
|
+
fullCardClickable: !0,
|
|
161
|
+
cta: e
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
);
|
|
165
|
+
const n = c.getByRole("link");
|
|
166
|
+
t(n).toHaveAttribute("target", "_blank");
|
|
167
|
+
}), l('should set target="_self" for internal-link', () => {
|
|
168
|
+
const e = i({ type: "internal-link", href: "/about" });
|
|
169
|
+
r(
|
|
170
|
+
/* @__PURE__ */ a(
|
|
171
|
+
o,
|
|
172
|
+
{
|
|
173
|
+
fullCardClickable: !0,
|
|
174
|
+
cta: e
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
);
|
|
178
|
+
const n = c.getByRole("link");
|
|
179
|
+
t(n).toHaveAttribute("target", "_self");
|
|
180
|
+
}), l('should set rel="noreferrer" for external-link', () => {
|
|
181
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
182
|
+
r(
|
|
183
|
+
/* @__PURE__ */ a(
|
|
184
|
+
o,
|
|
185
|
+
{
|
|
186
|
+
fullCardClickable: !0,
|
|
187
|
+
cta: e
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
);
|
|
191
|
+
const n = c.getByRole("link");
|
|
192
|
+
t(n).toHaveAttribute("rel", "noreferrer");
|
|
193
|
+
}), l("should not set rel attribute for internal-link", () => {
|
|
194
|
+
const e = i({ type: "internal-link", href: "/about" });
|
|
195
|
+
r(
|
|
196
|
+
/* @__PURE__ */ a(
|
|
197
|
+
o,
|
|
198
|
+
{
|
|
199
|
+
fullCardClickable: !0,
|
|
200
|
+
cta: e
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
);
|
|
204
|
+
const n = c.getByRole("link");
|
|
205
|
+
t(n).not.toHaveAttribute("rel");
|
|
206
|
+
}), l("should set title attribute from image altText", () => {
|
|
207
|
+
const e = m({ altText: "Beautiful landscape" }), n = i({ type: "external-link", href: "https://example.com" });
|
|
208
|
+
r(
|
|
209
|
+
/* @__PURE__ */ a(
|
|
210
|
+
o,
|
|
211
|
+
{
|
|
212
|
+
fullCardClickable: !0,
|
|
213
|
+
cta: n,
|
|
214
|
+
image: e
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
);
|
|
218
|
+
const s = c.getByRole("link");
|
|
219
|
+
t(s).toHaveAttribute("title", "Beautiful landscape");
|
|
220
|
+
}), l("should apply image-card__full-card-link class to anchor", () => {
|
|
221
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
222
|
+
r(
|
|
223
|
+
/* @__PURE__ */ a(
|
|
224
|
+
o,
|
|
225
|
+
{
|
|
226
|
+
fullCardClickable: !0,
|
|
227
|
+
cta: e
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
);
|
|
231
|
+
const n = c.getByRole("link");
|
|
232
|
+
t(n).toHaveClass("image-card__full-card-link");
|
|
233
|
+
});
|
|
234
|
+
}), u("Display Inline", () => {
|
|
235
|
+
l("should apply inline class when displayInline is true", () => {
|
|
236
|
+
r(/* @__PURE__ */ a(o, { displayInline: !0 }));
|
|
237
|
+
const e = document.querySelector("image-card");
|
|
238
|
+
t(e).toHaveClass("image-card--inline-module");
|
|
239
|
+
}), l("should not apply inline class when displayInline is false", () => {
|
|
240
|
+
r(/* @__PURE__ */ a(o, { displayInline: !1 }));
|
|
241
|
+
const e = document.querySelector("image-card");
|
|
242
|
+
t(e).not.toHaveClass("image-card--inline-module");
|
|
243
|
+
}), l("should apply inline class to clickable card", () => {
|
|
244
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
245
|
+
r(
|
|
246
|
+
/* @__PURE__ */ a(
|
|
247
|
+
o,
|
|
248
|
+
{
|
|
249
|
+
displayInline: !0,
|
|
250
|
+
fullCardClickable: !0,
|
|
251
|
+
cta: e
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
);
|
|
255
|
+
const n = document.querySelector("image-card");
|
|
256
|
+
t(n).toHaveClass("image-card--inline-module");
|
|
257
|
+
});
|
|
258
|
+
}), u("Custom Classes", () => {
|
|
259
|
+
l("should apply custom classname", () => {
|
|
260
|
+
r(/* @__PURE__ */ a(o, { classname: "custom-card" }));
|
|
261
|
+
const e = document.querySelector("image-card");
|
|
262
|
+
t(e).toHaveClass("custom-card");
|
|
263
|
+
}), l("should combine multiple classes", () => {
|
|
264
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
265
|
+
r(
|
|
266
|
+
/* @__PURE__ */ a(
|
|
267
|
+
o,
|
|
268
|
+
{
|
|
269
|
+
displayInline: !0,
|
|
270
|
+
fullCardClickable: !0,
|
|
271
|
+
classname: "custom-card",
|
|
272
|
+
cta: e
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
);
|
|
276
|
+
const n = document.querySelector("image-card");
|
|
277
|
+
t(n).toHaveClass("image-card--clickable-module"), t(n).toHaveClass("image-card--inline-module"), t(n).toHaveClass("custom-card");
|
|
278
|
+
});
|
|
279
|
+
}), u("CSS Custom Properties", () => {
|
|
280
|
+
l("should set overlay position to flex-start for left", () => {
|
|
281
|
+
r(/* @__PURE__ */ a(o, { overlayPosition: "left" }));
|
|
282
|
+
const e = document.querySelector("image-card");
|
|
283
|
+
t(e).toHaveStyle({ "--justify-overlay-content": "flex-start" });
|
|
284
|
+
}), l("should set overlay position to flex-end for right", () => {
|
|
285
|
+
r(/* @__PURE__ */ a(o, { overlayPosition: "right" }));
|
|
286
|
+
const e = document.querySelector("image-card");
|
|
287
|
+
t(e).toHaveStyle({ "--justify-overlay-content": "flex-end" });
|
|
288
|
+
}), l("should set overlay position to center for center", () => {
|
|
289
|
+
r(/* @__PURE__ */ a(o, { overlayPosition: "center" }));
|
|
290
|
+
const e = document.querySelector("image-card");
|
|
291
|
+
t(e).toHaveStyle({ "--justify-overlay-content": "center" });
|
|
292
|
+
}), l("should set align-overlay-content to center when displayInline is true", () => {
|
|
293
|
+
r(/* @__PURE__ */ a(o, { displayInline: !0 }));
|
|
294
|
+
const e = document.querySelector("image-card");
|
|
295
|
+
t(e).toHaveStyle({ "--align-overlay-content": "center" });
|
|
296
|
+
}), l("should set align-overlay-content to flex-end when displayInline is false", () => {
|
|
297
|
+
r(/* @__PURE__ */ a(o, { displayInline: !1 }));
|
|
298
|
+
const e = document.querySelector("image-card");
|
|
299
|
+
t(e).toHaveStyle({ "--align-overlay-content": "flex-end" });
|
|
300
|
+
}), l("should set overlay text color", () => {
|
|
301
|
+
r(/* @__PURE__ */ a(o, { overlayTextColor: "#ff0000" }));
|
|
302
|
+
const e = document.querySelector("image-card");
|
|
303
|
+
t(e).toHaveStyle({ "--overlay-content-text-color": "#ff0000" });
|
|
304
|
+
}), l("should set content line clamp when clampContentLines is true", () => {
|
|
305
|
+
r(/* @__PURE__ */ a(o, { clampContentLines: !0, numberOfLinesToClamp: 5 }));
|
|
306
|
+
const e = document.querySelector("image-card");
|
|
307
|
+
t(e).toHaveStyle({ "--content-line-clamp": "5" });
|
|
308
|
+
}), l("should set line clamp to unset when clampContentLines is false", () => {
|
|
309
|
+
r(/* @__PURE__ */ a(o, { clampContentLines: !1, numberOfLinesToClamp: 5 }));
|
|
310
|
+
const e = document.querySelector("image-card"), n = e == null ? void 0 : e.getAttribute("style");
|
|
311
|
+
t(n).toContain("--content-line-clamp: unset");
|
|
312
|
+
}), l("should set image aspect ratio", () => {
|
|
313
|
+
const e = m({ aspectRatio: 1.7777777777777777 });
|
|
314
|
+
r(/* @__PURE__ */ a(o, { image: e }));
|
|
315
|
+
const n = document.querySelector("image-card");
|
|
316
|
+
t(n).toHaveStyle({ "--image-aspect-ratio": (16 / 9).toString() });
|
|
317
|
+
}), l("should set mobile image aspect ratio", () => {
|
|
318
|
+
const e = m({ aspectRatio: 1 });
|
|
319
|
+
r(/* @__PURE__ */ a(o, { mobileImage: e }));
|
|
320
|
+
const n = document.querySelector("image-card");
|
|
321
|
+
t(n).toHaveStyle({ "--mobile-image-aspect-ratio": "1" });
|
|
322
|
+
}), l("should set background image position", () => {
|
|
323
|
+
r(/* @__PURE__ */ a(o, { fullSizeImagePosition: [30, 70] }));
|
|
324
|
+
const e = document.querySelector("image-card");
|
|
325
|
+
t(e).toHaveStyle({ "--background-image-position": "30% 70%" });
|
|
326
|
+
}), l("should set mobile background image position", () => {
|
|
327
|
+
r(/* @__PURE__ */ a(o, { mobileImagePosition: [25, 75] }));
|
|
328
|
+
const e = document.querySelector("image-card");
|
|
329
|
+
t(e).toHaveStyle({ "--mobile-background-image-position": "25% 75%" });
|
|
330
|
+
}), l("should use default 50% 50% when fullSizeImagePosition is not provided", () => {
|
|
331
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
332
|
+
const e = document.querySelector("image-card");
|
|
333
|
+
t(e).toHaveStyle({ "--background-image-position": "50% 50%" });
|
|
334
|
+
}), l("should use default 50% 50% when mobileImagePosition is not provided", () => {
|
|
335
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
336
|
+
const e = document.querySelector("image-card");
|
|
337
|
+
t(e).toHaveStyle({ "--mobile-background-image-position": "50% 50%" });
|
|
338
|
+
});
|
|
339
|
+
}), u("Data Cursor Attribute", () => {
|
|
340
|
+
l("should set data-cursor to pointer when fullCardClickable with valid link", () => {
|
|
341
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
342
|
+
r(
|
|
343
|
+
/* @__PURE__ */ a(
|
|
344
|
+
o,
|
|
345
|
+
{
|
|
346
|
+
fullCardClickable: !0,
|
|
347
|
+
cta: e
|
|
348
|
+
}
|
|
349
|
+
)
|
|
350
|
+
);
|
|
351
|
+
const n = document.querySelector("image-card");
|
|
352
|
+
t(n).toHaveAttribute("data-cursor", "pointer");
|
|
353
|
+
}), l("should set data-cursor to pointer when fullCardClickable without valid link", () => {
|
|
354
|
+
r(/* @__PURE__ */ a(o, { fullCardClickable: !0 }));
|
|
355
|
+
const e = document.querySelector("image-card");
|
|
356
|
+
t(e).toHaveAttribute("data-cursor", "pointer");
|
|
357
|
+
}), l("should set data-cursor to default when not fullCardClickable", () => {
|
|
358
|
+
r(/* @__PURE__ */ a(o, { fullCardClickable: !1 }));
|
|
359
|
+
const e = document.querySelector("image-card");
|
|
360
|
+
t(e).toHaveAttribute("data-cursor", "default");
|
|
361
|
+
});
|
|
362
|
+
}), u("Click Handling", () => {
|
|
363
|
+
l("should call handleClicks when card is clicked and fullCardClickable is true", async () => {
|
|
364
|
+
const e = g.setup(), n = y.fn(), s = i({ type: "button" });
|
|
365
|
+
r(
|
|
366
|
+
/* @__PURE__ */ a(
|
|
367
|
+
o,
|
|
368
|
+
{
|
|
369
|
+
fullCardClickable: !0,
|
|
370
|
+
cta: s,
|
|
371
|
+
handleClicks: n,
|
|
372
|
+
relatedResourceId: "resource-123"
|
|
373
|
+
}
|
|
374
|
+
)
|
|
375
|
+
);
|
|
376
|
+
const d = document.querySelector("image-card");
|
|
377
|
+
await e.click(d), t(n).toHaveBeenCalledTimes(1);
|
|
378
|
+
}), l("should pass correct details to handleClicks", async () => {
|
|
379
|
+
const e = g.setup(), n = y.fn(), s = i({
|
|
380
|
+
type: "external-link",
|
|
381
|
+
relatedResourceType: "article"
|
|
382
|
+
});
|
|
383
|
+
r(
|
|
384
|
+
/* @__PURE__ */ a(
|
|
385
|
+
o,
|
|
386
|
+
{
|
|
387
|
+
fullCardClickable: !0,
|
|
388
|
+
cta: s,
|
|
389
|
+
handleClicks: n,
|
|
390
|
+
relatedResourceId: "resource-456"
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
);
|
|
394
|
+
const d = document.querySelector("image-card");
|
|
395
|
+
await e.click(d), t(n).toHaveBeenCalledWith(
|
|
396
|
+
t.objectContaining({
|
|
397
|
+
type: "card-clicked",
|
|
398
|
+
ctaType: "external-link",
|
|
399
|
+
resourceId: "resource-456",
|
|
400
|
+
resourceType: "article"
|
|
401
|
+
})
|
|
402
|
+
);
|
|
403
|
+
}), l("should include event target and currentTarget in handleClicks details", async () => {
|
|
404
|
+
const e = g.setup(), n = y.fn();
|
|
405
|
+
r(
|
|
406
|
+
/* @__PURE__ */ a(
|
|
407
|
+
o,
|
|
408
|
+
{
|
|
409
|
+
fullCardClickable: !0,
|
|
410
|
+
handleClicks: n
|
|
411
|
+
}
|
|
412
|
+
)
|
|
413
|
+
);
|
|
414
|
+
const s = document.querySelector("image-card");
|
|
415
|
+
await e.click(s);
|
|
416
|
+
const d = n.mock.calls[0][0];
|
|
417
|
+
t(d.target).toBeTruthy(), t(d.currentTarget).toBeTruthy();
|
|
418
|
+
}), l("should not call handleClicks when fullCardClickable is false", async () => {
|
|
419
|
+
const e = g.setup(), n = y.fn();
|
|
420
|
+
r(
|
|
421
|
+
/* @__PURE__ */ a(
|
|
422
|
+
o,
|
|
423
|
+
{
|
|
424
|
+
fullCardClickable: !1,
|
|
425
|
+
handleClicks: n
|
|
426
|
+
}
|
|
427
|
+
)
|
|
428
|
+
);
|
|
429
|
+
const s = document.querySelector("image-card");
|
|
430
|
+
await e.click(s), t(n).not.toHaveBeenCalled();
|
|
431
|
+
}), l("should use default noop handler when handleClicks not provided", async () => {
|
|
432
|
+
const e = g.setup();
|
|
433
|
+
r(/* @__PURE__ */ a(o, { fullCardClickable: !0 }));
|
|
434
|
+
const n = document.querySelector("image-card");
|
|
435
|
+
await e.click(n), t(n).toBeInTheDocument();
|
|
436
|
+
});
|
|
437
|
+
}), u("Default Props", () => {
|
|
438
|
+
l("should use default image values", () => {
|
|
439
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
440
|
+
const e = document.querySelector("image-card");
|
|
441
|
+
t(e).toHaveStyle({ "--image-aspect-ratio": "1" });
|
|
442
|
+
}), l("should use default mobileImage values", () => {
|
|
443
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
444
|
+
const e = document.querySelector("image-card");
|
|
445
|
+
t(e).toHaveStyle({ "--mobile-image-aspect-ratio": "1" });
|
|
446
|
+
}), l("should use default fullSizeImagePosition", () => {
|
|
447
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
448
|
+
const e = document.querySelector("image-card");
|
|
449
|
+
t(e).toHaveStyle({ "--background-image-position": "50% 50%" });
|
|
450
|
+
}), l("should use default mobileImagePosition", () => {
|
|
451
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
452
|
+
const e = document.querySelector("image-card");
|
|
453
|
+
t(e).toHaveStyle({ "--mobile-background-image-position": "50% 50%" });
|
|
454
|
+
}), l("should use default clampContentLines true", () => {
|
|
455
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
456
|
+
const e = document.querySelector("image-card");
|
|
457
|
+
t(e).toHaveStyle({ "--content-line-clamp": "3" });
|
|
458
|
+
}), l("should use default numberOfLinesToClamp 3", () => {
|
|
459
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
460
|
+
const e = document.querySelector("image-card");
|
|
461
|
+
t(e).toHaveStyle({ "--content-line-clamp": "3" });
|
|
462
|
+
}), l("should use default overlayPosition left", () => {
|
|
463
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
464
|
+
const e = document.querySelector("image-card");
|
|
465
|
+
t(e).toHaveStyle({ "--justify-overlay-content": "flex-start" });
|
|
466
|
+
}), l("should use default overlayTextColor #fff", () => {
|
|
467
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
468
|
+
const e = document.querySelector("image-card");
|
|
469
|
+
t(e).toHaveStyle({ "--overlay-content-text-color": "#fff" });
|
|
470
|
+
}), l("should use default cta values", () => {
|
|
471
|
+
r(/* @__PURE__ */ a(o, {})), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
472
|
+
}), l("should use default fullCardClickable false", () => {
|
|
473
|
+
r(/* @__PURE__ */ a(o, {})), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
474
|
+
}), l("should use default displayInline false", () => {
|
|
475
|
+
r(/* @__PURE__ */ a(o, {}));
|
|
476
|
+
const e = document.querySelector("image-card");
|
|
477
|
+
t(e).not.toHaveClass("image-card--inline-module");
|
|
478
|
+
});
|
|
479
|
+
}), u("Edge Cases", () => {
|
|
480
|
+
l("should handle empty cta href", () => {
|
|
481
|
+
const e = i({ href: "" });
|
|
482
|
+
r(
|
|
483
|
+
/* @__PURE__ */ a(
|
|
484
|
+
o,
|
|
485
|
+
{
|
|
486
|
+
fullCardClickable: !0,
|
|
487
|
+
cta: e
|
|
488
|
+
}
|
|
489
|
+
)
|
|
490
|
+
), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
491
|
+
}), l("should handle undefined cta type", () => {
|
|
492
|
+
const e = i({ type: "" });
|
|
493
|
+
r(
|
|
494
|
+
/* @__PURE__ */ a(
|
|
495
|
+
o,
|
|
496
|
+
{
|
|
497
|
+
fullCardClickable: !0,
|
|
498
|
+
cta: e
|
|
499
|
+
}
|
|
500
|
+
)
|
|
501
|
+
), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
502
|
+
}), l("should handle zero aspect ratio", () => {
|
|
503
|
+
const e = m({ aspectRatio: 0 });
|
|
504
|
+
r(/* @__PURE__ */ a(o, { image: e }));
|
|
505
|
+
const n = document.querySelector("image-card");
|
|
506
|
+
t(n).toHaveStyle({ "--image-aspect-ratio": "0" });
|
|
507
|
+
}), l("should handle very large numberOfLinesToClamp", () => {
|
|
508
|
+
r(/* @__PURE__ */ a(o, { numberOfLinesToClamp: 999 }));
|
|
509
|
+
const e = document.querySelector("image-card");
|
|
510
|
+
t(e).toHaveStyle({ "--content-line-clamp": "999" });
|
|
511
|
+
}), l("should handle special characters in classname", () => {
|
|
512
|
+
r(/* @__PURE__ */ a(o, { classname: "custom-card__special--modifier" }));
|
|
513
|
+
const e = document.querySelector("image-card");
|
|
514
|
+
t(e).toHaveClass("custom-card__special--modifier");
|
|
515
|
+
}), l("should handle rgba color for overlayTextColor", () => {
|
|
516
|
+
r(/* @__PURE__ */ a(o, { overlayTextColor: "rgba(255, 0, 0, 0.5)" }));
|
|
517
|
+
const e = document.querySelector("image-card");
|
|
518
|
+
t(e).toHaveStyle({ "--overlay-content-text-color": "rgba(255, 0, 0, 0.5)" });
|
|
519
|
+
}), l("should handle empty relatedResourceId", () => {
|
|
520
|
+
const e = y.fn();
|
|
521
|
+
r(
|
|
522
|
+
/* @__PURE__ */ a(
|
|
523
|
+
o,
|
|
524
|
+
{
|
|
525
|
+
fullCardClickable: !0,
|
|
526
|
+
handleClicks: e,
|
|
527
|
+
relatedResourceId: ""
|
|
528
|
+
}
|
|
529
|
+
)
|
|
530
|
+
), t(c.getByTestId("image-card-core")).toBeInTheDocument();
|
|
531
|
+
}), l("should handle position values at boundaries [0, 0]", () => {
|
|
532
|
+
r(
|
|
533
|
+
/* @__PURE__ */ a(
|
|
534
|
+
o,
|
|
535
|
+
{
|
|
536
|
+
fullSizeImagePosition: [0, 0],
|
|
537
|
+
mobileImagePosition: [0, 0]
|
|
538
|
+
}
|
|
539
|
+
)
|
|
540
|
+
);
|
|
541
|
+
const e = document.querySelector("image-card");
|
|
542
|
+
t(e).toHaveStyle({ "--background-image-position": "0% 0%" }), t(e).toHaveStyle({ "--mobile-background-image-position": "0% 0%" });
|
|
543
|
+
}), l("should handle position values at boundaries [100, 100]", () => {
|
|
544
|
+
r(
|
|
545
|
+
/* @__PURE__ */ a(
|
|
546
|
+
o,
|
|
547
|
+
{
|
|
548
|
+
fullSizeImagePosition: [100, 100],
|
|
549
|
+
mobileImagePosition: [100, 100]
|
|
550
|
+
}
|
|
551
|
+
)
|
|
552
|
+
);
|
|
553
|
+
const e = document.querySelector("image-card");
|
|
554
|
+
t(e).toHaveStyle({ "--background-image-position": "100% 100%" }), t(e).toHaveStyle({ "--mobile-background-image-position": "100% 100%" });
|
|
555
|
+
});
|
|
556
|
+
}), u("Integration", () => {
|
|
557
|
+
l("should render complete clickable card with all features", () => {
|
|
558
|
+
const e = m({
|
|
559
|
+
url: "https://example.com/image.jpg",
|
|
560
|
+
altText: "Product Image",
|
|
561
|
+
aspectRatio: 1.3333333333333333
|
|
562
|
+
}), n = m({ aspectRatio: 1 }), s = i({
|
|
563
|
+
type: "external-link",
|
|
564
|
+
href: "https://shop.example.com",
|
|
565
|
+
label: "Buy Now"
|
|
566
|
+
}), d = y.fn();
|
|
567
|
+
r(
|
|
568
|
+
/* @__PURE__ */ a(
|
|
569
|
+
o,
|
|
570
|
+
{
|
|
571
|
+
clampContentLines: !0,
|
|
572
|
+
displayInline: !0,
|
|
573
|
+
fullCardClickable: !0,
|
|
574
|
+
classname: "product-card",
|
|
575
|
+
content: "Product description",
|
|
576
|
+
cta: s,
|
|
577
|
+
fullSizeImagePosition: [30, 40],
|
|
578
|
+
handleClicks: d,
|
|
579
|
+
image: e,
|
|
580
|
+
mobileImage: n,
|
|
581
|
+
mobileImagePosition: [50, 60],
|
|
582
|
+
numberOfLinesToClamp: 2,
|
|
583
|
+
overlayPosition: "center",
|
|
584
|
+
overlayTextColor: "#000000",
|
|
585
|
+
title: "Product Title"
|
|
586
|
+
}
|
|
587
|
+
)
|
|
588
|
+
);
|
|
589
|
+
const p = document.querySelector("image-card");
|
|
590
|
+
t(p).toHaveClass("image-card--clickable-module"), t(p).toHaveClass("image-card--inline-module"), t(p).toHaveClass("product-card"), t(p).toHaveAttribute("data-cursor", "pointer");
|
|
591
|
+
const h = c.getByRole("link");
|
|
592
|
+
t(h).toHaveAttribute("href", "https://shop.example.com"), t(h).toHaveAttribute("target", "_blank"), t(h).toHaveAttribute("rel", "noreferrer"), t(h).toHaveAttribute("title", "Product Image");
|
|
593
|
+
}), l("should render non-clickable card without anchor", () => {
|
|
594
|
+
const e = m(), n = i({ type: "button", href: "" });
|
|
595
|
+
r(
|
|
596
|
+
/* @__PURE__ */ a(
|
|
597
|
+
o,
|
|
598
|
+
{
|
|
599
|
+
cta: n,
|
|
600
|
+
displayInline: !1,
|
|
601
|
+
fullCardClickable: !1,
|
|
602
|
+
image: e,
|
|
603
|
+
overlayPosition: "right"
|
|
604
|
+
}
|
|
605
|
+
)
|
|
606
|
+
);
|
|
607
|
+
const s = document.querySelector("image-card");
|
|
608
|
+
t(s).not.toHaveClass("image-card--clickable-module"), t(s).toHaveAttribute("data-cursor", "default"), t(c.queryByRole("link")).not.toBeInTheDocument(), t(c.getByTestId("image-card-core")).toBeInTheDocument();
|
|
609
|
+
}), l("should update from non-clickable to clickable", () => {
|
|
610
|
+
const e = i({ type: "external-link", href: "https://example.com" }), { rerender: n } = r(
|
|
611
|
+
/* @__PURE__ */ a(
|
|
612
|
+
o,
|
|
613
|
+
{
|
|
614
|
+
cta: e,
|
|
615
|
+
fullCardClickable: !1
|
|
616
|
+
}
|
|
617
|
+
)
|
|
618
|
+
);
|
|
619
|
+
t(c.queryByRole("link")).not.toBeInTheDocument(), n(
|
|
620
|
+
/* @__PURE__ */ a(
|
|
621
|
+
o,
|
|
622
|
+
{
|
|
623
|
+
fullCardClickable: !0,
|
|
624
|
+
cta: e
|
|
625
|
+
}
|
|
626
|
+
)
|
|
627
|
+
), t(c.getByRole("link")).toBeInTheDocument();
|
|
628
|
+
});
|
|
629
|
+
}), u("Prop Validation", () => {
|
|
630
|
+
l("should accept all valid overlayPosition values", () => {
|
|
631
|
+
const e = ["left", "right", "center"], n = ["flex-start", "flex-end", "center"];
|
|
632
|
+
e.forEach((s, d) => {
|
|
633
|
+
const { unmount: p } = r(/* @__PURE__ */ a(o, { overlayPosition: s })), h = document.querySelector("image-card");
|
|
634
|
+
t(h).toHaveStyle({ "--justify-overlay-content": n[d] }), p();
|
|
635
|
+
});
|
|
636
|
+
}), l("should handle numeric id", () => {
|
|
637
|
+
r(/* @__PURE__ */ a(o, { id: 12345 }));
|
|
638
|
+
const e = c.getByTestId("image-card-core"), n = JSON.parse(e.getAttribute("data-props") || "{}");
|
|
639
|
+
t(n.id).toBe(12345);
|
|
640
|
+
}), l("should handle string id", () => {
|
|
641
|
+
r(/* @__PURE__ */ a(o, { id: "card-abc-123" }));
|
|
642
|
+
const e = c.getByTestId("image-card-core"), n = JSON.parse(e.getAttribute("data-props") || "{}");
|
|
643
|
+
t(n.id).toBe("card-abc-123");
|
|
644
|
+
}), l("should handle JSX content", () => {
|
|
645
|
+
r(/* @__PURE__ */ a(o, { content: /* @__PURE__ */ a("div", { children: "Custom Content" }) })), t(c.getByTestId("image-card-core")).toBeInTheDocument();
|
|
646
|
+
}), l("should handle string overlayContent", () => {
|
|
647
|
+
r(/* @__PURE__ */ a(o, { overlayContent: "Overlay Text" }));
|
|
648
|
+
const e = c.getByTestId("image-card-core"), n = JSON.parse(e.getAttribute("data-props") || "{}");
|
|
649
|
+
t(n.overlayContent).toBe("Overlay Text");
|
|
650
|
+
}), l("should handle JSX overlayContent", () => {
|
|
651
|
+
r(/* @__PURE__ */ a(o, { overlayContent: /* @__PURE__ */ a("span", { children: "Custom Overlay" }) })), t(c.getByTestId("image-card-core")).toBeInTheDocument();
|
|
652
|
+
});
|
|
653
|
+
}), u("CTA Type Combinations", () => {
|
|
654
|
+
l("should render link for external-link type", () => {
|
|
655
|
+
const e = i({ type: "external-link", href: "https://example.com" });
|
|
656
|
+
r(/* @__PURE__ */ a(o, { fullCardClickable: !0, cta: e })), t(c.getByRole("link")).toBeInTheDocument();
|
|
657
|
+
}), l("should render link for internal-link type", () => {
|
|
658
|
+
const e = i({ type: "internal-link", href: "/about" });
|
|
659
|
+
r(/* @__PURE__ */ a(o, { fullCardClickable: !0, cta: e })), t(c.getByRole("link")).toBeInTheDocument();
|
|
660
|
+
}), l("should not render link for button type", () => {
|
|
661
|
+
const e = i({ type: "button", href: "https://example.com" });
|
|
662
|
+
r(/* @__PURE__ */ a(o, { fullCardClickable: !0, cta: e })), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
663
|
+
}), l("should not render link for empty type", () => {
|
|
664
|
+
const e = i({ type: "", href: "https://example.com" });
|
|
665
|
+
r(/* @__PURE__ */ a(o, { fullCardClickable: !0, cta: e })), t(c.queryByRole("link")).not.toBeInTheDocument();
|
|
666
|
+
});
|
|
667
|
+
});
|
|
668
|
+
});
|