Only mark email popup as skippable after forward nav from quote.
This commit is contained in:
parent
9b0aaeaf96
commit
e3954194df
2 changed files with 8 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ import { experimentSettings } from "@/constants/experiments";
|
|||
import experimentMixin from "@/mixins/experiment-mixin.js";
|
||||
import baseMixin from "@/mixins/base-mixin.js";
|
||||
import { containsLineItemWithPartType } from "../../helpers/service-package-helper";
|
||||
import { savePageData } from "../../router/methods/helpers/save-page-data";
|
||||
|
||||
jest.mock("@/store", () => ({
|
||||
commit: jest.fn(), // Mock store.commit
|
||||
|
|
@ -90,6 +91,10 @@ jest.mock("@/mixins/base-mixin", () => ({
|
|||
},
|
||||
}));
|
||||
|
||||
jest.mock("@/router/methods/helpers/save-page-data", () => ({
|
||||
savePageData: jest.fn(),
|
||||
}));
|
||||
|
||||
const mockExperimentSettings = experimentSettings;
|
||||
|
||||
jest.mock("@/mixins/experiment-mixin.js", () => ({
|
||||
|
|
|
|||
|
|
@ -673,14 +673,12 @@ export default {
|
|||
async closeSaveProgressPopup() {
|
||||
this.showSaveProgressPopup = false;
|
||||
|
||||
savePageData(this.pageName, { saveProgressPopupSkipped: true }, true);
|
||||
|
||||
if (this.skipToInsurance) {
|
||||
// skip ahead now if in IGQ skip experiment
|
||||
await this.skip(true, externalParamPackageLabels.GLASS_ONLY);
|
||||
}
|
||||
},
|
||||
forwardButtonAction() {
|
||||
async forwardButtonAction() {
|
||||
this.dispatchStoreAction(
|
||||
this.storeActions.SAVE_PAYMENT_TYPE,
|
||||
this.isInsuranceSelected,
|
||||
|
|
@ -751,6 +749,8 @@ export default {
|
|||
false
|
||||
);
|
||||
|
||||
await savePageData(this.pageName, { saveProgressPopupSkipped: true }, true);
|
||||
|
||||
const payment = this.$store.getters.payment;
|
||||
if (payment.isInsurance) {
|
||||
this.$router.navigateWithSaving(
|
||||
|
|
|
|||
Loading…
Reference in a new issue