IO-3181-Testing-Framework-Selection: Remove Cypress, upgrade Split
This commit is contained in:
@@ -118,3 +118,8 @@ export const setCurrentEula = (eula) => ({
|
||||
export const acceptEula = () => ({
|
||||
type: UserActionTypes.EULA_ACCEPTED
|
||||
});
|
||||
|
||||
export const setImexShopId = (imexshopid) => ({
|
||||
type: UserActionTypes.SET_IMEX_SHOP_ID,
|
||||
payload: imexshopid
|
||||
});
|
||||
|
||||
@@ -121,6 +121,11 @@ const userReducer = (state = INITIAL_STATE, action) => {
|
||||
};
|
||||
case UserActionTypes.SET_AUTH_LEVEL:
|
||||
return { ...state, authLevel: action.payload };
|
||||
case UserActionTypes.SET_IMEX_SHOP_ID:
|
||||
return {
|
||||
...state,
|
||||
imexshopid: action.payload
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ import { getToken } from "firebase/messaging";
|
||||
import i18next from "i18next";
|
||||
import LogRocket from "logrocket";
|
||||
import { all, call, delay, put, select, takeLatest } from "redux-saga/effects";
|
||||
import { factory } from "../../App/App.container";
|
||||
import {
|
||||
analytics,
|
||||
auth,
|
||||
@@ -35,6 +34,7 @@ import {
|
||||
sendPasswordResetFailure,
|
||||
sendPasswordResetSuccess,
|
||||
setAuthlevel,
|
||||
setImexShopId,
|
||||
setInstanceConflict,
|
||||
setInstanceId,
|
||||
setLocalFingerprint,
|
||||
@@ -318,7 +318,8 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
factory.client(payload.imexshopid);
|
||||
// Dispatch the imexshopid to Redux store
|
||||
yield put(setImexShopId(payload.imexshopid));
|
||||
|
||||
const authRecord = payload.associations.filter((a) => a.useremail.toLowerCase() === userEmail.toLowerCase());
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ const UserActionTypes = {
|
||||
CHECK_ACTION_CODE_SUCCESS: "CHECK_ACTION_CODE_SUCCESS",
|
||||
CHECK_ACTION_CODE_FAILURE: "CHECK_ACTION_CODE_FAILURE",
|
||||
SET_CURRENT_EULA: "SET_CURRENT_EULA",
|
||||
EULA_ACCEPTED: "EULA_ACCEPTED"
|
||||
EULA_ACCEPTED: "EULA_ACCEPTED",
|
||||
SET_IMEX_SHOP_ID: "SET_IMEX_SHOP_ID"
|
||||
};
|
||||
export default UserActionTypes;
|
||||
|
||||
Reference in New Issue
Block a user