@akinon/pz-saved-card 1.89.0-rc.8 → 1.89.0-rc.9

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
@@ -1,5 +1,13 @@
1
1
  # @akinon/pz-saved-card
2
2
 
3
+ ## 1.89.0-rc.9
4
+
5
+ ### Minor Changes
6
+
7
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
8
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
9
+ - e2026ec: ZERO-3353: add missing test ids for e2e test
10
+
3
11
  ## 1.89.0-rc.8
4
12
 
5
13
  ## 1.89.0-rc.7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-saved-card",
3
- "version": "1.89.0-rc.8",
3
+ "version": "1.89.0-rc.9",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "peerDependencies": {
@@ -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">