AAE-1841 - added delete directive test (#5547)

* AAE-1841 - start adding e2e for delete directive

* AAE-1841 - added delete directive test

* AAE-1841 - fixed PR review
This commit is contained in:
Vito
2020-03-17 18:57:04 +00:00
committed by GitHub
parent d720d36670
commit ec689cad3f
7 changed files with 340 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ import { NodeEntry, Node, DeletedNodeEntity, DeletedNode } from '@alfresco/js-ap
import { Observable, forkJoin, from, of } from 'rxjs';
import { AlfrescoApiService } from '../services/alfresco-api.service';
import { TranslationService } from '../services/translation.service';
import { map, catchError } from 'rxjs/operators';
import { map, catchError, retry } from 'rxjs/operators';
interface ProcessedNodeData {
entry: Node | DeletedNode;
@@ -119,6 +119,7 @@ export class NodeDeleteDirective implements OnChanges {
}
return from(promise).pipe(
retry(3),
map(() => ({
entry: node.entry,
status: 1