playwright-community / playwright-msteams-reporter

Microsoft Teams reporter for Playwright
https://www.npmjs.com/package/playwright-msteams-reporter
MIT License
10 stars 4 forks source link

On using the webhook url , type as ms teams, in the config file, I'm getting Invalid url error #18

Closed grajesh690 closed 1 month ago

grajesh690 commented 1 month ago

I'm getting invalid webhook url error, for the type msteams.

When tried as a POST request within the code / triggering via postman, I'm not seeing any issues.

estruyf commented 1 month ago

That probably has to do with the validation of the URL. Check the following file: https://github.com/playwright-community/playwright-msteams-reporter/blob/main/src/utils/validateWebhookUrl.ts

Can you validate it?

grajesh690 commented 1 month ago

It shows me invalid ! any workaround for this ?

estruyf commented 1 month ago

Would you be able to share the URL? You can send it to: elio@struyfconsulting.be

Or another way is to use the Power Automate approach as that is future proof, the MS Teams webhook is deprecated.

grajesh690 commented 1 month ago

I don't think so I can able to share. But based on the pattern, I noticed that https:\/\/[a-zA-Z]+. allows only alphabets, but my url contains numbers for eg:https://test9.webhook.office.com/webhookb2/

estruyf commented 1 month ago

Fix is coming up @grajesh690

estruyf commented 1 month ago

@grajesh690 could you validate with version: playwright-msteams-reporter@0.0.12-beta.1140488? This should include the fix, if it works, I'll release version 0.0.12.

grajesh690 commented 1 month ago

@estruyf This works ! Thanks much it helps

estruyf commented 1 month ago

Release is out!