Merge branch 'develop' into feature/jzimmerman/INSR-9443-2
This commit is contained in:
commit
d47f6d0d39
19 changed files with 55 additions and 61 deletions
|
|
@ -20,7 +20,7 @@ variables:
|
||||||
# - group: Digital-Infrastructure
|
# - group: Digital-Infrastructure
|
||||||
# - group: ISS-BuildBranches
|
# - group: ISS-BuildBranches
|
||||||
- group: SafelitePlaywright
|
- group: SafelitePlaywright
|
||||||
- group: ISSNextgenRegressionAutomationPlaywright
|
- group: DigitalCommercialPlaywrightAutomation
|
||||||
- name: dockerImageName
|
- name: dockerImageName
|
||||||
value: 'playwright-tests'
|
value: 'playwright-tests'
|
||||||
- name: imageTag
|
- name: imageTag
|
||||||
|
|
@ -54,3 +54,5 @@ stages:
|
||||||
secrets:
|
secrets:
|
||||||
CCIS_API_AUTH: $(CCIS_API_AUTH)
|
CCIS_API_AUTH: $(CCIS_API_AUTH)
|
||||||
JIRA_API_KEY: $(JIRA_API_KEY)
|
JIRA_API_KEY: $(JIRA_API_KEY)
|
||||||
|
JIRA_USERNAME: $(JIRA_USERNAME)
|
||||||
|
JIRA_SERVER: $(JIRA_SERVER)
|
||||||
|
|
@ -17,6 +17,7 @@ module.exports = {
|
||||||
'!src/helpers/unit-test-helper.js'
|
'!src/helpers/unit-test-helper.js'
|
||||||
// END
|
// END
|
||||||
], // ! means exclude from coverage.
|
], // ! means exclude from coverage.
|
||||||
|
setupFilesAfterEnv: ['<rootDir>/src/helpers/unit-test-setup-helper.js'],
|
||||||
testMatch: ['**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'],
|
testMatch: ['**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'],
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
// global: {
|
// global: {
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,8 @@ export enum BailoutCode {
|
||||||
ApplicationError = 14,
|
ApplicationError = 14,
|
||||||
ApiError = 15,
|
ApiError = 15,
|
||||||
RouterError = 16,
|
RouterError = 16,
|
||||||
CoverageCancelledByUser = 17
|
CoverageCancelledByUser = 17,
|
||||||
|
NeedHelp = 18
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum SignatureAlgorithm {
|
export enum SignatureAlgorithm {
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ export class OrderConfirmationPage extends BasePage {
|
||||||
const appointmentTypeValue = await this.appointmentTypeText.textContent();
|
const appointmentTypeValue = await this.appointmentTypeText.textContent();
|
||||||
const apptDetailsValue = await this.apptDetailsText.textContent();
|
const apptDetailsValue = await this.apptDetailsText.textContent();
|
||||||
|
|
||||||
if (appointmentTypeValue?.includes('going to a Safelite shop') && apptDetailsValue?.includes('Drop off before 9:30 AM')) {
|
if (appointmentTypeValue?.includes('going to a Safelite shop') && apptDetailsValue?.includes('Drop off by 9:30 AM. Pick-up time dependent on shop schedule')) {
|
||||||
expect.soft(appointmentType).toEqual('Dropoff');
|
expect.soft(appointmentType).toEqual('Dropoff');
|
||||||
} else if (appointmentTypeValue?.includes('going to a Safelite shop')) {
|
} else if (appointmentTypeValue?.includes('going to a Safelite shop')) {
|
||||||
expect.soft(appointmentType).toEqual('Inshop');
|
expect.soft(appointmentType).toEqual('Inshop');
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import essentialReplaceTestCases from "./0013_EssentialReplace";
|
||||||
import { BailoutCode, ServiceLocation, VehicleDamage, VehicleLookupType } from "@business-logic/types/Enums";
|
import { BailoutCode, ServiceLocation, VehicleDamage, VehicleLookupType } from "@business-logic/types/Enums";
|
||||||
import essentialTpaNotEnabledTestCases from "./0003_EssentialTpaNotEnabledBailout";
|
import essentialTpaNotEnabledTestCases from "./0003_EssentialTpaNotEnabledBailout";
|
||||||
import essentialDoNotSeeShopTestCases from "./0011_EssentialDoNotSeeShopBailout";
|
import essentialDoNotSeeShopTestCases from "./0011_EssentialDoNotSeeShopBailout";
|
||||||
import essentialVehicleNotFoundTestCases from "./0010_EssentialVehicleNotFoundBailout";
|
import essentialVehicleNotFoundVINLookupTests from "./0010_EssentialVehicleNotFoundVinLookup";
|
||||||
import essentialPartsServiceErrorBailout_0009 from "./0009_EssentialPartsServiceErrorBailout";
|
import essentialReplaceNonAdasTests from "./0009_EssentialReplaceNonAdas";
|
||||||
import essentialRepairMobileTests from "./0014_EssentialRepairMobile";
|
import essentialRepairMobileTests from "./0014_EssentialRepairMobile";
|
||||||
import essentialReplacePartsQuestionsDropoff_0015 from "./0015_EssentialReplacePartsQuestionsDropoff";
|
import essentialReplacePartsQuestionsDropoff_0015 from "./0015_EssentialReplacePartsQuestionsDropoff";
|
||||||
import essentialUniqueGlassTests from "./0012_EssentialUniqueGlass";
|
import essentialUniqueGlassTests from "./0012_EssentialUniqueGlass";
|
||||||
|
|
@ -19,11 +19,11 @@ import essentialTpaEnabled_0004 from "./0004_EssentialTpaEnabled";
|
||||||
import essentialRepairMobileHyundaiTests from "./0007_EssentialRepairHyundaiMobile";
|
import essentialRepairMobileHyundaiTests from "./0007_EssentialRepairHyundaiMobile";
|
||||||
import essentialTpaNotEnabledReplace_0017 from "./0017_EssentialTpaNotEnabledBailoutReplace";
|
import essentialTpaNotEnabledReplace_0017 from "./0017_EssentialTpaNotEnabledBailoutReplace";
|
||||||
import essentialTpaEnabledReplace_0018 from "./0018_EssentialTpaEnabledReplace";
|
import essentialTpaEnabledReplace_0018 from "./0018_EssentialTpaEnabledReplace";
|
||||||
import essentialTpaEnabledReplaceRecal_0019 from "./0019_EssentialTpaEnabledReplaceRecal";
|
import essentialTpaEnabledReplaceAdasTests from "./0019_EssentialTpaEnabledReplaceAdas";
|
||||||
import advancedScenario0001TestCases from "./advanced/0001a_ReplaceInShopCredit";
|
import advancedScenario0001TestCases from "./advanced/0001a_ReplaceInShopCredit";
|
||||||
import advancedScenario0003TestCases from "./advanced/0003a_MobileAfterpay";
|
import advancedScenario0003TestCases from "./advanced/0003a_MobileAfterpay";
|
||||||
import essentialReplaceDynamicAdasTests from "./0005_EssentialReplaceDynamicAdas";
|
import essentialReplaceDynamicAdasTests from "./0005_EssentialReplaceDynamicAdas";
|
||||||
import essentialReplaceStaticAdasTests from "./0001_EssentialReplaceStatisAdas";
|
import essentialReplaceStaticAdasTests from "./0001_EssentialReplaceStaticAdas";
|
||||||
import essentialPartQuestionsAndNotShareVinTests from "./0020_EssentialPartQuestionsAndNotShareVin";
|
import essentialPartQuestionsAndNotShareVinTests from "./0020_EssentialPartQuestionsAndNotShareVin";
|
||||||
import essentialServiceableBigTruckTestCases from "./0022_EssentialServiceableBigTruck";
|
import essentialServiceableBigTruckTestCases from "./0022_EssentialServiceableBigTruck";
|
||||||
import essentialNonServiceableBigTruckTestCases from "./0023_EssentialNonServiceableBigTruck";
|
import essentialNonServiceableBigTruckTestCases from "./0023_EssentialNonServiceableBigTruck";
|
||||||
|
|
@ -74,8 +74,8 @@ test.describe.parallel('ISS QA Automation Regression', () => {
|
||||||
addSmokeTagToRandomTest(essentialTpaEnabled_0004);
|
addSmokeTagToRandomTest(essentialTpaEnabled_0004);
|
||||||
addSmokeTagToRandomTest(essentialReplaceDynamicAdasTests);
|
addSmokeTagToRandomTest(essentialReplaceDynamicAdasTests);
|
||||||
addSmokeTagToRandomTest(essentialRepairMobileHyundaiTests);
|
addSmokeTagToRandomTest(essentialRepairMobileHyundaiTests);
|
||||||
addSmokeTagToRandomTest(essentialVehicleNotFoundTestCases);
|
addSmokeTagToRandomTest(essentialVehicleNotFoundVINLookupTests);
|
||||||
addSmokeTagToRandomTest(essentialPartsServiceErrorBailout_0009);
|
addSmokeTagToRandomTest(essentialReplaceNonAdasTests);
|
||||||
addSmokeTagToRandomTest(essentialDoNotSeeShopTestCases);
|
addSmokeTagToRandomTest(essentialDoNotSeeShopTestCases);
|
||||||
addSmokeTagToRandomTest(essentialUniqueGlassTests);
|
addSmokeTagToRandomTest(essentialUniqueGlassTests);
|
||||||
addSmokeTagToRandomTest(essentialReplaceTestCases);
|
addSmokeTagToRandomTest(essentialReplaceTestCases);
|
||||||
|
|
@ -84,7 +84,7 @@ test.describe.parallel('ISS QA Automation Regression', () => {
|
||||||
addSmokeTagToRandomTest(essentialHpTestCases);
|
addSmokeTagToRandomTest(essentialHpTestCases);
|
||||||
addSmokeTagToRandomTest(essentialTpaNotEnabledReplace_0017);
|
addSmokeTagToRandomTest(essentialTpaNotEnabledReplace_0017);
|
||||||
addSmokeTagToRandomTest(essentialTpaEnabledReplace_0018);
|
addSmokeTagToRandomTest(essentialTpaEnabledReplace_0018);
|
||||||
addSmokeTagToRandomTest(essentialTpaEnabledReplaceRecal_0019);
|
addSmokeTagToRandomTest(essentialTpaEnabledReplaceAdasTests);
|
||||||
addSmokeTagToRandomTest(essentialPartQuestionsAndNotShareVinTests);
|
addSmokeTagToRandomTest(essentialPartQuestionsAndNotShareVinTests);
|
||||||
addSmokeTagToRandomTest(essentialServiceableBigTruckTestCases);
|
addSmokeTagToRandomTest(essentialServiceableBigTruckTestCases);
|
||||||
addSmokeTagToRandomTest(essentialNonServiceableBigTruckTestCases);
|
addSmokeTagToRandomTest(essentialNonServiceableBigTruckTestCases);
|
||||||
|
|
@ -116,11 +116,11 @@ test.describe.parallel('ISS QA Automation Regression', () => {
|
||||||
test(...prepareTest(testCase, run, options, ruleEngine));
|
test(...prepareTest(testCase, run, options, ruleEngine));
|
||||||
}
|
}
|
||||||
//Scenario 9
|
//Scenario 9
|
||||||
for (const testCase of essentialPartsServiceErrorBailout_0009) {
|
for (const testCase of essentialReplaceNonAdasTests) {
|
||||||
test(...prepareTest(testCase, run, options, ruleEngine));
|
test(...prepareTest(testCase, run, options, ruleEngine));
|
||||||
}
|
}
|
||||||
//Scenario 10
|
//Scenario 10
|
||||||
for (const testCase of essentialVehicleNotFoundTestCases) {
|
for (const testCase of essentialVehicleNotFoundVINLookupTests) {
|
||||||
test(...prepareTest(testCase, run, options, ruleEngine));
|
test(...prepareTest(testCase, run, options, ruleEngine));
|
||||||
}
|
}
|
||||||
//Scenario 11
|
//Scenario 11
|
||||||
|
|
@ -156,7 +156,7 @@ test.describe.parallel('ISS QA Automation Regression', () => {
|
||||||
test(...prepareTest(testCase, run, options, ruleEngine));
|
test(...prepareTest(testCase, run, options, ruleEngine));
|
||||||
}
|
}
|
||||||
//Scenario 19
|
//Scenario 19
|
||||||
for (const testCase of essentialTpaEnabledReplaceRecal_0019) {
|
for (const testCase of essentialTpaEnabledReplaceAdasTests) {
|
||||||
test(...prepareTest(testCase, run, options, ruleEngine));
|
test(...prepareTest(testCase, run, options, ruleEngine));
|
||||||
}
|
}
|
||||||
//Scenario 20
|
//Scenario 20
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ for (const client of essentialClients) {
|
||||||
data.clientTag = client.clientTag;
|
data.clientTag = client.clientTag;
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0001 Essential Replace Statis ADAS Client: "${client.accountName}"`,
|
name: `0001 Essential Replace Static ADAS Client: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Essentials','@0001', '@test_report'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Essentials','@0001', '@test_report'],
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0001');
|
}, undefined, '0001');
|
||||||
|
|
@ -60,7 +60,7 @@ for (const client of essentialClients) {
|
||||||
data.clientTag = client.clientTag;
|
data.clientTag = client.clientTag;
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0002 Essential Repair Mobile Client: "${client.accountName}"`,
|
name: `0002 Essential Repair Inshop Client: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`,'@Essentials'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`,'@Essentials'],
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0002');
|
}, undefined, '0002');
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ const essentialReplaceDynamicAdasData: Partial<ITestData> = {
|
||||||
isDuplicateClaim: false,
|
isDuplicateClaim: false,
|
||||||
isPolicyFound: false,
|
isPolicyFound: false,
|
||||||
endorsements: [],
|
endorsements: [],
|
||||||
isReplace: false,
|
isReplace: true,
|
||||||
partQuestions: undefined,
|
partQuestions: undefined,
|
||||||
isSafelite: true,
|
isSafelite: true,
|
||||||
servicePackage: ServicePackage.Premium,
|
servicePackage: ServicePackage.Premium,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import { getNextWeekday } from "@impl/utils/DateUtils";
|
||||||
|
|
||||||
const nextWeekday = getNextWeekday();
|
const nextWeekday = getNextWeekday();
|
||||||
|
|
||||||
const essentialPartsServiceErrorData: Partial<ITestData> = {
|
const essentialReplaceNonAdasData: Partial<ITestData> = {
|
||||||
clientTag: 'ALL_ESSENTIAL',
|
clientTag: 'ALL_ESSENTIAL',
|
||||||
isDuplicateClaim: false,
|
isDuplicateClaim: false,
|
||||||
isPolicyFound: false,
|
isPolicyFound: false,
|
||||||
|
|
@ -48,15 +48,7 @@ const essentialPartsServiceErrorData: Partial<ITestData> = {
|
||||||
vehicleLookupType: VehicleLookupType.Vin
|
vehicleLookupType: VehicleLookupType.Vin
|
||||||
},
|
},
|
||||||
vehicleDamage: [
|
vehicleDamage: [
|
||||||
// VehicleDamage.WindshieldThreeChips,
|
|
||||||
VehicleDamage.WindshieldCrack,
|
VehicleDamage.WindshieldCrack,
|
||||||
// VehicleDamage.DriverFrontDoor,
|
|
||||||
// VehicleDamage.DriverQuarterPanel,
|
|
||||||
// VehicleDamage.DriverRearDoor,
|
|
||||||
// VehicleDamage.PassengerFrontDoor,
|
|
||||||
// VehicleDamage.PassengerQuarterPanel,
|
|
||||||
// VehicleDamage.PassengerRearDoor,
|
|
||||||
// VehicleDamage.RearWindow
|
|
||||||
],
|
],
|
||||||
appointmentDetails: {
|
appointmentDetails: {
|
||||||
serviceLocation: ServiceLocation.InShop,
|
serviceLocation: ServiceLocation.InShop,
|
||||||
|
|
@ -67,17 +59,17 @@ const essentialPartsServiceErrorData: Partial<ITestData> = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const essentialClients = ClientData.getEssentialClients();
|
const essentialClients = ClientData.getEssentialClients();
|
||||||
const essentialPartsServiceErrorBailout_0009: TestCase[] = [];
|
const essentialReplaceNonAdasTests: TestCase[] = [];
|
||||||
for (const client of essentialClients) {
|
for (const client of essentialClients) {
|
||||||
const data = {...essentialPartsServiceErrorData};
|
const data = {...essentialReplaceNonAdasData};
|
||||||
data.clientTag = client.clientTag;
|
data.clientTag = client.clientTag;
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0009 Essential Parts Service Error Client: "${client.accountName}"`,
|
name: `0009 Essential Replace Non ADAS Client: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Bailout', '@PartsServiceError', '@Essentials','@0009'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Essentials','@0009'],
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0009');
|
}, undefined, '0009');
|
||||||
essentialPartsServiceErrorBailout_0009.push(tc);
|
essentialReplaceNonAdasTests.push(tc);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default essentialPartsServiceErrorBailout_0009;
|
export default essentialReplaceNonAdasTests;
|
||||||
|
|
@ -7,7 +7,7 @@ import { getNextWeekday } from "@impl/utils/DateUtils";
|
||||||
|
|
||||||
const nextWeekday = getNextWeekday();
|
const nextWeekday = getNextWeekday();
|
||||||
|
|
||||||
const essentialVehicleNotFoundData: Partial<ITestData> = {
|
const essentialVehicleNotFoundVINLookupData: Partial<ITestData> = {
|
||||||
clientTag: 'ALL_ESSENTIAL',
|
clientTag: 'ALL_ESSENTIAL',
|
||||||
isDuplicateClaim: false,
|
isDuplicateClaim: false,
|
||||||
isPolicyFound: false,
|
isPolicyFound: false,
|
||||||
|
|
@ -48,15 +48,7 @@ const essentialVehicleNotFoundData: Partial<ITestData> = {
|
||||||
vehicleLookupType: VehicleLookupType.Vin
|
vehicleLookupType: VehicleLookupType.Vin
|
||||||
},
|
},
|
||||||
vehicleDamage: [
|
vehicleDamage: [
|
||||||
// VehicleDamage.WindshieldThreeChips,
|
|
||||||
VehicleDamage.WindshieldCrack,
|
VehicleDamage.WindshieldCrack,
|
||||||
// VehicleDamage.DriverFrontDoor,
|
|
||||||
// VehicleDamage.DriverQuarterPanel,
|
|
||||||
// VehicleDamage.DriverRearDoor,
|
|
||||||
// VehicleDamage.PassengerFrontDoor,
|
|
||||||
// VehicleDamage.PassengerQuarterPanel,
|
|
||||||
// VehicleDamage.PassengerRearDoor,
|
|
||||||
// VehicleDamage.RearWindow
|
|
||||||
],
|
],
|
||||||
appointmentDetails: {
|
appointmentDetails: {
|
||||||
serviceLocation: ServiceLocation.InShop,
|
serviceLocation: ServiceLocation.InShop,
|
||||||
|
|
@ -67,17 +59,17 @@ const essentialVehicleNotFoundData: Partial<ITestData> = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const essentialClients = ClientData.getEssentialClients();
|
const essentialClients = ClientData.getEssentialClients();
|
||||||
const essentialVehicleNotFoundTestCases: TestCase[] = [];
|
const essentialVehicleNotFoundVINLookupTests: TestCase[] = [];
|
||||||
for (const client of essentialClients) {
|
for (const client of essentialClients) {
|
||||||
const data = {...essentialVehicleNotFoundData};
|
const data = {...essentialVehicleNotFoundVINLookupData};
|
||||||
data.clientTag = client.clientTag;
|
data.clientTag = client.clientTag;
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0010 Essential Vehicle Not Found Bailout Client: "${client.accountName}"`,
|
name: `0010 Essential Vehicle Not Found VIN Lookup Client: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`,'@Essentials', '@Bailout', '@VehicleNotFound'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`,'@Essentials', '@VehicleNotFound'],
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0001');
|
}, undefined, '0010');
|
||||||
essentialVehicleNotFoundTestCases.push(tc);
|
essentialVehicleNotFoundVINLookupTests.push(tc);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default essentialVehicleNotFoundTestCases;
|
export default essentialVehicleNotFoundVINLookupTests;
|
||||||
|
|
@ -14,7 +14,7 @@ const essentialUnqiqueGlassData: Partial<ITestData> = {
|
||||||
endorsements: [],
|
endorsements: [],
|
||||||
isReplace: false,
|
isReplace: false,
|
||||||
isSafelite: true,
|
isSafelite: true,
|
||||||
servicePackage: faker.helpers.enumValue(ServicePackage),
|
servicePackage: ServicePackage.GlassOnly,
|
||||||
customerDetails: {
|
customerDetails: {
|
||||||
firstName: faker.person.firstName(),
|
firstName: faker.person.firstName(),
|
||||||
lastName: faker.person.lastName(),
|
lastName: faker.person.lastName(),
|
||||||
|
|
@ -51,12 +51,12 @@ const essentialUnqiqueGlassData: Partial<ITestData> = {
|
||||||
{
|
{
|
||||||
partQuestionType: PartQuestionType.WindshieldColor,
|
partQuestionType: PartQuestionType.WindshieldColor,
|
||||||
isOnPage: true,
|
isOnPage: true,
|
||||||
optionToSelect: 'Third Visor Frit'
|
optionToSelect: '3rd Visor Frit'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
partQuestionType: PartQuestionType.DriverSideColor,
|
partQuestionType: PartQuestionType.DriverSideColor,
|
||||||
isOnPage: true,
|
isOnPage: true,
|
||||||
optionToSelect: 'Solar, Driver side, Rear, Movable, Exc. 118" Wb, Aftermarket'
|
optionToSelect: 'Solar~left~rear~movable~exc. 118" Wb~aftermarket'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
appointmentDetails: {
|
appointmentDetails: {
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ const essentialReplaceData: Partial<ITestData> = {
|
||||||
},
|
},
|
||||||
vehicleDamage: [
|
vehicleDamage: [
|
||||||
VehicleDamage.WindshieldCrack,
|
VehicleDamage.WindshieldCrack,
|
||||||
// VehicleDamage.DriverFrontDoor,
|
|
||||||
],
|
],
|
||||||
appointmentDetails: {
|
appointmentDetails: {
|
||||||
serviceLocation: ServiceLocation.DropOff,
|
serviceLocation: ServiceLocation.DropOff,
|
||||||
|
|
@ -74,7 +73,7 @@ for (const client of essentialClients) {
|
||||||
data.clientTag = client.clientTag;
|
data.clientTag = client.clientTag;
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0015 Essential Replace Client: "${client.accountName}"`,
|
name: `0015 Essential Replace Parts Questions Drop-Off Client: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Essentials','@0015'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Essentials','@0015'],
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0015');
|
}, undefined, '0015');
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const essentialHappyPathData: Partial<ITestData> = {
|
||||||
isReplace: false,
|
isReplace: false,
|
||||||
partQuestions: undefined,
|
partQuestions: undefined,
|
||||||
isSafelite: true,
|
isSafelite: true,
|
||||||
servicePackage: faker.helpers.enumValue(ServicePackage),
|
servicePackage: ServicePackage.GlassOnly,
|
||||||
customerDetails: {
|
customerDetails: {
|
||||||
firstName: faker.person.firstName(),
|
firstName: faker.person.firstName(),
|
||||||
lastName: faker.person.lastName(),
|
lastName: faker.person.lastName(),
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ for (const client of essentialClients) {
|
||||||
data.clientTag = client.clientTag;
|
data.clientTag = client.clientTag;
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0018 Essential TPA Enabled Client-TPA happy path: "${client.accountName}"`,
|
name: `0018 Essential TPA Enabled Happy Path Client: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@TpaEnabled', '@Essentials','@0018'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@TpaEnabled', '@Essentials','@0018'],
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0018');
|
}, undefined, '0018');
|
||||||
|
|
|
||||||
|
|
@ -71,17 +71,17 @@ const essentialTpaEnabledData: Partial<ITestData> = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const essentialClients = ClientData.getEssentialClients();
|
const essentialClients = ClientData.getEssentialClients();
|
||||||
const essentialTpaEnabledReplaceRecal_0019: TestCase[] = [];
|
const essentialTpaEnabledReplaceAdasTests: TestCase[] = [];
|
||||||
for (const client of essentialClients) {
|
for (const client of essentialClients) {
|
||||||
const data = { ...essentialTpaEnabledData };
|
const data = { ...essentialTpaEnabledData };
|
||||||
data.clientTag = client.clientTag;
|
data.clientTag = client.clientTag;
|
||||||
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
data.isAuthenticationRequired = client.clientFlags.isAuthenticationEnabled ?? false
|
||||||
const tc = new TestCase({
|
const tc = new TestCase({
|
||||||
name: `0019 Essential TPA Enabled Client with Replace and ReCal vehicle: "${client.accountName}"`,
|
name: `0019 Essential TPA Enabled Client with Replace ADAS: "${client.accountName}"`,
|
||||||
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Recal', '@Essentials', '@0019'],
|
tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Recal', '@Essentials', '@0019'],
|
||||||
testData: data
|
testData: data
|
||||||
}, undefined, '0019');
|
}, undefined, '0019');
|
||||||
essentialTpaEnabledReplaceRecal_0019.push(tc);
|
essentialTpaEnabledReplaceAdasTests.push(tc);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default essentialTpaEnabledReplaceRecal_0019;
|
export default essentialTpaEnabledReplaceAdasTests;
|
||||||
|
|
@ -33,7 +33,7 @@ const advancedScenario0007Data: Partial<ITestData> = {
|
||||||
isDuplicateClaim: false,
|
isDuplicateClaim: false,
|
||||||
isPolicyFound: true,
|
isPolicyFound: true,
|
||||||
isNoComp: false,
|
isNoComp: false,
|
||||||
hasStateLawPopup: true,
|
hasStateLawPopup: false,
|
||||||
endorsements: undefined,
|
endorsements: undefined,
|
||||||
vehiclePartQuestions: [
|
vehiclePartQuestions: [
|
||||||
// {
|
// {
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ const advancedScenario0015Data: Partial<ITestData> = {
|
||||||
{
|
{
|
||||||
partQuestionType: PartQuestionType.WindshieldColor,
|
partQuestionType: PartQuestionType.WindshieldColor,
|
||||||
isOnPage: true,
|
isOnPage: true,
|
||||||
optionToSelect: 'Heated glass, Heated glass Wiper Park'
|
optionToSelect: 'Heated glass, Hwp'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
partQuestionType: PartQuestionType.DriverFrontColor,
|
partQuestionType: PartQuestionType.DriverFrontColor,
|
||||||
|
|
|
||||||
4
src/helpers/unit-test-setup-helper.js
Normal file
4
src/helpers/unit-test-setup-helper.js
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
beforeEach(() => {
|
||||||
|
// Your shared logic here
|
||||||
|
document.body.innerHTML = '<div id="app"></div>';
|
||||||
|
});
|
||||||
|
|
@ -2,6 +2,9 @@ import showIssLoadingModal from '@/helpers/loading-modal-helper';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
|
// The router scroll behavior happens before transitioning to the new page, so we need to manually scroll to top here
|
||||||
|
// to ensure that we are at the top of the page when the new page is loaded.
|
||||||
|
document.getElementById("app").scrollTop = 0;
|
||||||
showIssLoadingModal(false);
|
showIssLoadingModal(false);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue