Commit 51bc5946 authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

refactor(portal): cypress e2e

refactor existing test
parent abfb98ab
import {OrganizationalUnitDisseminationPolicy} from "@admin/models/organizational-unit-dissemination-policy.model";
import {
DisseminationPolicy,
} from "@models";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {DisseminationPolicy} from "@models";
import {
Relation2TiersAction,
Relation2TiersNameSpace,
......
import {OrganizationalUnitPreservationPolicy} from "@app/features/admin/models/organizational-unit-preservation-policy.model";
import {PreservationPolicy} from "@models";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {PreservationPolicy} from "@models";
import {
Relation2TiersAction,
Relation2TiersNameSpace,
......
import {OrganizationalUnitSubmissionPolicy} from "@app/features/admin/models/organizational-unit-submission-policy.model";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {SubmissionPolicy} from "@models";
import {
Relation2TiersAction,
Relation2TiersNameSpace,
TypeDefaultAction,
} from "solidify-frontend";
import {SubmissionPolicy} from "@models";
const state = LocalStateEnum.shared_organizationalUnit_submissionPolicy;
......
import {
StoreActionClass,
} from "solidify-frontend";
import {StoreActionClass} from "solidify-frontend";
export interface StatusHistoryNamespace {
History: StoreActionClass;
......
import {FileInput} from "@shared/filevisualizer/models/file-info.model";
import {
ResourceAction,
ResourceNameSpace,
TypeDefaultAction,
} from "solidify-frontend";
import {LocalStateEnum} from "../../enums/local-state.enum";
const state = LocalStateEnum.shared_visualization;
......
import {SearchScopeEnum} from "@app/features/home/enums/search-scope.enum";
import {OrganizationalUnit} from "@models";
import {SessionStorageEnum} from "@app/shared/enums/session-storage.enum";
import {OrganizationalUnit} from "@models";
import {LanguagesEnum} from "@shared/enums/languages.enum";
import {isNullOrUndefined} from "solidify-frontend";
import {environment} from "../../../environments/environment";
......
......@@ -97,7 +97,6 @@ import {
TRANSLATE,
urlSeparator,
} from "solidify-frontend";
import {DefaultSolidifyEnvironment} from "solidify-frontend/lib/environments/environment.solidify-defaults";
import NotificationStatusEnum = NotificationStatus.NotificationStatusEnum;
export interface AppStateModel extends BaseStateModel {
......@@ -234,7 +233,6 @@ export class AppState extends BasicState<AppStateModel> {
StoreUtil.dispatchSequentialActionAndWaitForSubActionsCompletion(
ctx,
[
{action: new AppAction.LoadModuleUrl()},
{
action: new AppAction.LoadModuleUrl(),
subActionCompletions: [
......@@ -309,19 +307,6 @@ export class AppState extends BasicState<AppStateModel> {
environment.allowedUrls.push(environment.tokenEndpoint, environment.loginUrl);
}
@Action(AppAction.LoadModuleUrl)
loadModuleUrl(ctx: StateContext<AppStateModel>, action: AppAction.LoadModuleUrl): Observable<any> {
return this.apiService.get<string[]>(BaseResourceApiEnum.preservationPlanning + urlSeparator + ApiResourceNameEnum.MODULE, {})
.pipe(
tap(runtimeConfig => {
Object.assign(environment, runtimeConfig);
}),
catchError(error => {
throw new error;
}),
);
}
@Action(AppAction.InitApplicationSuccess)
initApplicationSuccess(ctx: StateContext<AppStateModel>): void {
ctx.patchState({
......
import {Dip} from "@models";
import {LocalStateEnum} from "@app/shared/enums/local-state.enum";
import {Dip} from "@models";
import {
ResourceAction,
ResourceNameSpace,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment