[ADF-3823] Add tests for create site dialog (#4090)

* [ADF-3823] Create Library component tests

* [ADF-3823] Create Library component tests

* [ADF-3823] Fixing lint errors.

* [ADF-3823] Added automation id for Create Library btn

* [ADF-3823] Updated tests and added check for white spaces only.

* [ADF-3823] Updated tests & rebased
This commit is contained in:
Florin Butu
2019-01-15 19:34:00 +02:00
committed by Eugenio Romano
parent c7c4dcb659
commit 5b2887fea1
8 changed files with 538 additions and 3 deletions

View File

@@ -68,6 +68,7 @@
color="primary"
[disabled]="option.disabled"
*ngFor="let option of visibilityOptions"
[attr.data-automation-id]="option.value"
[value]="option.value"
[checked]="visibilityOption.value === option.value"
>
@@ -78,7 +79,7 @@
</mat-dialog-content>
<mat-dialog-actions class="adf-action-buttons">
<button mat-button mat-dialog-close>
<button mat-button mat-dialog-close data-automation-id="cancel-library-id">
{{ 'LIBRARY.DIALOG.CANCEL' | translate }}
</button>
@@ -87,6 +88,7 @@
mat-button
(click)="submit()"
[disabled]="!form.valid"
data-automation-id="create-library-id"
>
{{ 'LIBRARY.DIALOG.CREATE' | translate }}
</button>