This repo contains a browser automation that opens up a Slack workspace and reinvites every member who hasn't accepted the invite yet.
I'm an admin of many Slack workspaces and frequently need to reinvite people manually. After Slack recently changed their interface to add an extra confirmation pop up and refresh the page after each reinvite, I decided to finally automate this process.
- Clone this repo
- Run
npm install
- Copy the contents of
.cypress.env.json.sample
to another file named.cypress.env.json
and update the required variables to your specific workspace - Run
npm start
- A Cypress window will open up where you can select E2E testing, then select the browser of your choice
- Select the spec file named
reinvite.spec.js
and Cypress will start running the automation in the browser