CSR-98 Add experiments to query string for testing
This commit is contained in:
parent
6a17e122ea
commit
0d6571abf7
4 changed files with 3 additions and 7 deletions
|
|
@ -33,7 +33,7 @@ export function navigateToHeritageFunnel() {
|
|||
src: "concept-funnel",
|
||||
// TODO CSR-98 REMOVE THIS
|
||||
cns: "all",
|
||||
experiments: "ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true"
|
||||
experiments: "RemoveServiceAreaPage=ServAreaRemoval_V7=ServAreaNoRemove_V7_TEST=true,ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true"
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ export function getMountOptions(mockData) {
|
|||
mocks.$router = mockData.router;
|
||||
mocks.$route = mockData.route;
|
||||
|
||||
|
||||
const global = {
|
||||
mocks: mocks,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -101,9 +101,6 @@ function getMixInInstance({ isDispatchSuccess = true }) {
|
|||
baseMixIn.methods.$route = route;
|
||||
baseMixIn.methods.storeActions = storeActions;
|
||||
baseMixIn.methods.widgetNames = widgetNames;
|
||||
baseMixin.document = {
|
||||
cookie: ""
|
||||
}
|
||||
|
||||
store.dispatch = storeDispatch;
|
||||
store.commit = jest.fn();
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ router.navigateAfterSave = (scenario, currentRoute, optionalQuery = {}, optional
|
|||
// PRIVATE FUNCTIONS
|
||||
|
||||
// Navigate to the next route, depending on the scenario.
|
||||
function navigate(scenario, currentRoute, invalidateOnSave, optionalQuery = {}, optionalParams = {}, optionalPageData = {}) {
|
||||
async function navigate(scenario, currentRoute, invalidateOnSave, optionalQuery = {}, optionalParams = {}, optionalPageData = {}) {
|
||||
if (!scenario) {
|
||||
console.error("No scenario provided. Please review the routing table.");
|
||||
return;
|
||||
|
|
@ -169,7 +169,7 @@ function navigate(scenario, currentRoute, invalidateOnSave, optionalQuery = {},
|
|||
});
|
||||
} else if (matchingScenarioMap.destinationUrl !== undefined) {
|
||||
if (matchingScenarioMap.shouldNavigateToHeritageFunnel) {
|
||||
saveOrder();
|
||||
await saveOrder();
|
||||
}
|
||||
|
||||
navigateToUrl(matchingScenarioMap.destinationUrl, optionalQuery);
|
||||
|
|
|
|||
Loading…
Reference in a new issue