Skip to content

Commit

Permalink
tests: fix cypress test
Browse files Browse the repository at this point in the history
* Restores id html attributes for cypress tests.

Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
  • Loading branch information
Alicia Zangger authored and AoNoOokami committed Jan 27, 2021
1 parent 17a7383 commit d0bbaad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
<ul [ngClass]="menu.getAttribute('class', 'navbar-nav')">
<ng-container *ngFor="let item of menu.getChildren()">
<li class="nav-item" *ngIf="!item.hasChildren(); else withDropdown">
<li id="item.getAttribute('id')" class="nav-item" *ngIf="!item.hasChildren(); else withDropdown">
<a
*ngIf="item.hasUri(); else linkRouterLink"
class="nav-link"
Expand All @@ -32,7 +32,7 @@
</ng-template>
</li>
<ng-template #withDropdown>
<li class="nav-item dropdown" dropdown placement="bottom right">
<li [attr.id]="item.getAttribute('id')" class="nav-item dropdown" dropdown placement="bottom right">
<a class="nav-link dropdown-toggle"
dropdownToggle
href
Expand Down

0 comments on commit d0bbaad

Please sign in to comment.