playwright-slack-report-burak 1.2.5 → 1.2.6
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.
|
@@ -139,7 +139,7 @@ const generateFailuresReasons = async (summaryResults) => {
|
|
|
139
139
|
},
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
} else if (3
|
|
142
|
+
} else if (summaryResults.failures.length > 3 && summaryResults.failures.length < 25) {
|
|
143
143
|
const { failureReason, test, suiteName } = summaryResults.failures[i];
|
|
144
144
|
const parts = suiteName.split('/')[suiteName.split('/').length-1].replace('.spec.ts', '');
|
|
145
145
|
const backSlashedParts = parts.split('\\')[parts.split('\\').length-1];
|
|
@@ -150,8 +150,8 @@ const generateFailuresReasons = async (summaryResults) => {
|
|
|
150
150
|
text: `${i+1}. ${test.split(' [')[0]} (${backSlashedParts})\n\`\`\`${failureReason.split('\n')[0]}\`\`\``,
|
|
151
151
|
},
|
|
152
152
|
});
|
|
153
|
-
if (i === summaryResults.failures.length) {
|
|
154
|
-
|
|
153
|
+
if (i === summaryResults.failures.length-1) {
|
|
154
|
+
failsList.push({
|
|
155
155
|
type: 'section',
|
|
156
156
|
text: {
|
|
157
157
|
type: 'mrkdwn',
|
|
@@ -172,6 +172,7 @@ const generateFailuresReasons = async (summaryResults) => {
|
|
|
172
172
|
}
|
|
173
173
|
]
|
|
174
174
|
});
|
|
175
|
+
break;
|
|
175
176
|
}
|
|
176
177
|
} else if (summaryResults.failures.length >= 25) {
|
|
177
178
|
const { failureReason, test, suiteName } = summaryResults.failures[i];
|
|
@@ -184,8 +185,8 @@ const generateFailuresReasons = async (summaryResults) => {
|
|
|
184
185
|
text: `${i+1}. ${test.split(' [')[0]} (${backSlashedParts})\n\`\`\`${failureReason.split('\n')[0]}\`\`\``,
|
|
185
186
|
},
|
|
186
187
|
});
|
|
187
|
-
if (i >
|
|
188
|
-
|
|
188
|
+
if (i > 23) {
|
|
189
|
+
failsList.push({
|
|
189
190
|
type: 'section',
|
|
190
191
|
text: {
|
|
191
192
|
type: 'mrkdwn',
|
|
@@ -204,8 +205,9 @@ const generateFailuresReasons = async (summaryResults) => {
|
|
|
204
205
|
url: process.env.CIRCLE_BUILD_URL
|
|
205
206
|
}]
|
|
206
207
|
});
|
|
208
|
+
break;
|
|
207
209
|
}
|
|
208
|
-
|
|
210
|
+
}
|
|
209
211
|
}
|
|
210
212
|
|
|
211
213
|
// Decide on Titles For Listing Failures & Skips
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lint-fix": "npx eslint . --ext .ts --fix"
|
|
31
31
|
},
|
|
32
32
|
"name": "playwright-slack-report-burak",
|
|
33
|
-
"version": "1.2.
|
|
33
|
+
"version": "1.2.6",
|
|
34
34
|
"main": "index.js",
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"repository": "git@github.com:ryanrosello-og/playwright-slack-report.git",
|