Merge pull request #306 from Safelite/feature/CSR-99

Temporary until estimate and vin pages exist
This commit is contained in:
Frank Rua 2022-03-29 13:59:52 -04:00 committed by GitHub
commit 4c4bfc5c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -45,9 +45,11 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}, existingHerita
return 'vehicle-damage'
} else {
if (store.getters.vehicle.vin) {
return "vin-lookup";
return 'vehicle-damage';
//return "vin-lookup"; (uncomment)
} else {
return "estimate"
return 'vehicle-damage';
//return "estimate" (uncomment)
}
}

View file

@ -228,7 +228,8 @@ describe("getPageToRouteExistingOrderTo", () => {
const result = await getPageToRouteExistingOrderTo(toRoute, false);
//Assert
expect(result).toBe('vin-lookup');
//expect(result).toBe('vin-lookup');
expect(result).toBe('vehicle-damage');
});
test("getPageToRouteExistingOrderTo, should return estimate", async () => {
@ -283,7 +284,8 @@ describe("getPageToRouteExistingOrderTo", () => {
const result = await getPageToRouteExistingOrderTo(toRoute, false);
//Assert
expect(result).toBe('estimate');
//expect(result).toBe('estimate');
expect(result).toBe('vehicle-damage');
});
test("getPageToRouteExistingOrderTo, existing order, should return heritage", async () => {