[ADF-3530] Share file dialog - AC update (#3847)

* AC update

* use simple-snack-bar selector

* toContain matcher

* use fakeAsync for dialog content

* spy on snackbar component

* test NotificationService call

* tick

* use fixture whenStable
This commit is contained in:
Cilibiu Bogdan
2018-10-03 11:53:25 +03:00
committed by Eugenio Romano
parent ea916a63a9
commit 4ca80e13f1
4 changed files with 34 additions and 47 deletions

View File

@@ -12,7 +12,7 @@
<mat-slide-toggle
color="primary"
id="adf-share-toggle"
data-automation-id="adf-share-toggle"
[checked]="isFileShared"
[disabled]="!canUpdate || isDisabled"
(change)="onSlideShareChange($event)">
@@ -48,4 +48,12 @@
</mat-form-field>
</form>
</mat-dialog-content>
<div mat-dialog-actions>
<button
data-automation-id="adf-share-dialog-close"
mat-button color="primary" mat-dialog-close>
{{ 'SHARE.CLOSE' | translate }}
</button>
</div>
</div>