From 2b16a6b2fdf01c362c64afb975c53a59b9f7d0ed Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 20 May 2025 11:28:09 -0400 Subject: [PATCH] Corrects deductible validation on order confirmation Ensures the order confirmation page accurately displays the policy deductible amount for insurance users. Previously, it incorrectly validated the service package amount against a hardcoded value instead of the policy deductible. --- playwright-tests/pages/OrderConfirmationPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright-tests/pages/OrderConfirmationPage.ts b/playwright-tests/pages/OrderConfirmationPage.ts index 6e513d7d2..c66f95497 100644 --- a/playwright-tests/pages/OrderConfirmationPage.ts +++ b/playwright-tests/pages/OrderConfirmationPage.ts @@ -102,7 +102,7 @@ export class OrderConfirmationPage extends BasePage { } else { // Price validations for insurance users if (servicePackage === ServicePackage.GlassOnly) { - expect.soft(servicePackageAmt).toEqual(0); + expect.soft(servicePackageAmt).toEqual(claimDetails?.policyDeductible); } else { expect.soft(servicePackageAmt).toBeGreaterThan(0); }