-
Notifications You must be signed in to change notification settings -
Fork seventy-one
New issue
Transparency Report email automation
#1290
Transparency Report email automation
#1290
Conversation
renintw
commented Apr 21, 2024
•
edited
Loading
edited
How to test the changes in this Pull Request:
-
Add 3 new Automated Reminders. -
Content: random. -
Who should this e-mail be sent to? The organizing team (typically city@wordcamp.org ) & The Budget Wrangler . -
When should this e-mail be sent? after the camp ends and no transparency report is received: seven days & 14 days & 21 days .
-
-
Create two WordCamps (A reminder must be added before adding a wordcamp; otherwise, the reminder will not be triggered.) -
You don't need to fill out all the information, just remember to fill in the start date , end date , and the Budget Wrangler's email address ; these can be entered arbitrarily. Also, fill in the URL and check the create a new site checkbox. Then Publish. -
Check if there's a Transparency Report Received checkbox at the bottom of the WordCamp Information section. -
Switch to different user roles and check if only super admin and an admin+wordcamp author can see the checkbox. (ie. make sure a wordcamp author can't see the checkbox)
-
-
-
After WordCamps are created, change their status from Need Vetting to In Pre-Planning . -
In your first WordCamp, make sure the End Date is NOT set to 7 days ago. Then, run wp cron event run wcor_send_timed_emails --url= https://central.wordcamp.test/ in your docker container. -
Remember not to set the End Date of the second WordCamp for 7, 14, or 21 days; leave it for future testing.
-
-
Shouldn't see any email sent on http://localhost:1080/ . -
Set the End Date to 7 days ago and run wp cron event run wcor_send_timed_emails --url= https://central.wordcamp.test/ again. -
Should see an email with the title and content you set in the reminder sent. -
Set the End Date to 14 days and 21 days ago respectively and run wp cron event run wcor_send_timed_emails --url= https://central.wordcamp.test/ again. -
Should see two emails with the title and content you set in the reminder sent. -
Now let's test the second case, which is when the organizer submits the transparency report, and then the super admin checks off the transparency report. -
In your second WordCamp, set the End Date to 7 days ago. Then, run wp cron event run wcor_send_timed_emails --url= https://central.wordcamp.test/ in your docker container. -
Should see an email with the title and content you set in the reminder sent. -
In your second WordCamp, check off the Transparency Report Received checkbox and set the End Date to 14 days ago. Run wp cron event run wcor_send_timed_emails --url= https://central.wordcamp.test/ -
Shouldn't see any email sent.
Screenshots
|
||
|
||
|
||
|
Choose a reason for hiding this comment
Choose a reason for hiding this comment