Skip to content

Commit

Permalink
Merge pull request #14 from UWIT-IAM/IAM-137
Browse files Browse the repository at this point in the history
Correct spelling errors ... Improve paragraph separation
  • Loading branch information
krlowe authored May 13, 2020
2 parents 06756b5 + 935bcc3 commit 5da46c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions webdriver_recorder/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ def report_test(report_dir, request, browser):
if isinstance(excinfo.value, webdriver_recorder.browser.BrowserError):
e = excinfo.value
failure = {
'message': e.message,
'url': e.url,
'loglines': [log.get('message', '') for log in e.logs]
'message': cgi.escape(str(e.message)),
'url': cgi.escape(e.url),
'loglines': [cgi.escape(log.get('message', '')) for log in e.logs]
}
else:
failure = {'message': cgi.excape(str(excinfo))}
failure = {'message': cgi.escape(str(excinfo))}
result = {
'link': slug,
'doc': doc,
Expand Down
7 changes: 5 additions & 2 deletions webdriver_recorder/report.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
h2 {
page-break-before: always;
}
.time {
font-size: 1rem;
}
.nav-link {
padding: 0
}
Expand All @@ -38,9 +41,9 @@ <h1 class="h4">Results for {{project}} Scenarios</h1>
{% for result in results %}
{% set index = loop.index %}
<h2 class="h5">
<a name="{{result.link}}">Test #{{index}}</a>: {{ result.time1 }} to {{ result.time2 }}<br/>
{{ result.doc or result.nodeid }}
<a name="{{result.link}}">Test #{{index}}</a>: <span class="time"> {{ result.time1 }} to {{ result.time2 }}<span/>
</h2>
<h3 class="h6"> {{ result.doc or result.nodeid }} </h3>
{% if result.doc %}
<h3 class="h6">{{result.nodeid}}</h3>
{% endif %}
Expand Down

0 comments on commit 5da46c2

Please sign in to comment.