|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Reporter create report should create html template 1`] = ` |
| 4 | +"<!DOCTYPE html> |
| 5 | +<html lang=\\"en\\"> |
| 6 | + <head> |
| 7 | + <meta charset=\\"utf-8\\"> |
| 8 | + <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\"> |
| 9 | + <meta name=\\"description\\" content=\\"[% title %]\\"> |
| 10 | + <title>Wdio Image Diff Report</title> |
| 11 | + <link rel=\\"stylesheet\\" href=\\"https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css\\"> |
| 12 | + <style type=\\"text/css\\"> |
| 13 | + body { |
| 14 | + background-color: #fafafa; |
| 15 | + font-weight: 200; |
| 16 | + } |
| 17 | + h1, .h1, h2, .h2, h3, .h3 { |
| 18 | + margin: 10px; |
| 19 | + font-weight: 200; |
| 20 | + } |
| 21 | + h1, .h1 { |
| 22 | + font-size: 30px; |
| 23 | + } |
| 24 | + h2, .h2 { |
| 25 | + font-size: 24px; |
| 26 | + } |
| 27 | + h4, .h4 { |
| 28 | + font-size: 25px; |
| 29 | + text-align: center; |
| 30 | + } |
| 31 | + table { |
| 32 | + width: 100%; |
| 33 | + } |
| 34 | + .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { |
| 35 | + /*border-color: #ECEFF1;*/ |
| 36 | + } |
| 37 | + span.error { |
| 38 | + color: #AD2B2B; |
| 39 | + } |
| 40 | + span.success { |
| 41 | + color: #53891E; |
| 42 | + } |
| 43 | + span.pending { |
| 44 | + color: grey; |
| 45 | + } |
| 46 | + .test-pass, .suite-pass { |
| 47 | + background-color: #C8E6C9; |
| 48 | + } |
| 49 | + .test-fail, .suite-fail { |
| 50 | + background-color: #FFCDD2; |
| 51 | + } |
| 52 | + .test-skipped, .suite-pending { |
| 53 | + background-color: #B5C8D1;; |
| 54 | + } |
| 55 | + .test-unknown, .suite-unknown { |
| 56 | + background-color: #5EA3D1;; |
| 57 | + } |
| 58 | + .log-output { |
| 59 | + background-color: rgba(255, 192, 0, 0.36); |
| 60 | + margin-left:24px; |
| 61 | + } |
| 62 | + .screenshot { |
| 63 | + margin-left:24px; |
| 64 | + } |
| 65 | + .screenshot-large { |
| 66 | + height: 100%; |
| 67 | + width: 100%; |
| 68 | + } |
| 69 | + .screenshot-column { |
| 70 | + float: left; |
| 71 | + width: 50%; |
| 72 | + padding: 5px; |
| 73 | + } |
| 74 | + .table-test { |
| 75 | + margin: 0px; |
| 76 | + } |
| 77 | + tr.test-row { |
| 78 | + border-top: 2px solid white; |
| 79 | + } |
| 80 | + /* Clear floats after image containers */ |
| 81 | + .row::after { |
| 82 | + content: \\"\\"; |
| 83 | + clear: both; |
| 84 | + display: table; |
| 85 | + } |
| 86 | + </style> |
| 87 | + </head> |
| 88 | + <body> |
| 89 | + <div class=\\"container\\"> |
| 90 | + <div id=\\"report-header\\" class=\\"page-header\\"><h1></h1></div> |
| 91 | + <h2>Results</h2> |
| 92 | + <table> |
| 93 | + <tr> |
| 94 | + <td> |
| 95 | + <table class=\\"table table-test\\"> |
| 96 | + <tr> |
| 97 | + <td colspan=\\"2\\" class=\\"test-pass\\"> |
| 98 | + <span class=\\"success\\">✔</span> |
| 99 | + Visual Test 1 |
| 100 | + </td> |
| 101 | + </tr> |
| 102 | + </table> |
| 103 | + </td> |
| 104 | + <tr> |
| 105 | + <tr> |
| 106 | + <td> |
| 107 | + <table class=\\"table table-test\\"> |
| 108 | + <tr> |
| 109 | + <td colspan=\\"2\\" class=\\"test-fail\\"> |
| 110 | + <span class=\\"error\\">✖</span> |
| 111 | + Visual Test 2 |
| 112 | + </td> |
| 113 | + </tr> |
| 114 | + <tr class=\\"test-row screenshot\\"> |
| 115 | + <td colspan=\\"2\\"> |
| 116 | + <div class=\\"row\\"> |
| 117 | + <div class=\\"screenshot-column\\"> |
| 118 | + <h4>Baseline</h4> |
| 119 | + <a href=\\"../cypress-visual-screenshots/baseline/Visual Test 2.png\\"> |
| 120 | + <img src=\\"../cypress-visual-screenshots/baseline/Visual Test 2.png\\" alt=\\"Snow\\" style=\\"width:100%\\"> |
| 121 | + </a> |
| 122 | + </div> |
| 123 | + <div class=\\"screenshot-column\\"> |
| 124 | + <h4>Comparison</h4> |
| 125 | + <a href=\\"../cypress-visual-screenshots/comparison/Visual Test 2.png\\"> |
| 126 | + <img src=\\"../cypress-visual-screenshots/comparison/Visual Test 2.png\\" alt=\\"Snow\\" style=\\"width:100%\\"> |
| 127 | + </a> |
| 128 | + </div> |
| 129 | + <div class=\\"screenshot-column\\"> |
| 130 | + <h4>Diff</h4> |
| 131 | + <a href=\\"../cypress-visual-screenshots/diff/Visual Test 2.png\\"> |
| 132 | + <img src=\\"../cypress-visual-screenshots/diff/Visual Test 2.png\\" alt=\\"Snow\\" style=\\"width:100%\\"> |
| 133 | + </a> |
| 134 | + </div> |
| 135 | + </div> |
| 136 | + </td> |
| 137 | + </tr> |
| 138 | + </table> |
| 139 | + </td> |
| 140 | + <tr> |
| 141 | + </table> |
| 142 | + </div> |
| 143 | + </body> |
| 144 | +</html>" |
| 145 | +`; |
0 commit comments