@akinon/pz-saved-card 2.0.0-beta.10 → 2.0.0-beta.11
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export const AgreementAndSubmit = ({
|
|
|
17
17
|
<Button
|
|
18
18
|
type="submit"
|
|
19
19
|
className="group uppercase mt-4 inline-flex items-center justify-center"
|
|
20
|
+
data-testid="saved-card-submit-button"
|
|
20
21
|
>
|
|
21
22
|
<span>{buttonText}</span>
|
|
22
23
|
<Icon name="chevron-end" size={12} className="ml-2 h-3" />
|
|
@@ -16,7 +16,7 @@ export const CardSelectionSection = ({
|
|
|
16
16
|
<div className="border-solid border-gray-400 px-4 py-2">
|
|
17
17
|
<span className="text-black-800 text-lg font-medium">{title}</span>
|
|
18
18
|
<ul className="mt-4 text-xs w-full">
|
|
19
|
-
{cards?.map((card) => (
|
|
19
|
+
{cards?.map((card, index) => (
|
|
20
20
|
<li
|
|
21
21
|
key={card.token}
|
|
22
22
|
className="p-4 mb-2 border-2 border-gray-200 flex justify-between items-center cursor-pointer"
|
|
@@ -24,6 +24,7 @@ export const CardSelectionSection = ({
|
|
|
24
24
|
e.preventDefault();
|
|
25
25
|
onSelect(card);
|
|
26
26
|
}}
|
|
27
|
+
data-testid={`saved-card-item-${index}`}
|
|
27
28
|
>
|
|
28
29
|
<input
|
|
29
30
|
name="card"
|
|
@@ -68,7 +68,7 @@ const SavedCardInstallments = ({
|
|
|
68
68
|
</tr>
|
|
69
69
|
</thead>
|
|
70
70
|
<tbody>
|
|
71
|
-
{installmentOptions.map((option) => (
|
|
71
|
+
{installmentOptions.map((option, index) => (
|
|
72
72
|
<tr
|
|
73
73
|
key={`installment-${option.pk}`}
|
|
74
74
|
className="border-t border-solid border-gray-400"
|
|
@@ -84,6 +84,7 @@ const SavedCardInstallments = ({
|
|
|
84
84
|
});
|
|
85
85
|
setInstallmentOption(option.pk);
|
|
86
86
|
}}
|
|
87
|
+
data-testid={`saved-card-installment-${index}`}
|
|
87
88
|
>
|
|
88
89
|
<span className="w-full flex items-center justify-start pl-2">
|
|
89
90
|
<span className="text-xs text-black-800 transition-all">
|