Skip to content

Commit 445fbd3

Browse files
committed
test(qa): assert Processor Response row absent for approved ACDC orders
1 parent 0cbdec9 commit 445fbd3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/qa/utils/admin/woocommerce-order-edit.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export class WooCommerceOrderEdit extends WooCommerceOrderEditBase {
2525

2626
totalPayPalFee = () => this.totalsTableRow( 'PayPal Fee:' );
2727
totalPayPalPayout = () => this.totalsTableRow( 'PayPal Payout' );
28+
processorResponseRow = () => this.totalsTableRow( 'Processor Response:' );
2829

2930
refundViaButton = ( paymentMethod ) =>
3031
this.page.locator( '.do-api-refund', {
@@ -194,6 +195,13 @@ export class WooCommerceOrderEdit extends WooCommerceOrderEditBase {
194195
}
195196
}
196197

198+
if ( fundingSource === 'acdc' ) {
199+
await expect(
200+
this.processorResponseRow(),
201+
'Assert Processor Response row is not visible for approved ACDC orders'
202+
).not.toBeVisible();
203+
}
204+
197205
if ( fundingSource === 'oxxo' ) {
198206
await expect(
199207
this.seeOXXOVoucherButton(),

0 commit comments

Comments
 (0)