From 5268829b59fc6f25d88a4f36e5ef7f277ed04f8b Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 2 Feb 2023 11:20:45 -0800 Subject: [PATCH] e2etests: Update report template --- e2etests/report/template.html | 43 ++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/e2etests/report/template.html b/e2etests/report/template.html index c982c372a..28ed677ed 100644 --- a/e2etests/report/template.html +++ b/e2etests/report/template.html @@ -1,16 +1,26 @@ E2E report +

Table of Contents

+
{{range .Tests}} -
+

{{.Name}}

{{ if .ExpSVG }} -

Expected

- -

Got

+

Expected

{{ end }} - +

Got

+
+ {{ if .ExpSVG }} + + {{ end }} + +
{{end}}
@@ -20,17 +30,24 @@ flex-wrap: wrap; } .case { - align-items: center; - justify-content: center; + position: relative; padding: 20px; + width: 100%; } - .case svg { - width: 400px; - height: 400px; + .case-img-wrapper { + display: flex; + align-items: center; } - .case pre { - font-size: 10pt; - width: 400px; + .case img { + width: 600px; + } + .case-got { + position: absolute; + left: 600px; + } + .case h2 { + margin: 0; + display: inline; }