Test cases for Edit Folder Directive (#4910)

* added tests for Edit Folder Directive

* added tests for Copy and Move actions on no permission folder.

* moved the checkDisabled function to BrowserActions to make it reusable.

* updated method name
This commit is contained in:
Geeta Mandakini Ayyalasomayajula
2019-07-09 15:30:37 +01:00
committed by Eugenio Romano
parent c151d4535c
commit 65dc1a5c31
8 changed files with 388 additions and 78 deletions

View File

@@ -94,7 +94,9 @@
(click)="createLibrary()">
<mat-icon>library_add</mat-icon>
</button>
<button mat-icon-button
<button
data-automation-id="edit-folder"
mat-icon-button
[disabled]="!canEditFolder(documentList.selection)"
title="{{ 'DOCUMENT_LIST.TOOLBAR.EDIT_FOLDER' | translate }}"
(error)="openSnackMessage($event)"