Change uuid for better policy number randomization
This commit is contained in:
parent
9247ec1fae
commit
08cfe1347c
22 changed files with 58 additions and 53 deletions
|
|
@ -29,7 +29,7 @@ if ((process.env.ENABLE_MOCK_TESTING ?? 'false') === 'true') {
|
|||
customerDetails.lastName = 'Cormier';
|
||||
customerDetails.address.street = '69825 W Pine Street';
|
||||
} else {
|
||||
policyNumber = `~AutomatedScenario0002a${faker.string.uuid().substring(0, 6)}`;
|
||||
policyNumber = `~AutomatedScenario0002a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`;
|
||||
};
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0002a', customerDetails, policyNumber);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ const customerDetails: ICustomerDetails = {
|
|||
}
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0004a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0004a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0004a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0004aData: Partial<ITestData> = {
|
||||
|
|
@ -33,8 +33,7 @@ const advancedScenario0004aData: Partial<ITestData> = {
|
|||
isNoComp: false,
|
||||
hasStateLawPopup: false,
|
||||
endorsements: undefined,
|
||||
vehiclePartQuestions: [
|
||||
],
|
||||
partQuestions: [],
|
||||
isSafelite: true,
|
||||
servicePackage: faker.helpers.enumValue(ServicePackage),
|
||||
customerDetails: customerDetails,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0005a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0005a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0005a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0005Data: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0006a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0006a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0006a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0006Data: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0007a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0007a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0007a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0007Data: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const nextWeekday = getNextWeekday();
|
|||
const customerAddress: IAddress = {
|
||||
street: faker.location.streetAddress(),
|
||||
city: 'Hamden',
|
||||
state: 'CT',
|
||||
state: 'CONNECTICUT',
|
||||
postalCode: '06517',
|
||||
country: 'United States'
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0008a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0008a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0008a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0008Data: Partial<ITestData> = {
|
||||
|
|
@ -33,7 +33,7 @@ const advancedScenario0008Data: Partial<ITestData> = {
|
|||
isDuplicateClaim: false,
|
||||
isPolicyFound: true,
|
||||
isNoComp: false,
|
||||
hasStateLawPopup: true,
|
||||
hasStateLawPopup: false,
|
||||
endorsements: undefined,
|
||||
vehiclePartQuestions: [
|
||||
// {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0009a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0009a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0009a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0009Data: Partial<ITestData> = {
|
||||
|
|
@ -38,7 +38,7 @@ const advancedScenario0009Data: Partial<ITestData> = {
|
|||
{
|
||||
endorsementType: EndorsementType.Educator,
|
||||
isOnPolicy: true,
|
||||
isClickYes: false
|
||||
isClickYes: true
|
||||
}
|
||||
],
|
||||
vehiclePartQuestions: [
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0010a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0010a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0010a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0010Data: Partial<ITestData> = {
|
||||
|
|
@ -92,7 +92,7 @@ for (const client of advancedClients) {
|
|||
const data = {...advancedScenario0010Data};
|
||||
data.clientTag = client.clientTag;
|
||||
const tc = new TestCase({
|
||||
name: `0010a Advanced Repair No Deductible FL Rear Client: "${client.accountName}"`,
|
||||
name: `0010a Advanced Replace No Deductible FL Rear Client: "${client.accountName}"`,
|
||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'],
|
||||
testData: data
|
||||
}, undefined, '0010a');
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0011a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0011a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0011a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0011Data: Partial<ITestData> = {
|
||||
|
|
@ -33,13 +33,13 @@ const advancedScenario0011Data: Partial<ITestData> = {
|
|||
isDuplicateClaim: false,
|
||||
isPolicyFound: true,
|
||||
isNoComp: false,
|
||||
isItac: true,
|
||||
isItac: false,
|
||||
hasStateLawPopup: false,
|
||||
endorsements: [
|
||||
{
|
||||
endorsementType: EndorsementType.Educator,
|
||||
isOnPolicy: true,
|
||||
isClickYes: false
|
||||
isClickYes: true
|
||||
}
|
||||
],
|
||||
partQuestions: undefined,
|
||||
|
|
@ -48,7 +48,7 @@ const advancedScenario0011Data: Partial<ITestData> = {
|
|||
customerDetails: customerDetails,
|
||||
claimDetails: {
|
||||
policyNumber: policyNumber,
|
||||
policyDeductible: 500,
|
||||
policyDeductible: 0,
|
||||
damageDate: '2023-03-01',
|
||||
damageCause: faker.helpers.enumValue(DamageType)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0012a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0012a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0012a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0012Data: Partial<ITestData> = {
|
||||
|
|
@ -48,7 +48,7 @@ const advancedScenario0012Data: Partial<ITestData> = {
|
|||
customerDetails: customerDetails,
|
||||
claimDetails: {
|
||||
policyNumber: policyNumber,
|
||||
policyDeductible: 500,
|
||||
policyDeductible: 9999,
|
||||
damageDate: '2023-09-01',
|
||||
damageCause: faker.helpers.enumValue(DamageType)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import ClientData from "@business-logic/data/ClientData";
|
||||
import TestCase from "@business-logic/types/TestCase";
|
||||
import { DamageType, EndorsementType, ServiceLocation, ServicePackage, VehicleDamage } from "@business-logic/types/Enums";
|
||||
import { DamageType, EndorsementType, PaymentType, ServiceLocation, ServicePackage, VehicleDamage } from "@business-logic/types/Enums";
|
||||
import { ITestData } from "@business-logic/types/ITestData"
|
||||
import { faker } from "@faker-js/faker";
|
||||
import { getNextWeekday } from "@impl/utils/DateUtils";
|
||||
|
|
@ -11,9 +11,9 @@ import { IAddress } from "@business-logic/types/IAddress";
|
|||
const nextWeekday = getNextWeekday();
|
||||
const customerAddress: IAddress = {
|
||||
street: faker.location.streetAddress(),
|
||||
city: 'Birmingham',
|
||||
state: 'AL',
|
||||
postalCode: '35118',
|
||||
city: 'Worthington',
|
||||
state: 'OH',
|
||||
postalCode: '43085',
|
||||
country: 'United States'
|
||||
}
|
||||
const customerDetails: ICustomerDetails = {
|
||||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0013a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0013a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0013a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0013Data: Partial<ITestData> = {
|
||||
|
|
@ -33,13 +33,13 @@ const advancedScenario0013Data: Partial<ITestData> = {
|
|||
isDuplicateClaim: false,
|
||||
isPolicyFound: true,
|
||||
isNoComp: false,
|
||||
isItac: true,
|
||||
isItac: false,
|
||||
hasStateLawPopup: false,
|
||||
endorsements: [
|
||||
{
|
||||
endorsementType: EndorsementType.Educator,
|
||||
isOnPolicy: true,
|
||||
isClickYes: false
|
||||
isClickYes: true
|
||||
}
|
||||
],
|
||||
vehiclePartQuestions: [
|
||||
|
|
@ -49,7 +49,7 @@ const advancedScenario0013Data: Partial<ITestData> = {
|
|||
customerDetails: customerDetails,
|
||||
claimDetails: {
|
||||
policyNumber: policyNumber,
|
||||
policyDeductible: 9999,
|
||||
policyDeductible: 0,
|
||||
damageDate: '2023-08-01',
|
||||
damageCause: faker.helpers.enumValue(DamageType)
|
||||
},
|
||||
|
|
@ -68,7 +68,9 @@ const advancedScenario0013Data: Partial<ITestData> = {
|
|||
serviceAddress: customerAddress,
|
||||
appointmentDate: nextWeekday
|
||||
},
|
||||
paymentDetails: ClientData.getDefaultCreditCardDetails()
|
||||
paymentDetails: {
|
||||
paymentType: PaymentType.PayAtService
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -80,7 +82,7 @@ for (const client of advancedClients) {
|
|||
const data = { ...advancedScenario0013Data };
|
||||
data.clientTag = client.clientTag;
|
||||
const tc = new TestCase({
|
||||
name: `0013a Advanced ITAC Mobile Client: "${client.accountName}"`,
|
||||
name: `0013a Advanced $0 Deductible with Vaps Mobile Client: "${client.accountName}"`,
|
||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'],
|
||||
testData: data
|
||||
}, undefined, '0013a');
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0014a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0014a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0014a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0014Data: Partial<ITestData> = {
|
||||
|
|
@ -33,13 +33,13 @@ const advancedScenario0014Data: Partial<ITestData> = {
|
|||
isDuplicateClaim: false,
|
||||
isPolicyFound: true,
|
||||
isNoComp: true,
|
||||
isRecalWarning: true,
|
||||
isRecalWarning: false,
|
||||
hasStateLawPopup: false,
|
||||
endorsements: [
|
||||
{
|
||||
endorsementType: EndorsementType.Educator,
|
||||
isOnPolicy: true,
|
||||
isClickYes: true
|
||||
isClickYes: false
|
||||
}
|
||||
],
|
||||
partQuestions: undefined,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0017a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0017a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0017a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0017Data: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0018a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0018a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0018a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0018Data: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const vehicleDetails: IVehicleDetails = {
|
|||
style: '4 door sedan'
|
||||
};
|
||||
|
||||
const policyNumber = `~AutomatedScenario0019a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0019a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0019a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0019Data: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0020a${faker.string.uuid().substring(0,6)}`;
|
||||
const policyNumber = `~AutomatedScenario0020a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0020a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0020Data: Partial<ITestData> = {
|
||||
|
|
@ -60,12 +60,14 @@ const advancedScenario0020Data: Partial<ITestData> = {
|
|||
serviceLocation: ServiceLocation.Mobile,
|
||||
serviceAddress: {
|
||||
street: faker.location.streetAddress(),
|
||||
city: 'Goose Creek',
|
||||
state: 'SC',
|
||||
postalCode: '29445',
|
||||
city: 'Worthington',
|
||||
state: 'OH',
|
||||
postalCode: '43085',
|
||||
country: 'US'
|
||||
},
|
||||
alternateServiceZip: '29445',
|
||||
alternateServiceZip: '43085',
|
||||
alternateMobileCity: 'Worthington',
|
||||
alternateMobileStreetAddress: '177 Franklin Ave',
|
||||
appointmentDate: nextWeekday
|
||||
},
|
||||
paymentDetails: {
|
||||
|
|
|
|||
|
|
@ -23,13 +23,14 @@ const customerDetails: ICustomerDetails = {
|
|||
}
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0021a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0021a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0021a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0021Data: Partial<ITestData> = {
|
||||
clientTag: '',
|
||||
isDuplicateClaim: false,
|
||||
isPolicyFound: true,
|
||||
isUnverifiedPolicyAfterVehicleLookup: true,
|
||||
isNoComp: false,
|
||||
hasStateLawPopup: true,
|
||||
endorsements: undefined,
|
||||
|
|
@ -54,8 +55,8 @@ const advancedScenario0021Data: Partial<ITestData> = {
|
|||
model: 'RX 300',
|
||||
style: undefined,
|
||||
vehicleLookupType: VehicleLookupType.LicensePlateNumber,
|
||||
licensePlateNumber: ['NoPlate753', 'BQ40903','1111'],
|
||||
licensePlateState: ['Illinois','Illinois','California'],
|
||||
licensePlateNumber: ['NoPlate753', 'GAH2307','1111'],
|
||||
licensePlateState: ['Illinois','Ohio','California'],
|
||||
},
|
||||
vehicleDamage: [
|
||||
VehicleDamage.WindshieldCrack,
|
||||
|
|
|
|||
|
|
@ -23,13 +23,14 @@ const customerDetails: ICustomerDetails = {
|
|||
}
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0022a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0022a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0022a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0022Data: Partial<ITestData> = {
|
||||
clientTag: '',
|
||||
isDuplicateClaim: false,
|
||||
isPolicyFound: true,
|
||||
isUnverifiedPolicyAfterVehicleLookup: true,
|
||||
isNoComp: false,
|
||||
hasStateLawPopup: true,
|
||||
endorsements: undefined,
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ const customerDetails: ICustomerDetails = {
|
|||
}
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0024a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0024a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0024a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0024Data: Partial<ITestData> = {
|
||||
|
|
@ -50,14 +50,14 @@ const advancedScenario0024Data: Partial<ITestData> = {
|
|||
policySoap: policySoap,
|
||||
vehicleDetails: {
|
||||
year: '2015',
|
||||
make: 'Ford',
|
||||
model: 'F Series F150',
|
||||
style: '2 door super cab',
|
||||
make: 'Audi',
|
||||
model: 'A7',
|
||||
style: '4 door hatchback',
|
||||
vehicleLookupType: VehicleLookupType.Address,
|
||||
address: [
|
||||
{ street: '9 Test Street', city: 'Columbus', state: 'OH', postalCode: '43220', lastName: 'Test' },
|
||||
{ street: '8621 GREENLEAF AVE', city: 'Whittier', state: 'California', postalCode: '90602', lastName: 'Johnson' },
|
||||
{ street: '10212 JEWEL CT', city: 'Conroe', state: 'Texas', postalCode: '77385', lastName: 'Reed' }
|
||||
{ street: '6531 CANYON RANCH', city: 'Frisco', state: 'Texas', postalCode: '75036', lastName: 'TRAINOR' }
|
||||
],
|
||||
},
|
||||
vehicleDamage: [
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ const customerDetails: ICustomerDetails = {
|
|||
}
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0025a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0025a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0025a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0025Data: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0028a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0028a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0028a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0028aData: Partial<ITestData> = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const customerDetails: ICustomerDetails = {
|
|||
address: customerAddress
|
||||
}
|
||||
|
||||
const policyNumber = `~AutomatedScenario0030a${faker.string.uuid().substring(0, 6)}`;
|
||||
const policyNumber = `~AutomatedScenario0030a${crypto.randomUUID().replace(/-/g, '').slice(0, 16).toUpperCase()}`; // Ensure unique policy number for each test run since same key in request can cause 500 error
|
||||
const policySoap = MockPolicyData.getPolicySoapByScenario('0030a', customerDetails, policyNumber);
|
||||
|
||||
const advancedScenario0030aData: Partial<ITestData> = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue