fastlane-plugin-accessibility_test 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7da2fe2bdb1a6a4c18e7ad28531d422b5ccc1a10aab448449d5f84a9150eeee6
|
4
|
+
data.tar.gz: 166420201c23d2b1a637cbd248062ad835868d3de695372efc4d40424ac77e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 822d6f68bc0a026f3145cc166857054d21a4a3217fc43a77ca22674925ed4b5aca4904040d76966095a54abdb65374edcf6dda380e8c789c4aa8b4404834beef
|
7
|
+
data.tar.gz: f68987f95f29b541d8577d23b40df9244d56857b5390f83023540f207976f2becb7d00a16f05a2be7f05558ff50f4fb23fb501c41b581a2acdc240fca2a660b7
|
@@ -78,26 +78,26 @@ module Fastlane
|
|
78
78
|
summary = errors.empty? ?
|
79
79
|
"### :white_check_mark: All test passed (with #{warnings.length} warnings)" :
|
80
80
|
"### :x: #{errors.length} error found. (with #{errors.length} warnings)"
|
81
|
-
error_cells = errors.map {|
|
82
|
-
"|<img src=\"#{
|
81
|
+
error_cells = errors.each_slice(2).map {|results|
|
82
|
+
"|<img src=\"#{results[0].to_h[:image]}\">|**#{results[0].to_h[:title]}**<br/>#{results[0].to_h[:message]}|<img src=\"#{results[1].to_h[:image]}\">|**#{results[1].to_h[:title]}**<br/>#{results[1].to_h[:message]}|\n"
|
83
83
|
}.inject(&:+)
|
84
|
-
warning_cells = warnings.map {|
|
85
|
-
"|<img src=\"#{
|
84
|
+
warning_cells = warnings.each_slice(2).map {|results|
|
85
|
+
"|<img src=\"#{results[0].to_h[:image]}\">|**#{results[0].to_h[:title]}**<br/>#{results[0].to_h[:message]}|<img src=\"#{results[1].to_h[:image]}\">|**#{results[1].to_h[:title]}**<br/>#{results[1].to_h[:message]}|\n"
|
86
86
|
}.inject(&:+)
|
87
87
|
|
88
88
|
message = <<-EOS
|
89
89
|
## Accessibility Test Result
|
90
90
|
#{summary}
|
91
91
|
|
92
|
-
|Screenshot|message|
|
93
|
-
|
92
|
+
|Screenshot|message|Screenshot|message|
|
93
|
+
|-|-|-|-|
|
94
94
|
#{error_cells}
|
95
95
|
|
96
96
|
<details>
|
97
97
|
<summary>#{warnings.length} warnings. Click here to see details.</summary>
|
98
98
|
|
99
|
-
|Screenshot|message|
|
100
|
-
|
99
|
+
|Screenshot|message|Screenshot|message|
|
100
|
+
|-|-|-|-|
|
101
101
|
#{warning_cells}
|
102
102
|
|
103
103
|
</details>
|