Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate integration testing #1

Open
emmanueltissera opened this issue Oct 29, 2022 · 0 comments
Open

Automate integration testing #1

emmanueltissera opened this issue Oct 29, 2022 · 0 comments

Comments

@emmanueltissera
Copy link
Owner

The following tests are carried out manually when a new release is made. It would be great to automate these tests and run them via clasp run integrationTests.

The current manual process for testing

Manual testing steps:

  1. Deploy code

Visual check for the Tiny Elf menu item

  1. Change these Settings:
  • Event start hour - 7
  • Event start minute - 0
  • Event end hour - 7
  • Event end minute - 30
  • Check event exists - Yes
  • Roster check - They are available [Available]
  • Trigger days before - 1
  • Trigger on days - Short name of the current day (i.e. Sat)
  1. Create an event in your calendar for tomorrow according to the time in settings with [PLEASE IGNORE] - and the Event title.
    3.1 Invite the first 3 people on the team list

  2. Change Roster for days on the Team sheet for the 3 people on the list

  • Use Yesterday and current day (i.e Fri, Sat)
  1. Set the Last host date on the Team sheet as
  • Yesterday (i.e 28-Oct-2022)
  • Day-before yesterday (i.e 27-Oct-2022)
  • Yesterday (i.e 28-Oct-2022)

RUN: Notify team member
RESULT: You should get a BUSY Notification in Slack

  1. Change Roster for days on the Team sheet
  • Use Yesterday, current day and tomorrow (i.e Fri, Sat, Sun)

RUN: Notify team member
RESULT: The first person on the list gets notified in Slack. The first person's Last host date is updated to tomorrow's date.

RUN: Notify team member
RESULT: The second person on the list gets notified in Slack. The second person's Last host date is updated to tomorrow's date.

RUN: Notify team member
RESULT: Failure notification - cannot access the third person's calendar.

  1. Change Settings
  • Roster team members when: They have accepted the event invitation [AcceptedInvite]
  1. Set the Last host date on the Team sheet as
  • Second team member - today (i.e 29-Oct-2022)

RUN: Notify team member
RESULT: The first person on the list gets notified in Slack. The first person's Last host date is updated to tomorrow's date.

  1. The second person should accept the meeting invite from step 2.

RUN: Notify team member
RESULT: The second person on the list gets notified in Slack. The second person's Last host date is updated to tomorrow's date.

  1. Change Settings
  • Roster team members when: They have accepted the event invitation and are available [AcceptedAndAvailable]
  1. Change the Last Host date on the Team sheet
  • First team member - yesterday (i.e 28-Oct-2022)
  • Second team member - today (i.e 29-Oct-2022)
  1. Create an overlapping event for the first team member called [IGNORE] - Test overlapping meeting
    from 7:15 to 7:45 AM

RUN: Notify team member
RESULT: The second person on the list gets notified in Slack. The second person's Last host date is updated to tomorrow's date.

  1. Change Settings
  • Roster team members when: It's their turn (irrespective of their availability or invitation response) [None]

RUN: Notify team member
RESULT: The third person on the list gets notified in Slack. The second person's Last host date is updated to tomorrow's date.

  1. Delete any existing triggers

RUN: Set/reset automated trigger
RESULT: New trigger created for the hour specified in settings.

  1. Change the Last Host date on the Team sheet
  • Tomorrow (i.e 30-Oct-2022)
  • Day-before yesterday (i.e 27-Oct-2022)
  • Yesterday (i.e 28-Oct-2022)

RUN: Skip currently rostered team member
RESULT: The second person on the list gets notified in Slack. The second person's Last host date is updated to tomorrow's date.
The first person's Last host date is made blank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant