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.
This commit is contained in:
maguire-arman 2025-05-20 11:28:09 -04:00
parent 5925f07653
commit 2b16a6b2fd

View file

@ -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);
}