ryanrosello-og/playwright-slack-report

Sending reports to slack doesn't work

WinAnna opened this issue · 1 comments

Since version 1.1.60, sending reports to slack does not work correctly.
Just roll back to version 1.1.58 and the report will arrive correctly.
I am using the webhook option, below is the configuration I have used so far.

  reporter: [
    [
      './node_modules/playwright-slack-report/dist/src/SlackReporter.js',
      {
        slackWebHookUrl: 'https://hooks.slack.com/services/webhook',
        sendResults: 'always', // "always" , "on-failure", "off"
        maxNumberOfFailuresToShow: 1,
        meta: [
          {
            key: 'PROJECT',
            value: 'Title',
          },
          {
            key: 'REPORT',
            value: process.env.GITHUB_WORKFLOW ?
                `GitHub Workflow: ${process.env.GITHUB_WORKFLOW}\nReport: <https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}|[View Report]>` :
                'Local Tests <https://github.com/my_account|📊>',
          },
        ],
      },
    ],
    ['html'], // other reporters
    ['github'],
  ],

How can I resolve this issue? I get notification like this (when i use actual version):

Slack channel(s) for successful tests notifications was not provided in the config

thanks for reporting @WinAnna, your config looks correct. You shouldn't have to do anything differently. This is most likely a regression bug - I will look into this shortly.