From 9687529d5e4028d89a561669f8d39af8ecace84d Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 15 Jul 2025 15:08:49 -0400 Subject: [PATCH 1/4] Tag test cases to test pr gate pipeline Updates test case tags to reflect the correct issue IDs and removes outdated references. This ensures accurate test reporting and traceability. --- playwright-tests/tests/CashRepairInShopAfterPay.ts | 2 +- playwright-tests/tests/CashRepairInShopPayPal.ts | 2 +- playwright-tests/tests/CashRepairMobileCreditCard.ts | 2 +- playwright-tests/tests/InsuranceAcuityPaypal.ts | 2 +- .../tests/alert-validation/alert0003_SplitWindshield.ts | 2 +- playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/playwright-tests/tests/CashRepairInShopAfterPay.ts b/playwright-tests/tests/CashRepairInShopAfterPay.ts index 1beced679..bd5ff6abd 100644 --- a/playwright-tests/tests/CashRepairInShopAfterPay.ts +++ b/playwright-tests/tests/CashRepairInShopAfterPay.ts @@ -42,7 +42,7 @@ const cashRepairInShopAfterPayTests: ITestCase[] = []; const tc = { name: `CashRepairInShopAfterPay`, - tags: ['@E2E','@CashRepairInShopAfterPay', '@test_report', '@CASH', '@CASH-836'], + tags: ['@E2E','@CashRepairInShopAfterPay', '@test_report', '@CASH', '@CASH-1187'], testData: cashRepairInShopAfterPayData }; cashRepairInShopAfterPayTests.push(tc); diff --git a/playwright-tests/tests/CashRepairInShopPayPal.ts b/playwright-tests/tests/CashRepairInShopPayPal.ts index a2e7351f1..2a36127f4 100644 --- a/playwright-tests/tests/CashRepairInShopPayPal.ts +++ b/playwright-tests/tests/CashRepairInShopPayPal.ts @@ -42,7 +42,7 @@ const cashRepairInShopPayPalTests: ITestCase[] = []; const tc = { name: `CashRepairInShopPayPal`, - tags: ['@E2E','@CashRepairInShopPayPal', '@test_report', '@CASH', '@CASH-836'], + tags: ['@E2E','@CashRepairInShopPayPal', '@test_report', '@CASH'], testData: cashRepairInShopPayPalData }; cashRepairInShopPayPalTests.push(tc); diff --git a/playwright-tests/tests/CashRepairMobileCreditCard.ts b/playwright-tests/tests/CashRepairMobileCreditCard.ts index 1e379439f..b776f7fa5 100644 --- a/playwright-tests/tests/CashRepairMobileCreditCard.ts +++ b/playwright-tests/tests/CashRepairMobileCreditCard.ts @@ -55,7 +55,7 @@ const cashRepairMobileCCTests: ITestCase[] = []; const tc = { name: `CashRepairMobileCreditCard`, - tags: ['@E2E','@CashRepairMobileCreditCard', '@test_report', '@CASH', '@CASH-836'], + tags: ['@E2E','@CashRepairMobileCreditCard', '@test_report', '@CASH'], testData: cashRepairMobileCCData }; cashRepairMobileCCTests.push(tc); diff --git a/playwright-tests/tests/InsuranceAcuityPaypal.ts b/playwright-tests/tests/InsuranceAcuityPaypal.ts index b70c60e2d..0a97fc794 100644 --- a/playwright-tests/tests/InsuranceAcuityPaypal.ts +++ b/playwright-tests/tests/InsuranceAcuityPaypal.ts @@ -90,7 +90,7 @@ const insuranceAcuityPaypalTests: ITestCase[] = []; const tc = { name: `InsuranceAcuityPaypal`, - tags: ['@E2E','@InsuranceAcuityPaypal', '@test_report', '@Insurance'], + tags: ['@E2E','@InsuranceAcuityPaypal', '@test_report', '@Insurance', '@CASH-1187'], testData: insuranceAcuityPaypalData }; insuranceAcuityPaypalTests.push(tc); diff --git a/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts b/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts index d63bb5fcf..e79c0c175 100644 --- a/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts +++ b/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts @@ -64,7 +64,7 @@ vehiclesToTest.forEach((vehicle, index) => { const tc = { name: `alert0003_${vehicle.make.toLowerCase()}_${vehicle.model.toLowerCase()} Windshield selected, when vehicle has split windshield - ${vehicle.make} ${vehicle.model} ${vehicle.year}`, - tags: ['@Alert', '@SplitWindshield', '@test_report', `@${vehicle.make.toLowerCase()}`, '@CASH-836'], + tags: ['@Alert', '@SplitWindshield', '@test_report', `@${vehicle.make.toLowerCase()}`], testData: testData }; diff --git a/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts b/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts index d01bb91f8..d4f1c2545 100644 --- a/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts +++ b/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts @@ -33,7 +33,7 @@ const repairOnlyTests: ITestCase[] = []; const tc = { name: `alert0004 Replace selected when not offered`, - tags: ['@Alert', '@RepairOnly', '@test_report', '@CASH-836'], + tags: ['@Alert', '@RepairOnly', '@test_report', '@CASH-1187'], testData: repairOnlyData }; repairOnlyTests.push(tc); From 1689088fdf45fa4100fac5f291cb7cc852f6d9a7 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Wed, 16 Jul 2025 09:30:17 -0400 Subject: [PATCH 2/4] Adds CASH-1187 tag and comment for test. Adds a tag to the heavy truck test case and a comment to App.vue. The tag is for tracking purposes. The comment is for testing. Relates to CASH-1187 --- playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts | 2 +- src/App.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts b/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts index 3ec0ff648..e81038f44 100644 --- a/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts +++ b/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts @@ -46,7 +46,7 @@ const heavyTruckTests: ITestCase[] = []; const tc: ITestCase = { name: `alert0001 Heavy Truck`, - tags: ['@Alert', '@HeavyTruck', '@test_report'], + tags: ['@Alert', '@HeavyTruck', '@test_report', '@CASH-1187'], testData: heavyTruckData }; diff --git a/src/App.vue b/src/App.vue index cae31dd24..e6707767b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -61,6 +61,7 @@ window.onerror = (msg, url, line, col, error) => { // If you return true, then error alerts (like in older versions of // Internet Explorer) will be suppressed. + // Additonal comment for test var suppressErrorAlert = true; return suppressErrorAlert; }; From 4d387685540ecd0feb4ad07c42fe3fa3e869b27b Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Wed, 16 Jul 2025 12:43:24 -0400 Subject: [PATCH 3/4] Updates npm registry configuration Updates the npm registry configuration. Removes authentication token from .npmrc. --- playwright-tests/.npmrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwright-tests/.npmrc b/playwright-tests/.npmrc index 44002a41d..13a1273bf 100644 --- a/playwright-tests/.npmrc +++ b/playwright-tests/.npmrc @@ -1,3 +1,3 @@ -registry=https://pkgs.dev.azure.com/Safelite/Digital/_packaging/DigitalQA/npm/registry/ -always-auth=true -//pkgs.dev.azure.com/Safelite/Digital/_packaging/DigitalQA/npm/registry/:_authToken=${NPM_TOKEN} \ No newline at end of file +registry=https://pkgs.dev.azure.com/Safelite/Digital/_packaging/DigitalQA/npm/registry/ + +always-auth=true \ No newline at end of file From 70a69079e7dc08401ffcee0d1487de0cbada00ba Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Wed, 16 Jul 2025 12:44:45 -0400 Subject: [PATCH 4/4] Removes unnecessary comment Removes an extraneous comment from the error handling logic, improving code clarity. --- src/App.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index e6707767b..cae31dd24 100644 --- a/src/App.vue +++ b/src/App.vue @@ -61,7 +61,6 @@ window.onerror = (msg, url, line, col, error) => { // If you return true, then error alerts (like in older versions of // Internet Explorer) will be suppressed. - // Additonal comment for test var suppressErrorAlert = true; return suppressErrorAlert; };