Adding data-automation-id

This commit is contained in:
Vito Albano 2016-06-17 10:58:11 +01:00
commit e0123d8877
2 changed files with 7 additions and 0 deletions

View File

@ -4,9 +4,12 @@
<i class="material-icons">search</i>
</label>
<div [class]="getTextFieldHolderClassName()">
<<<<<<< HEAD
<input class="mdl-textfield__input" [type]="inputType" [autocomplete]="getAutoComplete()"
id="searchControl" [ngFormControl]="searchControl" [(ngModel)]="searchTerm" (focus)="onFocus($event)" (blur)="onBlur($event)">
<label class="mdl-textfield__label" for="searchControl">{{'SEARCH.CONTROL.LABEL' | translate}}</label>
=======
>>>>>>> 2404034e7887fb5bd192f1c08bfde703aca4a7b6
<input class="mdl-textfield__input" [type]="inputType" [autocomplete]="getAutoComplete()" id="searchTerm" data-automation-id="search_input" [ngFormControl]="searchControl" [(ngModel)]="searchTerm">
<label class="mdl-textfield__label" for="searchTerm">{{'SEARCH.CONTROL.LABEL' | translate}}</label>
</div>

View File

@ -1,6 +1,10 @@
<p data-automation-id="search_result_found" *ngIf="results && results.length">{{ 'SEARCH.RESULTS.SUMMARY' | translate:{numResults: results.length, searchTerm: searchTerm} }}</p>
<p data-automation-id="search_result_found" *ngIf="results&& results.length == 0">{{ 'SEARCH.RESULTS.NONE' | translate:{searchTerm: searchTerm} }}</p>
<<<<<<< HEAD
<table data-automation-id="search_result_table" *ngIf="results && results.length && searchTerm" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">
=======
<table *ngIf="results && results.length && searchTerm" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">
>>>>>>> 2404034e7887fb5bd192f1c08bfde703aca4a7b6
<thead>
<tr>
<th>