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:
parent
f5d19210ea
commit
b2934987e9
1 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
//Imports here
|
//Imports here
|
||||||
import { ITestData } from 'framework/TestData'
|
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 { ITestCase } from '../framework/Typedefs'
|
||||||
import { VehicleLookupType } from 'safelite-playwright-core';
|
import { VehicleLookupType } from 'safelite-playwright-core';
|
||||||
import { getDefaultTestData, setFakerSeedFromTestName } 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
|
// Override vehicle details
|
||||||
vehicleDetails: {
|
vehicleDetails: {
|
||||||
...getDefaultTestData().vehicleDetails!,
|
...getDefaultTestData().vehicleDetails!,
|
||||||
|
|
@ -59,7 +60,8 @@ const cashReplaceDynamicRecalMobileData: Partial<ITestData> = {
|
||||||
|
|
||||||
// Override payment details
|
// Override payment details
|
||||||
paymentDetails: {
|
paymentDetails: {
|
||||||
paymentType: PaymentType.PayAtService
|
paymentType: PaymentType.PayAtService,
|
||||||
|
promoCode: 'digitalrain'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue