-
-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make test result labels more stylable
- Loading branch information
Showing
9 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
allure-generator/src/main/javascript/plugins/testresult-category/CategoryView.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{{#if categories}} | ||
{{t 'testResult.categories.name'}}: | ||
{{#each categories}} | ||
<span>{{name}} </span> | ||
{{/each}} | ||
{{/if}} | ||
<span class="pane__section-title">{{t 'testResult.categories.name'}}</span> | ||
<span class="pane__section-content"> | ||
{{#each categories}} | ||
<span>{{name}} </span> | ||
{{/each}} | ||
</span> | ||
{{/if}} |
2 changes: 1 addition & 1 deletion
2
allure-generator/src/main/javascript/plugins/testresult-description/DescriptionView.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{#if descriptionHtml}} | ||
<h3 class="pane__section-title">{{t 'testResult.description.name'}}</h3> | ||
<div class="description__text">{{{descriptionHtml}}}</div> | ||
<div class="pane__section-content description__text">{{{descriptionHtml}}}</div> | ||
{{/if}} |
14 changes: 8 additions & 6 deletions
14
allure-generator/src/main/javascript/plugins/testresult-duration/DurationView.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{{#if time}} | ||
<span data-tooltip="{{date time.start}} {{time time.start}} – {{time time.stop}}"> | ||
{{t 'testResult.duration.name'}}: | ||
<span class="fa fa-clock-o"></span> | ||
{{duration time.duration 2}} | ||
</span> | ||
{{/if}} | ||
<div data-tooltip="{{date time.start}} {{time time.start}} – {{time time.stop}}"> | ||
<span class="pane__section-title">{{t 'testResult.duration.name'}}</span> | ||
<span class="pane__section-content"> | ||
<span class="fa fa-clock-o"></span> | ||
{{duration time.duration 2}} | ||
</span> | ||
</div> | ||
{{/if}} |
24 changes: 13 additions & 11 deletions
24
allure-generator/src/main/javascript/plugins/testresult-links/LinksView.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
{{#if links}} | ||
<h3 class="pane__section-title">{{t 'testResult.links.name'}}</h3> | ||
{{#each links}} | ||
<span class="testresult-link"> | ||
{{#if (eq type "issue")}} | ||
<span class="fa fa-bug"></span> | ||
{{/if}} | ||
{{#if (eq type "tms")}} | ||
<span class="fa fa-database"></span> | ||
{{/if}} | ||
<a class="link" href="{{default url name}}" target="_blank">{{default name url 'link'}}</a> | ||
</span> | ||
{{/each}} | ||
<div class="pane__section-content"> | ||
{{#each links}} | ||
<span class="testresult-link"> | ||
{{#if (eq type "issue")}} | ||
<span class="fa fa-bug"></span> | ||
{{/if}} | ||
{{#if (eq type "tms")}} | ||
<span class="fa fa-database"></span> | ||
{{/if}} | ||
<a class="link" href="{{default url name}}" target="_blank">{{default name url 'link'}}</a> | ||
</span> | ||
{{/each}} | ||
</div> | ||
{{/if}} |
4 changes: 2 additions & 2 deletions
4
allure-generator/src/main/javascript/plugins/testresult-owner/OwnerView.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{#if owner}} | ||
<h3 class="pane__section-title">{{t 'testResult.owner.name'}}</h3> | ||
<div>{{owner}}</div> | ||
{{/if}} | ||
<div class="pane__section-content">{{owner}}</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
allure-generator/src/main/javascript/plugins/testresult-severity/SeverityView.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{{#if severity}} | ||
{{t 'testResult.severity.name'}}: | ||
{{t (concat 'testResult.severity.' severity)}} | ||
<span class="pane__section-title">{{t 'testResult.severity.name'}}</span> | ||
<span class="pane__section-content" data-severity="{{severity}}"> | ||
{{t (concat 'testResult.severity.' severity)}} | ||
</span> | ||
{{/if}} |
11 changes: 7 additions & 4 deletions
11
allure-generator/src/main/javascript/plugins/testresult-tags/TagsView.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{{#if tags}} | ||
{{t 'testResult.tags.name'}}: {{#each tags}} | ||
<span class="label label__info">{{#if this}}{{this}}{{else}}null{{/if}}</span> | ||
{{/each}} | ||
{{/if}} | ||
<span class="pane__section-title">{{t 'testResult.tags.name'}}</span> | ||
<span class="pane__section-content"> | ||
{{#each tags}} | ||
<span class="label label__info">{{#if this}}{{this}}{{else}}null{{/if}}</span> | ||
{{/each}} | ||
</span> | ||
{{/if}} |