Minor changes
This commit is contained in:
parent
22e6c26233
commit
0b2c293f42
3 changed files with 10 additions and 11 deletions
|
|
@ -30,5 +30,6 @@ export class BailoutSuccessPage extends BasePage {
|
|||
await this.validateBailoutSuccessPage();
|
||||
await this.returnToHomepageButton.click();
|
||||
await expect(this.page).toHaveURL(/vehicle/);
|
||||
throw new TestSuccessAlert('Parts not found bailout validated successfully.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import cashReplaceMultiGlassMobileTests from "./CashReplaceMultiGlassMobile";
|
|||
import { getTestObject, TestCase, prepareTest, RuleEngine, TestInfo } from 'framework/Typedefs';
|
||||
import { createTestPages } from "framework/TestPages";
|
||||
import cashReplaceSwitchToInsuranceProgressiveNoCompTests from "./CashReplaceSwitchToInsuranceProgressiveNoComp";
|
||||
import insuranceBigTruckVerifiedTests from "./InsuranceBigTruckVerified";
|
||||
import insuranceUSAABigTruckVerifiedTests from "./InsuranceUSAABigTruckVerified";
|
||||
import partsNotFoundBailoutTests from "./PartsNotFoundBailout";
|
||||
import insuranceUnverifiedTests from "./InsuranceUnverified";
|
||||
import CashReplaceSplitWindshieldTests from "./CashReplaceSplitWindshield";
|
||||
|
|
@ -96,14 +96,13 @@ const allStandardTests = [
|
|||
// { name: "InsuranceUSAAMsr", tests: insuranceUSAAMsrTests },
|
||||
{ name: "InsuranceITAC21stCentury", tests: insuranceITAC21stCenturyTests },
|
||||
{ name: "InsuranceNoCompProgressive", tests: insuranceNoCompProgressiveTests },
|
||||
{name: "InsuranceBigTruckVerified", tests: insuranceBigTruckVerifiedTests},
|
||||
{name: "InsuranceUSAABigTruckVerified", tests: insuranceUSAABigTruckVerifiedTests},
|
||||
{ name: "InsuranceOEMAllstate", tests: insuranceOEMAllstateTests },
|
||||
{ name: "InsuranceUnverified", tests: insuranceUnverifiedTests },
|
||||
// {name: "InsuranceGeico", tests: insuranceGeicoTests},
|
||||
// {name: "InsuranceITACOptimizedPriceValidationAllState", tests: insuranceITACOptimizedPriceValidationAllStateTests}
|
||||
{ name: "InsuranceMeemicNearSchoolVerified", tests: insuranceMeemicNearSchoolVerifiedTests },
|
||||
{ name: "PartsNotFoundBailout", tests: partsNotFoundBailoutTests },
|
||||
|
||||
// { name: "PartsNotFoundBailout", tests: partsNotFoundBailoutTests }, // code is not available in QA
|
||||
];
|
||||
|
||||
// Alert validation scenarios
|
||||
|
|
@ -283,7 +282,6 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
await bailoutPage.handleBailoutPage(testCase.testData);
|
||||
let bailoutSuccessPage = testCase.pages.bailoutSuccessPage;
|
||||
await bailoutSuccessPage.handleBailoutSuccessPage();
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle part questions if applicable
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import { VehicleLookupType } from 'safelite-playwright-core';
|
|||
import { getDefaultTestData, setFakerSeedFromTestName } from 'safelite-playwright-core';
|
||||
|
||||
// Set the seed based on test name for consistent but unique data
|
||||
setFakerSeedFromTestName("InsuranceBigTruckVerified");
|
||||
setFakerSeedFromTestName("InsuranceUSAABigTruckVerified");
|
||||
|
||||
// Now get the test data with the seeded faker
|
||||
const insuranceBigTruckVerifiedData: Partial<ITestData> = {
|
||||
const insuranceUSAABigTruckVerifiedData: Partial<ITestData> = {
|
||||
...getDefaultTestData(), // Get default data with current seed
|
||||
|
||||
// Key feature: Insurance flow with GEICO
|
||||
|
|
@ -77,13 +77,13 @@ const insuranceBigTruckVerifiedData: Partial<ITestData> = {
|
|||
}
|
||||
}
|
||||
|
||||
const insuranceBigTruckVerifiedTests: ITestCase[] = [];
|
||||
const insuranceUSAABigTruckVerifiedTests: ITestCase[] = [];
|
||||
|
||||
const tc = {
|
||||
name: `InsuranceBigTruckVerified`,
|
||||
tags: ['@E2E','@InsuranceBigTruckVerified', '@test_report', '@Insurance'],
|
||||
testData: insuranceBigTruckVerifiedData
|
||||
testData: insuranceUSAABigTruckVerifiedData
|
||||
};
|
||||
insuranceBigTruckVerifiedTests.push(tc);
|
||||
insuranceUSAABigTruckVerifiedTests.push(tc);
|
||||
|
||||
export default insuranceBigTruckVerifiedTests;
|
||||
export default insuranceUSAABigTruckVerifiedTests;
|
||||
Loading…
Reference in a new issue