Skip to content

Commit 7ed41b6

Browse files
committed
Attempt to fix disputes flaky test
1 parent f50963e commit 7ed41b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,13 @@ test.describe( 'Disputes > Respond to a dispute', () => {
612612
name: 'Save for later',
613613
} )
614614
.click();
615+
616+
// Wait for the success snackbar to confirm UI acknowledged the save.
617+
await expect(
618+
merchantPage.locator( '.components-snackbar__content', {
619+
hasText: 'Evidence saved!',
620+
} )
621+
).toBeVisible( { timeout: 10000 } );
615622
} );
616623

617624
await test.step( 'Go back to the payment details page', async () => {
@@ -649,7 +656,7 @@ test.describe( 'Disputes > Respond to a dispute', () => {
649656
merchantPage.getByTestId(
650657
'dispute-challenge-product-type-selector'
651658
)
652-
).toHaveValue( 'offline_service' );
659+
).toHaveValue( 'offline_service', { timeout: 5000 } );
653660
}
654661
);
655662
} );

0 commit comments

Comments
 (0)