mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
🧪 Add failing tests
Expect to receive the decission flag “Use Card Payments” that was made during onboarding.
This commit is contained in:
parent
39abc3a646
commit
bfa101ac24
1 changed files with 11 additions and 11 deletions
|
@ -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 },
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue