Skip to content

Commit 1a0a5e2

Browse files
committed
Restore disputes spec
1 parent 7fbcd8e commit 1a0a5e2

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

tests/e2e/specs/wcpay/merchant/merchant-disputes-respond.spec.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -579,47 +579,15 @@ test.describe( 'Disputes > Respond to a dispute', () => {
579579
await merchantPage
580580
.getByLabel( 'PRODUCT DESCRIPTION' )
581581
.fill( 'my product description' );
582-
583-
// Verify the values were set correctly immediately after filling
584-
await expect(
585-
merchantPage.getByTestId(
586-
'dispute-challenge-product-type-selector'
587-
)
588-
).toHaveValue( 'offline_service' );
589-
590-
await expect(
591-
merchantPage.getByLabel( 'PRODUCT DESCRIPTION' )
592-
).toHaveValue( 'my product description' );
593582
}
594583
);
595584

596-
await test.step( 'Verify form values before saving', async () => {
597-
// Double-check that the form values are still correct before saving
598-
await expect(
599-
merchantPage.getByTestId(
600-
'dispute-challenge-product-type-selector'
601-
)
602-
).toHaveValue( 'offline_service' );
603-
604-
await expect(
605-
merchantPage.getByLabel( 'PRODUCT DESCRIPTION' )
606-
).toHaveValue( 'my product description' );
607-
} );
608-
609585
await test.step( 'Save the dispute challenge for later', async () => {
610586
await merchantPage
611587
.getByRole( 'button', {
612588
name: 'Save for later',
613589
} )
614590
.click();
615-
616-
// Wait for the save operation to complete
617-
// Look for the success notification in the snackbar
618-
await expect(
619-
merchantPage
620-
.locator( '.components-snackbar__content' )
621-
.filter( { hasText: 'Evidence saved!' } )
622-
).toBeVisible( { timeout: 10000 } );
623591
} );
624592

625593
await test.step( 'Go back to the payment details page', async () => {

0 commit comments

Comments
 (0)