mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[MNT-25478] Add Information dialog for nodes and dialog for additional location references (#5041)
* [MNT-25478] Add Information dialog for nodes and dialog for additional location references * [MNT-25478] CR fixes * [MNT-25478] CR fixes * [MNT-25478] Unit test fix * [MNT-25478] E2E locator fixes * [MNT-25478] E2E locator fixes * [MMNT-25478] Add cm:contains to secondary parents API call * [MMNT-25478] Small fix * [MNT-25478] First e2e fixes * more fixes for e2es * last e2e fixes --------- Co-authored-by: Adam Świderski <adam.tomasz.swiderski@gmail.com>
This commit is contained in:
co-authored by
Adam Świderski
parent
0f7bd89263
commit
4204745227
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
import * as app from './app.rules';
|
||||
import { createVersionRule, getFileExtension, isPreferencesApiAvailable, isFolderInfoAvailable, isBulkActionsAvailable } from './app.rules';
|
||||
import { createVersionRule, getFileExtension, isPreferencesApiAvailable, isNodeInfoAvailable, isBulkActionsAvailable } from './app.rules';
|
||||
import { TestRuleContext } from './test-rule-context';
|
||||
import { NodeEntry, RepositoryInfo, StatusInfo } from '@alfresco/js-api';
|
||||
import { ProfileState, RuleContext } from '@alfresco/adf-extensions';
|
||||
@@ -1240,24 +1240,24 @@ describe('Versions compatibility', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('isFolderInfoAvailable', () => {
|
||||
describe('isNodeInfoAvailable', () => {
|
||||
it('should return true if ACS version is equal to minimal version', () => {
|
||||
expect(isFolderInfoAvailable(makeContext('25.1.0'))).toBe(true);
|
||||
expect(isNodeInfoAvailable(makeContext('25.1.0'))).toBe(true);
|
||||
});
|
||||
|
||||
it('should return true if ACS version is greater than minimal version', () => {
|
||||
expect(isFolderInfoAvailable(makeContext('25.2.0'))).toBe(true);
|
||||
expect(isFolderInfoAvailable(makeContext('26.0.0'))).toBe(true);
|
||||
expect(isNodeInfoAvailable(makeContext('25.2.0'))).toBe(true);
|
||||
expect(isNodeInfoAvailable(makeContext('26.0.0'))).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false if ACS version is less than minimal version', () => {
|
||||
expect(isFolderInfoAvailable(makeContext('22.0.0'))).toBe(false);
|
||||
expect(isFolderInfoAvailable(makeContext('23.2.0'))).toBe(false);
|
||||
expect(isNodeInfoAvailable(makeContext('22.0.0'))).toBe(false);
|
||||
expect(isNodeInfoAvailable(makeContext('23.2.0'))).toBe(false);
|
||||
});
|
||||
|
||||
it('should return false if ACS version is missing', () => {
|
||||
expect(isFolderInfoAvailable(makeContext())).toBe(false);
|
||||
expect(isFolderInfoAvailable({ repository: {} } as any)).toBe(false);
|
||||
expect(isNodeInfoAvailable(makeContext())).toBe(false);
|
||||
expect(isNodeInfoAvailable({ repository: {} } as any)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -490,10 +490,10 @@ export function canOpenWithOffice(context: AcaRuleContext): boolean {
|
||||
export const isPreferencesApiAvailable = createVersionRule('25.1.0');
|
||||
|
||||
/**
|
||||
* Checks if folder info modal is supported by current ACS version.
|
||||
* JSON ref: `isFolderInfoAvailable`
|
||||
* Checks if node info modal is supported by current ACS version.
|
||||
* JSON ref: `isNodeInfoAvailable`
|
||||
*/
|
||||
export const isFolderInfoAvailable = createVersionRule('23.4.0');
|
||||
export const isNodeInfoAvailable = createVersionRule('23.4.0');
|
||||
|
||||
/**
|
||||
* Checks if bulk update feature for legal holds is supported by current ACS version.
|
||||
|
||||
@@ -39,7 +39,7 @@ export enum NodeActionTypes {
|
||||
Unshare = 'UNSHARE_NODES',
|
||||
Copy = 'COPY_NODES',
|
||||
Move = 'MOVE_NODES',
|
||||
FolderInformation = 'FOLDER_INFORMATION',
|
||||
NodeInformation = 'NODE_INFORMATION',
|
||||
ManagePermissions = 'MANAGE_PERMISSIONS',
|
||||
PrintFile = 'PRINT_FILE',
|
||||
ManageVersions = 'MANAGE_VERSIONS',
|
||||
@@ -219,8 +219,8 @@ export class ManageRulesAction implements Action {
|
||||
constructor(public payload: NodeEntry) {}
|
||||
}
|
||||
|
||||
export class FolderInformationAction implements Action {
|
||||
readonly type = NodeActionTypes.FolderInformation;
|
||||
export class NodeInformationAction implements Action {
|
||||
readonly type = NodeActionTypes.NodeInformation;
|
||||
|
||||
constructor(public payload: NodeEntry) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user