CSR-98 Add experiments to query string for testing

This commit is contained in:
Katie 2022-03-17 08:28:37 -04:00
parent 6a17e122ea
commit 0d6571abf7
4 changed files with 3 additions and 7 deletions

View file

@ -33,7 +33,7 @@ export function navigateToHeritageFunnel() {
src: "concept-funnel", src: "concept-funnel",
// TODO CSR-98 REMOVE THIS // TODO CSR-98 REMOVE THIS
cns: "all", cns: "all",
experiments: "ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true" experiments: "RemoveServiceAreaPage=ServAreaRemoval_V7=ServAreaNoRemove_V7_TEST=true,ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true"
} }
); );
} }

View file

@ -49,7 +49,6 @@ export function getMountOptions(mockData) {
mocks.$router = mockData.router; mocks.$router = mockData.router;
mocks.$route = mockData.route; mocks.$route = mockData.route;
const global = { const global = {
mocks: mocks, mocks: mocks,
}; };

View file

@ -101,9 +101,6 @@ function getMixInInstance({ isDispatchSuccess = true }) {
baseMixIn.methods.$route = route; baseMixIn.methods.$route = route;
baseMixIn.methods.storeActions = storeActions; baseMixIn.methods.storeActions = storeActions;
baseMixIn.methods.widgetNames = widgetNames; baseMixIn.methods.widgetNames = widgetNames;
baseMixin.document = {
cookie: ""
}
store.dispatch = storeDispatch; store.dispatch = storeDispatch;
store.commit = jest.fn(); store.commit = jest.fn();

View file

@ -132,7 +132,7 @@ router.navigateAfterSave = (scenario, currentRoute, optionalQuery = {}, optional
// PRIVATE FUNCTIONS // PRIVATE FUNCTIONS
// Navigate to the next route, depending on the scenario. // 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) { if (!scenario) {
console.error("No scenario provided. Please review the routing table."); console.error("No scenario provided. Please review the routing table.");
return; return;
@ -169,7 +169,7 @@ function navigate(scenario, currentRoute, invalidateOnSave, optionalQuery = {},
}); });
} else if (matchingScenarioMap.destinationUrl !== undefined) { } else if (matchingScenarioMap.destinationUrl !== undefined) {
if (matchingScenarioMap.shouldNavigateToHeritageFunnel) { if (matchingScenarioMap.shouldNavigateToHeritageFunnel) {
saveOrder(); await saveOrder();
} }
navigateToUrl(matchingScenarioMap.destinationUrl, optionalQuery); navigateToUrl(matchingScenarioMap.destinationUrl, optionalQuery);