Merge pull request #470 from Alfresco/added_new_data_automation_id_to_uploader

Added new data-automation-id to uploader
This commit is contained in:
Mario Romano
2016-07-26 17:04:20 +01:00
committed by GitHub

View File

@@ -15,18 +15,18 @@
<td _ngcontent-hvq-3=""> <td _ngcontent-hvq-3="">
<div _ngcontent-hvq-3="" class="mdl-progress mdl-js-progress is-upgraded" id="{{file.id}}" <div _ngcontent-hvq-3="" class="mdl-progress mdl-js-progress is-upgraded" id="{{file.id}}"
data-upgraded=",MaterialProgress"> data-upgraded=",MaterialProgress">
<div class="progressbar bar bar1" [style.width.%]="file.progress.percent"></div> <div class="progressbar bar bar1" attr.data-automation-id="dialog_progress_{{file.name}}" [style.width.%]="file.progress.percent"></div>
<div class="bufferbar bar bar2" style="width: 100%;"></div> <div class="bufferbar bar bar2" style="width: 100%;"></div>
<div class="auxbar bar bar3" style="width: 0%;"></div> <div class="auxbar bar bar3" style="width: 0%;"></div>
</div> </div>
</td> </td>
<td class="mdl-data-table__cell--non-numeric mdl-cell--hide-phone size-column">{{file.size}}</td> <td class="mdl-data-table__cell--non-numeric mdl-cell--hide-phone size-column" attr.data-automation-id="{{file.name}}_filesize">{{file.size}}</td>
<td> <td>
<span *ngIf="file.done && !file.abort" ><i data-automation-id="done_icon" class="material-icons action-icons">done</i></span> <span *ngIf="file.done && !file.abort" ><i data-automation-id="done_icon" class="material-icons action-icons">done</i></span>
<span *ngIf="file.uploading" (click)="abort(file.id)" class="cursor" ><i data-automation-id="abort_cancel_upload" <span *ngIf="file.uploading" (click)="abort(file.id)" class="cursor" ><i data-automation-id="abort_cancel_upload"
class="material-icons action-icons"> class="material-icons action-icons">
remove_circle_outline</i></span> remove_circle_outline</i></span>
<span *ngIf="file.abort"><i class="material-icons action-icons">remove_circle</i></span> <span *ngIf="file.abort"><i class="material-icons action-icons" data-automation-id="upload_stopped">remove_circle</i></span>
</td> </td>
</tr> </tr>
</table> </table>