From 7e87e5968347ef076a27256d5edc6ed0bd3f0798 Mon Sep 17 00:00:00 2001 From: Udayboppasafelite Date: Mon, 15 Jun 2026 21:31:15 -0400 Subject: [PATCH] Welcome Page changes and account number details in all advanced test cases --- .../business-logic/data/ClientData.ts | 25 +++++-------- .../business-logic/types/Client.ts | 1 + playwright-tests/pages/WelcomePage.ts | 37 ++++++++++++++++++- .../advanced/0002a_ReplaceOemEndorsement.ts | 1 + .../tests/advanced/0003a_MobileAfterpay.ts | 1 + .../tests/advanced/0004a_NoDeductibleAdas.ts | 1 + .../advanced/0005a_CapabilityQuestions.ts | 1 + .../0006a_RepairNoDeductibleMobile.ts | 1 + .../advanced/0007a_RepairStateLanguage.ts | 1 + .../tests/advanced/0008a_RepairTpa.ts | 1 + .../advanced/0009a_NoDeductibleFlorida.ts | 1 + .../tests/advanced/0010a_RearGlass.ts | 1 + .../tests/advanced/0011a_ItacNoAdas.ts | 1 + .../tests/advanced/0012a_ItacDropOff.ts | 1 + .../tests/advanced/0013a_ItacMobile.ts | 1 + .../tests/advanced/0014a_NoCompAdas.ts | 1 + .../advanced/0015a_NoCompPartQuestions.ts | 1 + .../tests/advanced/0016a_NoCompAllGlass.ts | 1 + .../tests/advanced/0017a_NoCompPremium.ts | 1 + .../tests/advanced/0018a_NoCompGlassOnly.ts | 1 + .../tests/advanced/0019a_NoCompEditVehicle.ts | 1 + .../tests/advanced/0020a_NoCompChangeLoc.ts | 1 + .../tests/advanced/0021a_VehicleByPlate.ts | 1 + .../tests/advanced/0022a_VehicleByVIN.ts | 1 + .../advanced/0023a_VehicleByVINPartsQns.ts | 1 + .../tests/advanced/0024a_AddressVehicle.ts | 1 + .../0025a_VehicleByVINUnverifiedBailout.ts | 1 + .../0026a_NoDeductibleAdasBailout5.ts | 1 + .../tests/advanced/0028a_ItacCancelMyClaim.ts | 1 + .../advanced/0029a_HeavyVehicleBailout.ts | 1 + .../tests/advanced/0030a_APIErrorBailout.ts | 1 + .../0031a_ReplaceServiceableBigTruck.ts | 1 + .../0032a_DeclineNonServiceableBigTruck.ts | 1 + 33 files changed, 77 insertions(+), 16 deletions(-) diff --git a/playwright-tests/business-logic/data/ClientData.ts b/playwright-tests/business-logic/data/ClientData.ts index 44d566e4..c52a01a0 100644 --- a/playwright-tests/business-logic/data/ClientData.ts +++ b/playwright-tests/business-logic/data/ClientData.ts @@ -101,7 +101,7 @@ const essentialClients: IClient[] = [ { clientTag: '6D13AEF6-CE16-400F-9A29-A1AED5C47D48', accountName: 'Liberty Mutual', - clientFlags: { isTpaEnabled: true }, + clientFlags: { isTpaEnabled: true, isWelcomeDamageLocationRequired: true }, bgColor: "rgb(255, 209, 0)" }, @@ -109,7 +109,7 @@ const essentialClients: IClient[] = [ clientTag: 'A5F7D473-29C4-4E2C-AD08-A3AB13FE0314', accountName: 'Safeco Insurance', accountNumber: '408810', - clientFlags: { isTpaEnabled: true }, + clientFlags: { isTpaEnabled: true, isWelcomeDamageLocationRequired: true}, bgColor: "rgb(255, 209, 0)", }, @@ -184,11 +184,6 @@ const essentialClients: IClient[] = [ accountName: 'QBE', clientFlags: {} }, - { - clientTag: 'A5F7D473-29C4-4E2C-AD08-A3AB13FE0314', - accountName: 'Safeco Insurance', - clientFlags: { isTpaEnabled: true } - }, { clientTag: '32978a45-dd2e-4fc6-b2ca-7178efb40373', accountName: 'Secura', @@ -224,7 +219,7 @@ const advancedClients: IClient[] = [ clientTag: '1216EA5F-64D1-462A-A03F-34C0A652430E', accountName: 'Liberty Mutual', accountNumber: '550036', - clientFlags: {}, + clientFlags: {isWelcomeDamageLocationRequired: true}, bgColor: "rgb(255, 209, 0)" }, @@ -232,16 +227,10 @@ const advancedClients: IClient[] = [ clientTag: 'A5F7D473-29C4-4E2C-AD08-A3AB13FE0314', accountName: 'Safeco Insurance', accountNumber: '408810', - clientFlags: { isTpaEnabled: true }, + clientFlags: { isTpaEnabled: true, isWelcomeDamageLocationRequired: true }, bgColor: "rgb(255, 209, 0)" }, - { - clientTag: '156CDB2D-D49C-49D6-BC63-12B5BEF6D922', - accountName: 'State Farm', - accountNumber: '711310', - clientFlags: {} - } ] @@ -345,4 +334,10 @@ export default class ClientData { static getDefaultPaypalDetails() { return defaultPaypalDetails; } + + static getClientByTag(clientTag: string) { + return [...essentialClients, ...advancedClients].find( + client => client.clientTag === clientTag + ); + } } \ No newline at end of file diff --git a/playwright-tests/business-logic/types/Client.ts b/playwright-tests/business-logic/types/Client.ts index a65ed2e0..27db22be 100644 --- a/playwright-tests/business-logic/types/Client.ts +++ b/playwright-tests/business-logic/types/Client.ts @@ -9,4 +9,5 @@ export interface IClient { export interface IClientFlags { isTpaEnabled: boolean; isAuthenticationEnabled: boolean; + isWelcomeDamageLocationRequired?: boolean; } \ No newline at end of file diff --git a/playwright-tests/pages/WelcomePage.ts b/playwright-tests/pages/WelcomePage.ts index cba7d0e3..d5d0a669 100644 --- a/playwright-tests/pages/WelcomePage.ts +++ b/playwright-tests/pages/WelcomePage.ts @@ -4,6 +4,7 @@ import { IClaimDetails, ICustomerDetails } from '@business-logic/types/CustomerD import { getClientAuthByClientTag, getClientSignature } from '@impl/api/AdminServiceApiUtil'; import { ICertificateInfo, IClientSignatureRequest } from '@business-logic/types/Authentication'; import { buildToken, getTimestamp } from '@impl/utils/TokenUtils'; +import ClientData from "@business-logic/data/ClientData"; export class WelcomePage extends BasePage { readonly page: Page; @@ -15,8 +16,11 @@ export class WelcomePage extends BasePage { readonly emailAddress: Locator; readonly city: Locator; readonly state: Locator; + readonly lossCity: Locator; readonly cookieCloseButton: Locator; readonly GetStartedButton: Locator; + readonly applicationPageHeader: Locator; + url = process.env['BASE_URL']! + '/?issPage=welcome-page'; issPageValue = 'welcome-page'; @@ -33,6 +37,8 @@ export class WelcomePage extends BasePage { this.state = page.locator('select[name="\\38 fdf9dc2e13e430eb57529499dceb3eb"]'); this.cookieCloseButton = page.getByRole('button', { name: 'Close' }); this.GetStartedButton = page.getByRole('button', { name: 'Get Started' }); + this.lossCity = page.getByRole('textbox', { name: 'Loss city' }); + this.applicationPageHeader = page.locator('.site-header-container'); } async goto(clientTag: string) { @@ -70,11 +76,40 @@ export class WelcomePage extends BasePage { await this.cookieCloseButton.click(); } - async hasCityInfo() { + async hasCityInfo() { await expect.soft(this.damageCause).toBeVisible(); return this.city.isVisible(); } + async hasLossLocationInfo() { + return this.lossCity.isVisible(); + } + + async hasApplicationPageHeader(currentClientTag: string) { + const client = ClientData.getClientByTag(currentClientTag); + + if (client?.bgColor) { + const actualBgColor = await this.applicationPageHeader.evaluate((el) => { + return window.getComputedStyle(el).getPropertyValue('background-color'); + }); + + const normalize = (color: string) => color.replace(/\s+/g, ''); + expect(normalize(actualBgColor)).toBe(normalize(client.bgColor)); + } + } + + async validateDamageLocationFieldsIfRequired(clientTag: string) { + const client = ClientData.getClientByTag(clientTag); + if (!client?.clientFlags.isWelcomeDamageLocationRequired) { + return; + } + + await expect(this.page.getByText(/which city did the damage occur/i)).toBeVisible(); + await expect(this.page.getByText(/which state did the damage occur/i)).toBeVisible(); + await expect(this.city).toBeVisible(); + await expect(this.state).toBeVisible(); + } + async populatePage(customerDetails: ICustomerDetails, claimDetails: IClaimDetails, isFillCityInfo: boolean) { await this.policyNumber.fill(claimDetails.policyNumber); await this.phoneNumber.fill(customerDetails.phoneNumber); diff --git a/playwright-tests/tests/advanced/0002a_ReplaceOemEndorsement.ts b/playwright-tests/tests/advanced/0002a_ReplaceOemEndorsement.ts index c124598f..2a9dc346 100644 --- a/playwright-tests/tests/advanced/0002a_ReplaceOemEndorsement.ts +++ b/playwright-tests/tests/advanced/0002a_ReplaceOemEndorsement.ts @@ -117,6 +117,7 @@ const advancedScenario0002TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0002Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0002a_Advanced_Replace_Deductible_Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0003a_MobileAfterpay.ts b/playwright-tests/tests/advanced/0003a_MobileAfterpay.ts index 11ccc760..908ceff8 100644 --- a/playwright-tests/tests/advanced/0003a_MobileAfterpay.ts +++ b/playwright-tests/tests/advanced/0003a_MobileAfterpay.ts @@ -85,6 +85,7 @@ const advancedScenario0003TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0003Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0003a Advanced Replace Deductible Mobile Afterpay Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0004a_NoDeductibleAdas.ts b/playwright-tests/tests/advanced/0004a_NoDeductibleAdas.ts index 21015d9d..845a8907 100644 --- a/playwright-tests/tests/advanced/0004a_NoDeductibleAdas.ts +++ b/playwright-tests/tests/advanced/0004a_NoDeductibleAdas.ts @@ -71,6 +71,7 @@ const advancedScenario0004aTestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0004aData }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0004a Advanced Replace Deductible Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0005a_CapabilityQuestions.ts b/playwright-tests/tests/advanced/0005a_CapabilityQuestions.ts index 0d0bc31f..afdbfc4f 100644 --- a/playwright-tests/tests/advanced/0005a_CapabilityQuestions.ts +++ b/playwright-tests/tests/advanced/0005a_CapabilityQuestions.ts @@ -80,6 +80,7 @@ const advancedScenario0005TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0005Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0005a Advanced Replace Capability Questions Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0006a_RepairNoDeductibleMobile.ts b/playwright-tests/tests/advanced/0006a_RepairNoDeductibleMobile.ts index 279f141c..3a14441a 100644 --- a/playwright-tests/tests/advanced/0006a_RepairNoDeductibleMobile.ts +++ b/playwright-tests/tests/advanced/0006a_RepairNoDeductibleMobile.ts @@ -84,6 +84,7 @@ const advancedScenario0006TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0006Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0006a Advanced Repair No Deductible Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0007a_RepairStateLanguage.ts b/playwright-tests/tests/advanced/0007a_RepairStateLanguage.ts index 0ece73cd..341097ca 100644 --- a/playwright-tests/tests/advanced/0007a_RepairStateLanguage.ts +++ b/playwright-tests/tests/advanced/0007a_RepairStateLanguage.ts @@ -84,6 +84,7 @@ const advancedScenario0007TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0007Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0007a Advanced Repair SC State Language Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0008a_RepairTpa.ts b/playwright-tests/tests/advanced/0008a_RepairTpa.ts index 621ea38d..e239cd54 100644 --- a/playwright-tests/tests/advanced/0008a_RepairTpa.ts +++ b/playwright-tests/tests/advanced/0008a_RepairTpa.ts @@ -70,6 +70,7 @@ const advancedScenario0008TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0008Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0008a Advanced Repair TPA Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0009a_NoDeductibleFlorida.ts b/playwright-tests/tests/advanced/0009a_NoDeductibleFlorida.ts index 7b0dae5b..de838044 100644 --- a/playwright-tests/tests/advanced/0009a_NoDeductibleFlorida.ts +++ b/playwright-tests/tests/advanced/0009a_NoDeductibleFlorida.ts @@ -90,6 +90,7 @@ const advancedScenario0009TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0009Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0009a Advanced Replace No Deductible FL Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0010a_RearGlass.ts b/playwright-tests/tests/advanced/0010a_RearGlass.ts index bc4e0c8f..d1b71b63 100644 --- a/playwright-tests/tests/advanced/0010a_RearGlass.ts +++ b/playwright-tests/tests/advanced/0010a_RearGlass.ts @@ -91,6 +91,7 @@ const advancedScenario0010TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0010Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0010a Advanced Replace No Deductible FL Rear Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0011a_ItacNoAdas.ts b/playwright-tests/tests/advanced/0011a_ItacNoAdas.ts index 7d3a1b04..3a146f53 100644 --- a/playwright-tests/tests/advanced/0011a_ItacNoAdas.ts +++ b/playwright-tests/tests/advanced/0011a_ItacNoAdas.ts @@ -104,6 +104,7 @@ const advancedScenario0011TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0011Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0011a Advanced ITAC No Adas Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0012a_ItacDropOff.ts b/playwright-tests/tests/advanced/0012a_ItacDropOff.ts index 9f393b66..0128076b 100644 --- a/playwright-tests/tests/advanced/0012a_ItacDropOff.ts +++ b/playwright-tests/tests/advanced/0012a_ItacDropOff.ts @@ -79,6 +79,7 @@ const advancedScenario0012TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0012Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0012a Advanced ITAC Drop-Off Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0013a_ItacMobile.ts b/playwright-tests/tests/advanced/0013a_ItacMobile.ts index 288f631e..656732eb 100644 --- a/playwright-tests/tests/advanced/0013a_ItacMobile.ts +++ b/playwright-tests/tests/advanced/0013a_ItacMobile.ts @@ -81,6 +81,7 @@ const advancedScenario0013TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0013Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0013a Advanced $0 Deductible with Vaps Mobile Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0014a_NoCompAdas.ts b/playwright-tests/tests/advanced/0014a_NoCompAdas.ts index a88d2ba9..c29a5714 100644 --- a/playwright-tests/tests/advanced/0014a_NoCompAdas.ts +++ b/playwright-tests/tests/advanced/0014a_NoCompAdas.ts @@ -79,6 +79,7 @@ const advancedScenario0014TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0014Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0014a Advanced Replace NoComp Adas Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0015a_NoCompPartQuestions.ts b/playwright-tests/tests/advanced/0015a_NoCompPartQuestions.ts index e4aca6e3..407c83e6 100644 --- a/playwright-tests/tests/advanced/0015a_NoCompPartQuestions.ts +++ b/playwright-tests/tests/advanced/0015a_NoCompPartQuestions.ts @@ -92,6 +92,7 @@ const advancedScenario0015TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0015Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0015a Advanced Replace NoComp Parts Questions Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0016a_NoCompAllGlass.ts b/playwright-tests/tests/advanced/0016a_NoCompAllGlass.ts index 23796265..65fb30db 100644 --- a/playwright-tests/tests/advanced/0016a_NoCompAllGlass.ts +++ b/playwright-tests/tests/advanced/0016a_NoCompAllGlass.ts @@ -114,6 +114,7 @@ const advancedScenario0016TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0016Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0016a Advanced Replace NoComp All Glass Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@Defect-INSR-2138'], diff --git a/playwright-tests/tests/advanced/0017a_NoCompPremium.ts b/playwright-tests/tests/advanced/0017a_NoCompPremium.ts index 5c70f919..c2f7c607 100644 --- a/playwright-tests/tests/advanced/0017a_NoCompPremium.ts +++ b/playwright-tests/tests/advanced/0017a_NoCompPremium.ts @@ -85,6 +85,7 @@ const advancedScenario0017TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0017Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0017a Advanced Repair NoComp Premium Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0018a_NoCompGlassOnly.ts b/playwright-tests/tests/advanced/0018a_NoCompGlassOnly.ts index 9cb32f2a..8b63aafa 100644 --- a/playwright-tests/tests/advanced/0018a_NoCompGlassOnly.ts +++ b/playwright-tests/tests/advanced/0018a_NoCompGlassOnly.ts @@ -82,6 +82,7 @@ const advancedScenario0018TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0018Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0018a Advanced Repair No Deductible Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0019a_NoCompEditVehicle.ts b/playwright-tests/tests/advanced/0019a_NoCompEditVehicle.ts index 48ce03b8..033c4e3c 100644 --- a/playwright-tests/tests/advanced/0019a_NoCompEditVehicle.ts +++ b/playwright-tests/tests/advanced/0019a_NoCompEditVehicle.ts @@ -84,6 +84,7 @@ const advancedScenario0019TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0019Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0019a Advanced Repair No Deductible Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0020a_NoCompChangeLoc.ts b/playwright-tests/tests/advanced/0020a_NoCompChangeLoc.ts index a565be44..c55f5310 100644 --- a/playwright-tests/tests/advanced/0020a_NoCompChangeLoc.ts +++ b/playwright-tests/tests/advanced/0020a_NoCompChangeLoc.ts @@ -83,6 +83,7 @@ const advancedScenario0020TestCases: TestCase[] = []; for (const client of advancedClients) { const data = {...advancedScenario0020Data}; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0020a Advanced Repair Change Location Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced','@Defect-INSR-2149'], diff --git a/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts b/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts index 711ab691..a7c43f72 100644 --- a/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts +++ b/playwright-tests/tests/advanced/0021a_VehicleByPlate.ts @@ -77,6 +77,7 @@ const advancedScenario0021TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0021Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0021a Advanced client Vehicle By License Plate: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0022a_VehicleByVIN.ts b/playwright-tests/tests/advanced/0022a_VehicleByVIN.ts index 671c69de..5bf11027 100644 --- a/playwright-tests/tests/advanced/0022a_VehicleByVIN.ts +++ b/playwright-tests/tests/advanced/0022a_VehicleByVIN.ts @@ -74,6 +74,7 @@ const advancedScenario0022TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0022Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0022a Advanced Client Vehicle By Vin: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0023a_VehicleByVINPartsQns.ts b/playwright-tests/tests/advanced/0023a_VehicleByVINPartsQns.ts index 5a33473c..6e034a0d 100644 --- a/playwright-tests/tests/advanced/0023a_VehicleByVINPartsQns.ts +++ b/playwright-tests/tests/advanced/0023a_VehicleByVINPartsQns.ts @@ -74,6 +74,7 @@ const advancedScenario0023TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0023Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0023a Advanced client Unlisted Vehicle: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0024a_AddressVehicle.ts b/playwright-tests/tests/advanced/0024a_AddressVehicle.ts index dbfcb8ae..7aa61dc3 100644 --- a/playwright-tests/tests/advanced/0024a_AddressVehicle.ts +++ b/playwright-tests/tests/advanced/0024a_AddressVehicle.ts @@ -81,6 +81,7 @@ const advancedScenario0024TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0024Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0024a Advanced Client Address Vehicle Lookup: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0025a_VehicleByVINUnverifiedBailout.ts b/playwright-tests/tests/advanced/0025a_VehicleByVINUnverifiedBailout.ts index 435d5a51..a31c610b 100644 --- a/playwright-tests/tests/advanced/0025a_VehicleByVINUnverifiedBailout.ts +++ b/playwright-tests/tests/advanced/0025a_VehicleByVINUnverifiedBailout.ts @@ -74,6 +74,7 @@ const advancedScenario0025TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0025Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0025a Advanced client Unlisted Vehicle Bailout: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts b/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts index 63902ced..4bd6d659 100644 --- a/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts +++ b/playwright-tests/tests/advanced/0026a_NoDeductibleAdasBailout5.ts @@ -76,6 +76,7 @@ const advancedScenario0026aTestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0026aData }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0026a Advanced Replace Deductible Client: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0028a_ItacCancelMyClaim.ts b/playwright-tests/tests/advanced/0028a_ItacCancelMyClaim.ts index 56e5888b..5ea84868 100644 --- a/playwright-tests/tests/advanced/0028a_ItacCancelMyClaim.ts +++ b/playwright-tests/tests/advanced/0028a_ItacCancelMyClaim.ts @@ -83,6 +83,7 @@ const advancedScenario0028aTestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0028aData }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0028a Advanced ITAC Cancel My Claim: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0029a_HeavyVehicleBailout.ts b/playwright-tests/tests/advanced/0029a_HeavyVehicleBailout.ts index 308ac97a..be5d128c 100644 --- a/playwright-tests/tests/advanced/0029a_HeavyVehicleBailout.ts +++ b/playwright-tests/tests/advanced/0029a_HeavyVehicleBailout.ts @@ -77,6 +77,7 @@ const advancedScenario0029TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0029Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0029a Advanced client Unlisted Vehicle: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0030a_APIErrorBailout.ts b/playwright-tests/tests/advanced/0030a_APIErrorBailout.ts index 295c3aed..5ff0cef1 100644 --- a/playwright-tests/tests/advanced/0030a_APIErrorBailout.ts +++ b/playwright-tests/tests/advanced/0030a_APIErrorBailout.ts @@ -78,6 +78,7 @@ const advancedScenario0030aTestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0030aData }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0030a Advanced API Error Bailout: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced', '@INSR-2057'], diff --git a/playwright-tests/tests/advanced/0031a_ReplaceServiceableBigTruck.ts b/playwright-tests/tests/advanced/0031a_ReplaceServiceableBigTruck.ts index bf4218e5..5699def3 100644 --- a/playwright-tests/tests/advanced/0031a_ReplaceServiceableBigTruck.ts +++ b/playwright-tests/tests/advanced/0031a_ReplaceServiceableBigTruck.ts @@ -75,6 +75,7 @@ const advancedScenario0031TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0031Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0031a Advanced Replace Serviceable Big Truck: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'], diff --git a/playwright-tests/tests/advanced/0032a_DeclineNonServiceableBigTruck.ts b/playwright-tests/tests/advanced/0032a_DeclineNonServiceableBigTruck.ts index 20185f72..f9653fa7 100644 --- a/playwright-tests/tests/advanced/0032a_DeclineNonServiceableBigTruck.ts +++ b/playwright-tests/tests/advanced/0032a_DeclineNonServiceableBigTruck.ts @@ -73,6 +73,7 @@ const advancedScenario0032TestCases: TestCase[] = []; for (const client of advancedClients) { const data = { ...advancedScenario0032Data }; data.clientTag = client.clientTag; + data.accountNumber = client.accountNumber; const tc = new TestCase({ name: `0032a Advanced Decline Non-Serviceable Big Truck: "${client.accountName}"`, tags: [`@${client.clientTag}`, `@${client.accountName}`, '@Advanced'],