Skip to content

Commit

Permalink
Small update to html
Browse files Browse the repository at this point in the history
  • Loading branch information
Palina Lushchynskaya committed Oct 4, 2018
1 parent b992382 commit cdfc004
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ function defaultFunction() {
},

compileTestTable(testID, name, testRunInfo, hasErr, result) {
const screenshotPathPattern = `${testRunInfo.screenshotPath}/${this.startTime}/${this.currentFixtureName}/${name}/`;
/** This functionality is not working currently
const screenshotPathPattern = `${testRunInfo.screenshotPath}/${this.currentFixtureName}/${name}/`;
*/
if (hasErr) {
this.tableReports += this.indentString('<tr class="danger">\n');
} else if (testRunInfo.skipped) {
Expand Down Expand Up @@ -115,8 +117,8 @@ function defaultFunction() {
// Screenshot
this.tableReports += this.indentString('<td>', 2);
if (result === 'failed') {
this.tableReports += this.indentString(`<a href="${screenshotPathPattern}${testID}.png">`, 4);
this.tableReports += this.indentString(`<img src="${screenshotPathPattern}/thumbnails/${testID}.png" img>\n`, 6);
this.tableReports += this.indentString(`<a href="${testRunInfo.screenshotPath}.png">`, 4);
this.tableReports += this.indentString(`<img src="${testRunInfo.screenshotPath}.png" img>\n`, 6);
this.tableReports += this.indentString('</a>\n');
} else {
this.tableReports += 'no screenshot';
Expand Down

0 comments on commit cdfc004

Please sign in to comment.