diff --git a/components/data/AppProvider/utils.ts b/components/data/AppProvider/utils.ts index 12bbb005..d355529d 100644 --- a/components/data/AppProvider/utils.ts +++ b/components/data/AppProvider/utils.ts @@ -100,8 +100,7 @@ function isNewAddress({ const hasAddressIntoAddresses = Boolean( customerAddresses?.find( - (customerAddress) => - customerAddress?.address?.reference === address?.reference + (customerAddress) => customerAddress?.id === address?.reference ) ) diff --git a/specs/e2e/payments-stripe.spec.ts b/specs/e2e/payments-stripe.spec.ts index 332dd90b..c7efbfff 100644 --- a/specs/e2e/payments-stripe.spec.ts +++ b/specs/e2e/payments-stripe.spec.ts @@ -282,7 +282,7 @@ test.describe("guest with Stripe", () => { await checkoutPage.save("Payment", undefined, true) - await checkoutPage.page.waitForTimeout(10000) + await checkoutPage.page.waitForTimeout(6000) const myFrames = checkoutPage.page.frames() @@ -290,7 +290,7 @@ test.describe("guest with Stripe", () => { .locator("#test-source-authorize-3ds") .click() - await checkoutPage.checkPaymentRecap("Visa ending in 3155") + await checkoutPage.checkPaymentRecap("Visa ending in 3155", 10000) await checkoutPage.page.reload()