mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4027] fix navigation to custom sources (#4273)
* [ADF-4027] fix navigation to custom sources * [ADF-4027] code cleanup * [ADF-4027] allow to perform navigation for custom sources * [ADF-4027] disable old test * [ADF-4027] perform site navigation on document-list * [ADF-4027] update test
This commit is contained in:
committed by
Eugenio Romano
parent
a31803a6bb
commit
0d6c1bedfa
@@ -1023,7 +1023,7 @@ describe('DocumentList', () => {
|
||||
expect(documentList.noPermission).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should not perform navigation for virtual sources', () => {
|
||||
it('should allow to perform navigation for virtual sources', () => {
|
||||
const sources = ['-trashcan-', '-sharedlinks-', '-sites-', '-mysites-', '-favorites-', '-recent-'];
|
||||
const node = new FolderNode('folder');
|
||||
|
||||
@@ -1032,7 +1032,7 @@ describe('DocumentList', () => {
|
||||
|
||||
sources.forEach((source) => {
|
||||
documentList.currentFolderId = source;
|
||||
expect(documentList.canNavigateFolder(node.entry)).toBeFalsy();
|
||||
expect(documentList.canNavigateFolder(node.entry)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user