Merge pull request #911 from Safelite/defect/digital/SSR-1942
SSR-1942 Attempt to fix timing issues with playwright
This commit is contained in:
commit
4e21802248
4 changed files with 11 additions and 16 deletions
|
|
@ -13,7 +13,7 @@
|
|||
disableAutoFill
|
||||
validationRules="street-address-required"
|
||||
@keydown.enter.prevent
|
||||
@focusout="fillInAddress()" />
|
||||
@focusout="fillInAddressUsingFirstItem()" />
|
||||
</div>
|
||||
</div>
|
||||
<transition
|
||||
|
|
|
|||
|
|
@ -193,6 +193,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
arePagePrerequisitesValid() {
|
||||
return !!this.mainStore.pageData(issPageValues.BAILOUT_PAGE);
|
||||
},
|
||||
backButtonAction() {
|
||||
// route to move backwards
|
||||
this.mainStore.resetBailout();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
id="address-questions-wrapper"
|
||||
ref="addressQuestions"
|
||||
v-model="customerQuestions.addressQuestions"
|
||||
includeStreetAddress2="true" />
|
||||
:includeStreetAddress2="true" />
|
||||
<textboxQuestion
|
||||
ref="policyHolderFirstName"
|
||||
v-model="customerQuestions.firstName"
|
||||
|
|
|
|||
|
|
@ -119,7 +119,6 @@ export default {
|
|||
vin,
|
||||
forwardButtonCarStyle: '',
|
||||
vinPopulatedOnPageLoad: vin?.length > 0 && this.hasValidCarId(),
|
||||
hasBailedOut: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -231,13 +230,12 @@ export default {
|
|||
|
||||
this.needToLookupVehicle = false;
|
||||
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
let isSelectedGlassAvailableForVehicle = true;
|
||||
if (this.isCarIdDifferentFromTheStore) {
|
||||
isSelectedGlassAvailableForVehicle =
|
||||
await isGlassAvailableForCarId(this.vehicleFromLookup.carId);
|
||||
isSelectedGlassAvailableForVehicle = await isGlassAvailableForCarId(this.vehicleFromLookup.carId);
|
||||
}
|
||||
|
||||
// navigate back to vehicle-damage
|
||||
|
|
@ -255,7 +253,7 @@ export default {
|
|||
);
|
||||
|
||||
// navigate() doesn't stop the processing flow
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
// save vehicle to store if it hasn't already been saved
|
||||
|
|
@ -268,28 +266,22 @@ export default {
|
|||
this.navigationScenarios.CORRECTED_VIN_FROM_POLICY_VEHICLE,
|
||||
this.$route
|
||||
);
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
const partsOrQuestionsResponse = await this.getPartsOrQuestions();
|
||||
if (partsOrQuestionsResponse.error) {
|
||||
this.mainStore.setBailout(bailoutMessage.PartsServiceError(partsOrQuestionsResponse.error.data));
|
||||
window.console.error('Error on retrieving PartsOrQuestions');
|
||||
this.$refs.siteFooter.removeLoader();
|
||||
this.hasBailedOut = true;
|
||||
this.$router.navigate(
|
||||
this.navigationScenarios.CLICKED_FORWARD_WITH_BAILOUT,
|
||||
this.$route
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// Comes from vehicleQuestionsMixin.navigateForward()
|
||||
if (!this.hasBailedOut) {
|
||||
await this.navigateForward(
|
||||
partsOrQuestionsResponse.data.partsOrQuestions,
|
||||
this
|
||||
);
|
||||
}
|
||||
await this.navigateForward(partsOrQuestionsResponse.data.partsOrQuestions, this);
|
||||
},
|
||||
async lookupVehicleByVin(vin) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue