Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
test: add unit tests for mission/runtime selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Aug 13, 2018
1 parent 83e1ffe commit 18231c1
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 185 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ <h2 class="card-pf-title">
{{mission.name}}
</div>
<div class="list-group-item-text" *ngIf="mission.description">
<span class="description" *ngIf="mission.showMore !== true">
<span class="description truncated" *ngIf="mission.showMore !== true">
{{mission.description | truncate: 65}}
</span>
<span *ngIf="mission.showMore">
<span class="description full" *ngIf="mission.showMore">
{{mission.description}}
</span>
<span class="description-more" *ngIf="mission.description.length > 65">
Expand Down Expand Up @@ -202,7 +202,7 @@ <h2 class="card-pf-title">
<div class="list-view-pf-description">
<div class="list-group-item-heading">
{{runtime.name}}
<div *ngIf="!runtime.disabled && runtime.canChangeVersion && missionId && runtime.id == runtimeId" class="dropdown" dropdown>
<div *ngIf="!runtime.disabled && canChangeVersion && missionId && runtime.id == runtimeId" class="dropdown" dropdown>
<button type="button" class="btn btn-default dropdown-toggle" dropdownToggle
[disabled]="runtime.disabled">
{{runtime.selectedVersion.name}}
Expand All @@ -222,10 +222,10 @@ <h2 class="card-pf-title">
</div>
</div>
<div class="list-group-item-text" *ngIf="runtime.description">
<span class="description" *ngIf="!runtime.showMore">
<span class="description truncated" *ngIf="!runtime.showMore">
{{runtime.description | truncate: 65}}
</span>
<span *ngIf="runtime.showMore">
<span class="description full" *ngIf="runtime.showMore">
{{runtime.description}}
</span>
<span class="description-more" *ngIf="runtime.description.length > 65">
Expand Down
Loading

0 comments on commit 18231c1

Please sign in to comment.