Add data-automation-id for breadcrumb trail

This commit is contained in:
Hussain Ashraf 2016-06-02 15:17:05 +01:00
parent d64753a1cc
commit c45fe40be4

View File

@ -1,7 +1,7 @@
<ol *ngIf="breadcrumb" data-automation-id="breadcrumb" class="breadcrumb">
<li *ngFor="#r of route; #last = last" [class.active]="last" [ngSwitch]="last">
<span *ngSwitchWhen="true">{{r.name}}</span>
<a *ngSwitchDefault href="#" [attr.data-automation-id]="breadcrumb_ + r.name" (click)="goToRoute(r, $event)">{{r.name}}</a>
<a *ngSwitchDefault href="#" [attr.data-automation-id]="'breadcrumb_' + r.name" (click)="goToRoute(r, $event)">{{r.name}}</a>
</li>
</ol>
<table *ngIf="folder" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">