playwright-slack-report-burak 1.3.0 → 1.3.2

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.
@@ -255,9 +255,9 @@ const generateProblemCaseList = async (summaryResults) => {
255
255
  text: {
256
256
  type: 'mrkdwn',
257
257
  text:
258
- `${failedSuitesTitle}${failedSuites.map((value, index) => `*${index + 1}.* ${value}`).join('\n')}` +
259
- `\n${flakySuitesTitle}${flakySuites.map((value, index) => `*${index + 1}.* ${value}`).join('\n')}` +
260
- `\n${skippedSuitesTitle}${skippedSuites.map((value, index) => `*${index + 1}.* ${value}`).join('\n')} `,
258
+ `${failedSuitesTitle}${[...new Set(failedSuites)].map((value, index) => `*${index + 1}.* ${value}`).join('\n')}` +
259
+ `\n${flakySuitesTitle}${[...new Set(flakySuites)].map((value, index) => `*${index + 1}.* ${value}`).join('\n')}` +
260
+ `\n${skippedSuitesTitle}${[...new Set(skippedSuites)].map((value, index) => `*${index + 1}.* ${value}`).join('\n')} `,
261
261
  },
262
262
  },
263
263
  {
@@ -111,7 +111,7 @@ class SlackReporter {
111
111
  });
112
112
  // eslint-disable-next-line no-console
113
113
  console.log(JSON.stringify(result, null, 2));
114
- if (this.showInThread && (resultSummary.failures.length > 0 || resultSummary.skipped > 0 || resultSummary.flakes.length > 0)) {
114
+ if (this.showInThread && (resultSummary.failures.length > 0 || resultSummary.skipped > 0 || resultSummary.flaky > 0)) {
115
115
  /* for (let i = 0; i < result.length; i += 1) {
116
116
  // eslint-disable-next-line no-await-in-loop
117
117
  await slackClient.attachDetailsToThread({
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.3.0",
33
+ "version": "1.3.2",
34
34
  "main": "index.js",
35
35
  "types": "dist/index.d.ts",
36
36
  "repository": "git@github.com:ryanrosello-og/playwright-slack-report.git",