ryanrosello-og / playwright-slack-report

Publish your Playwright test results to your favourite Slack channel(s).
MIT License
95 stars 28 forks source link

I am using option A as per documentation but slack notification does not contain test summary #96

Closed aakashgupt closed 8 months ago

aakashgupt commented 8 months ago

here is my playwright config: `import type { PlaywrightTestConfig } from '@playwright/test'; import { devices } from '@playwright/test'; // import * as dotenv from 'dotenv'; require('custom-env').env(true) /**

export default config; `

let me know if you need something else

aakashgupt commented 8 months ago

Do I need to do something else apart from adding snippet in playwright config?

ryanrosello-og commented 8 months ago

@aakashgupt , can you provide more details? What error(s) are you encountering? Can you attach any logs that maybe useful for me to work with?

aakashgupt commented 8 months ago

@ryanrosello-og I am able to print the webhook url thought github masks it as it is a secret. The error I get is "❌ Neither slack webhook url, slackOAuthToken nor process.env.SLACK_BOT_USER_OAUTH_TOKEN were found" CleanShot 2024-02-22 at 15 07 04@2x

aakashgupt commented 8 months ago

I was using wrong name of secret, sorry