explicitly join the slack channel

This commit is contained in:
Ron Rennick 2021-03-11 10:46:04 -04:00
parent ac94f70a16
commit d683e24259
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ export async function sendFailedTestMessageToSlack( testName ) {
const web = initializeWeb();
try {
// Adding the app does not add the app user to the channel
await web.conversations.join( E2E_SLACK_CHANNEL );
// For details, see: https://api.slack.com/methods/chat.postMessage
await web.chat.postMessage({
channel: E2E_SLACK_CHANNEL,