From bfa101ac24740f7fb8bb79243e94ea1a12b0f561 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Thu, 27 Feb 2025 19:18:58 +0100
Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Add=20failing=20tests?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Expect to receive the decission flag “Use Card Payments” that was made during onboarding.
---
.../js/data/onboarding/selectors.test.js | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/modules/ppcp-settings/resources/js/data/onboarding/selectors.test.js b/modules/ppcp-settings/resources/js/data/onboarding/selectors.test.js
index 4e3c07c09..4ae936693 100644
--- a/modules/ppcp-settings/resources/js/data/onboarding/selectors.test.js
+++ b/modules/ppcp-settings/resources/js/data/onboarding/selectors.test.js
@@ -16,7 +16,7 @@ describe( 'determineProductsAndCaps selector [casual seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: false },
},
},
{
@@ -30,7 +30,7 @@ describe( 'determineProductsAndCaps selector [casual seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: false },
},
},
{
@@ -44,7 +44,7 @@ describe( 'determineProductsAndCaps selector [casual seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: true },
},
},
{
@@ -58,7 +58,7 @@ describe( 'determineProductsAndCaps selector [casual seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT', 'ADVANCED_VAULTING' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: false },
},
},
{
@@ -73,7 +73,7 @@ describe( 'determineProductsAndCaps selector [casual seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT', 'ADVANCED_VAULTING' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: false },
},
},
];
@@ -97,7 +97,7 @@ describe( 'determineProductsAndCaps selector [business seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: false },
},
},
{
@@ -111,7 +111,7 @@ describe( 'determineProductsAndCaps selector [business seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: false },
},
},
{
@@ -125,7 +125,7 @@ describe( 'determineProductsAndCaps selector [business seller]', () => {
},
expected: {
products: [ 'PPCP' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: true },
},
},
{
@@ -139,7 +139,7 @@ describe( 'determineProductsAndCaps selector [business seller]', () => {
},
expected: {
products: [ 'PPCP', 'ADVANCED_VAULTING' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: true },
},
},
{
@@ -154,7 +154,7 @@ describe( 'determineProductsAndCaps selector [business seller]', () => {
},
expected: {
products: [ 'EXPRESS_CHECKOUT', 'ADVANCED_VAULTING' ],
- options: { useSubscriptions: false },
+ options: { useSubscriptions: false, useCardPayments: false },
},
},
{
@@ -169,7 +169,7 @@ describe( 'determineProductsAndCaps selector [business seller]', () => {
},
expected: {
products: [ 'PPCP', 'ADVANCED_VAULTING' ],
- options: { useSubscriptions: true },
+ options: { useSubscriptions: true, useCardPayments: true },
},
},
];