jekyll-report-dashboard 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ae5c43dbbd2263908c187fd1ca2b731319de54a3ae39536100858344ff29139
4
- data.tar.gz: 3f3e825f990ec21ae5bfeaed9540a8d7796e731b773547db42832bb9aa0980a8
3
+ metadata.gz: abef761ab748232778437640a0ec2d8f8317c88512e48ee3453b43631d086fc2
4
+ data.tar.gz: 0a5bca9b0925bf5ab03ae50ddc143a5c26a4573fe635a94c585970116527461d
5
5
  SHA512:
6
- metadata.gz: 4e1d311660c053ea169325c8886e86d8bca61a7868ee494179b3157edcc62483980bbdf05360701732767bb31bcefd592141db3f211ecce328d3861ea56e1c54
7
- data.tar.gz: 8e14190ac88e47c980026d502bab2e12f87786986ee089406c072ceaba8cc7962cb86e0daf0e0c330c73920884150ab0be838d64326017bcc83476acb17f99f2
6
+ metadata.gz: a8eb972f3836eac79e3fc49a8a56558a9f44c5e55ebcc36ea730c5ae8d53ac81359694751abbd4f0840aa077515ebdf36526cc5028c02557d3e3fed85c80a1bc
7
+ data.tar.gz: 2db8a768d25caba22eb131a2cbca21aca20b165c2be7b9e8b9d9b29d1cf38b7aad9016a230a99304ca8159b7a98fcf7186a0b9206a1c253f87f18393f65429f7
@@ -13,8 +13,8 @@
13
13
 
14
14
  <!-- get all of the run_ids in the branch, then reverse the list and get the first one -->
15
15
  {% assign runs = "" | split: ',' %}
16
- {% for run_id in site.data.playwright-reports.branches[branch_name] %}
17
- {% assign runs = runs | push: run_id %}
16
+ {% for run in site.data.playwright-reports.branches[branch_name] %}
17
+ {% assign runs = runs | push: run[0] %}
18
18
  {% endfor %}
19
19
 
20
20
  {% assign latest_run_id = runs | reverse | first %}
@@ -18,22 +18,15 @@
18
18
  </div>
19
19
  <div class="pt-2 @sm:pt-4 pb-1 @sm:pb-2 text-xs @sm:text-sm leading-normal border border-outline rounded-b-md flex items-center justify-around">
20
20
  <!-- style the icon according to the report status and use the correct svg -->
21
- {% capture status_icon %}
21
+ <span class="w-10 @sm:w-12 h-10 @sm:h-12">
22
22
  {% if results.stats.unexpected > 0 %}
23
- <svg aria-hidden='true' class="fill-fail' height='100%' width='100%' viewBox='0 0 16 16' version='1.1'>
24
- <path fillRule='evenodd' d='M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z'></path>
25
- </svg>
23
+ <svg aria-hidden='true' class="fill-fail' height='100%' width='100%' viewBox='0 0 16 16' version='1.1'><path fillRule='evenodd' d='M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z'></path></svg>
26
24
  {% elsif results.errors.size == 0 %}
27
- <svg aria-hidden='true' class="fill-pass" height='100%' width='100%' viewBox='0 0 16 16' version='1.1'>
28
- <path fillRule='evenodd' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'></path>
29
- </svg>
25
+ <svg aria-hidden='true' class="fill-pass" height='100%' width='100%' viewBox='0 0 16 16' version='1.1'><path fillRule='evenodd' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'></path></svg>
30
26
  {% else %}
31
- <svg aria-hidden='true' class="fill-warn" height='100%' width='100%' viewBox='0 0 16 16' version='1.1'>
32
- <path fillRule='evenodd' d='M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z'></path>
33
- </svg>
27
+ <svg aria-hidden='true' class="fill-warn" height='100%' width='100%' viewBox='0 0 16 16' version='1.1'><path fillRule='evenodd' d='M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z'></path></svg>
34
28
  {% endif %}
35
- {% endcapture %}
36
- <span class="w-10 @sm:w-12 h-10 @sm:h-12">{{ status_icon }}</span>
29
+ </span>
37
30
  <div class="py-1 @md:py-2 w-2/3 @sm:w-4/5">
38
31
  {% if status == "warn" %}
39
32
  <!-- if there are errors, there won't be any test statistics, so only display the errors -->
@@ -4,8 +4,8 @@ layout: page
4
4
 
5
5
  <!-- get the run ids for the branch and sort them by newest to oldest -->
6
6
  {% assign unsorted_runs = "" | split: ',' %}
7
- {% for run_id in site.data.playwright-reports.branches[page.branch] %}
8
- {% assign unsorted_runs = unsorted_runs | push: run_id %}
7
+ {% for run in site.data.playwright-reports.branches[page.branch] %}
8
+ {% assign unsorted_runs = unsorted_runs | push: run[0] %}
9
9
  {% endfor %}
10
10
 
11
11
  {% assign run_ids = unsorted_runs | reverse %}
@@ -5,14 +5,15 @@ module Jekyll
5
5
  @base = base
6
6
  @dir = dir
7
7
  @name = 'index.html'
8
-
8
+
9
9
  process(@name)
10
10
 
11
- @data = site.layouts['playwright-branch'].data
12
- @content = site.layouts['playwright-branch'].content
11
+ @data = {
12
+ 'layout' => 'playwright-branch',
13
+ 'title' => branch,
14
+ 'branch' => branch
15
+ }
13
16
 
14
- @data['branch'] = branch
15
- @data['title'] = branch
16
17
  end
17
18
  end
18
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-report-dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiffany Forkner
@@ -70,7 +70,6 @@ files:
70
70
  - _layouts/page.html
71
71
  - _layouts/playwright-branch.html
72
72
  - _layouts/post.html
73
- - _layouts/release-note.html
74
73
  - _plugins/playwright-branch-index-generator.rb
75
74
  - assets/css/styles.css
76
75
  - coverage.markdown
@@ -1,7 +0,0 @@
1
- ---
2
- layout: page
3
- ---
4
-
5
- {% include release-note.html post=page content=content %}
6
-
7
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>