Remove comments
This commit is contained in:
parent
f8b1741656
commit
adc0a013a8
1 changed files with 2 additions and 38 deletions
|
|
@ -498,16 +498,6 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
forceAPIError(page, '/vehicle/api/v1/vehicle/lookup')
|
||||
}
|
||||
|
||||
/*await test.step('VehicleDetailsPage >> Select Vehicle', async () => {
|
||||
await vehicleSelectionPage.validateURL(vehicleSelectionPage.issPageValue);
|
||||
await vehicleSelectionPage.selectVehicle(vehicleDetails!);
|
||||
if (isNonServiceable) {
|
||||
await vehicleSelectionPage.assertNonServiceableAlertBehavior();
|
||||
return;
|
||||
}
|
||||
await vehicleSelectionPage.nextPage();
|
||||
});*/
|
||||
|
||||
if (isNonServiceable) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -524,11 +514,6 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
// Essential flow when policy is not found
|
||||
if (isPolicyFound === false) {
|
||||
testCase.testData.isPolicyFound = false;
|
||||
/* await test.step('VehicleDamagePage >> Click Edit Vehicle', async () => {
|
||||
await vehicleDamagePage.validateURL(vehicleDamagePage.issPageValue);
|
||||
await vehicleDamagePage.editVehicleButton.click();
|
||||
});
|
||||
*/ // commented out for now because is there an edit vehicle flow?
|
||||
|
||||
await test.step('VehicleSelectionPage >> Select vehicle for essential flow', async () => {
|
||||
await vehicleSelectionPage.validateURL(vehicleSelectionPage.issPageValue);
|
||||
|
|
@ -679,7 +664,6 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
|
||||
if (vehiclePartQuestions && vehiclePartQuestions.length > 0) {
|
||||
await vehiclePartQuestionsPage.validateURL(vehiclePartQuestionsPage.issPageValue);
|
||||
//await vehiclePartQuestionsPage.validatePartQuestions(vehiclePartQuestions);
|
||||
await vehiclePartQuestionsPage.selectPartQuestionResponses(vehiclePartQuestions);
|
||||
await vehiclePartQuestionsPage.nextPage();
|
||||
}
|
||||
|
|
@ -739,10 +723,8 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
await test.step('ProviderPreferencePage >> Dismiss state law popup', async () => {
|
||||
await providerPreferencePage.validateURL(providerPreferencePage.issPageValue);
|
||||
if (vehicleDamage!.includes(VehicleDamage.WindshieldCrack)) {
|
||||
//await providerPreferencePage.validateStateLawModalIsVisible();
|
||||
await providerPreferencePage.stateLawModalOkayButton.click();
|
||||
} else {
|
||||
//await providerPreferencePage.validateStateLawRepairModalIsVisible();
|
||||
await providerPreferencePage.stateLawModalOkayButton.click();
|
||||
}
|
||||
});
|
||||
|
|
@ -763,19 +745,6 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
|
||||
});
|
||||
}
|
||||
|
||||
// validations for Recal warning mesage on schedule page
|
||||
// commented out for now will add back in to validate recal banner on schedule page
|
||||
/*if (isRecalWarning) {
|
||||
await serviceLocationPage.validateURL(serviceLocationPage.issPageValue);
|
||||
await serviceLocationPage.validateRecalWarning();
|
||||
}*/
|
||||
|
||||
// if isRecalNotifidation flag true additional step to acknowledge Recal notification.
|
||||
if (isRecalNotification) {
|
||||
await providerPreferencePage.validateURL(providerPreferencePage.issPageValue);
|
||||
//await providerPreferencePage.acknowledgeRecalNotificaiton();
|
||||
}
|
||||
|
||||
if (!isSafelite && isUnverifiedPolicyAfterVehicleLookup) {
|
||||
await test.step('ProviderPreferencePage >> Schedule TPA without Adas', async () => {
|
||||
|
|
@ -814,7 +783,6 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
|
||||
await test.step('TpaSubmitPage >> TPA Submit', async () => {
|
||||
await tpaSubmitPage.validateURL(tpaSubmitPage.issPageValue);
|
||||
//await tpaSubmitPage.validateRecalAlert();
|
||||
if (!isUnverifiedPolicyAfterVehicleLookup) {
|
||||
await tpaSubmitPage.validateDeductible(claimDetails!);
|
||||
} else {
|
||||
|
|
@ -857,14 +825,10 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
if (appointmentDetails?.alternateMobileCity) {
|
||||
await contactDetailsPage.fillAlternateMobileStreetAndCity(appointmentDetails?.alternateMobileStreetAddress!, appointmentDetails?.alternateMobileCity!);
|
||||
}
|
||||
//await contactDetailsPage.validateAlertsAreVisible();
|
||||
//await contactDetailsPage.fillNotes(customerDetails!.notes!);
|
||||
|
||||
|
||||
await contactDetailsPage.nextPage();
|
||||
});
|
||||
/* if (isPriceServiceErrorBailout) {
|
||||
forceAPIError(page, '/price/api/v1/price/combined-quote');
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
if (isPriceServiceErrorBailout) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue