YOU54F / cypress-plugins

A home for various Cypress Plugins
https://cypress-plugins.saf.dev/
MIT License
168 stars 46 forks source link

Send new line in custom message #792

Open hdiass opened 4 years ago

hdiass commented 4 years ago

Hello,

This is more a question than a issue..I've been trying all ways to find way to send a new line \n via custom-text field but it always sends the plain string . Do you know how can i achieve the new line via custom-text message?

Thanks,

YOU54F commented 4 years ago

you may need to escape it with \\n 👍🏽 if not let me know and we can add a test and see what happens

hdiass commented 4 years ago

It doesn't work, it sends the plain \\n unfortunatly.. i've tried that

YOU54F commented 2 years ago

this is coming soon :) details to follow

samixchoumi commented 1 year ago

@YOU54F any update ? It still doesn't work

YOU54F commented 1 year ago

Hey,

I never implemented this in the old implementation.

I rewrote it using slack-block-builder as it would give the user much more configurability over what they want to send rather than having to make PR's but never got round to releasing it.

https://github.com/YOU54F/cypress-plugins/blob/master/cypress-slack-reporter/src/index.ts

https://github.com/YOU54F/cypress-plugins/blob/master/cypress-slack-reporter/src/slackClient.ts

https://github.com/YOU54F/cypress-plugins/blob/master/cypress-slack-reporter/src/messageConstructor.ts

It's probably fit for consumption and worth spending your efforts on that, would appreciate some feedback and we could get that released to the world instead?

What do you think?

samixchoumi commented 1 year ago

Hello, sorry for the delay, i was very sick. I take a simple look and it seem good to me, i looked at the "old" project, as you merged my PR, we should add the new tag useOnlyCustomUrl too and add the code to slackClient.ts.

Vahan-Koloyan-Netris commented 1 year ago

Definetly looking forward to this feature. Came here with the plan to make a ticket for this feature request but found one already made.