Cash-1877 Apply bundle promo code on quote page

Applying bundle promo code on quote page for existing cash replace script part of E2E tests
This commit is contained in:
binduchalla 2025-12-01 12:30:40 -05:00
parent f5d19210ea
commit b2934987e9

View file

@ -1,6 +1,6 @@
//Imports here
import { ITestData } from 'framework/TestData'
import { ServiceLocation, PaymentType } from 'safelite-playwright-core';
import { ServiceLocation, ServicePackage, PaymentType } from 'safelite-playwright-core';
import { ITestCase } from '../framework/Typedefs'
import { VehicleLookupType } from 'safelite-playwright-core';
import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core';
@ -30,6 +30,7 @@ const cashReplaceDynamicRecalMobileData: Partial<ITestData> = {
}
},
servicePackage: ServicePackage.Premium,
// Override vehicle details
vehicleDetails: {
...getDefaultTestData().vehicleDetails!,
@ -59,7 +60,8 @@ const cashReplaceDynamicRecalMobileData: Partial<ITestData> = {
// Override payment details
paymentDetails: {
paymentType: PaymentType.PayAtService
paymentType: PaymentType.PayAtService,
promoCode: 'digitalrain'
}
}