-
Notifications
You must be signed in to change notification settings - Fork 8
Testing the live banner
Because live streams are a time sensitive event there are a number of test cases that are difficult to test manually. Before merging a PR that makes changes to the live stream banner, live stream widget, or either of the layout.tsx
files, you should test the following edge cases locally to ensure that the live banner works correctly.
Hint: Change the start date/end date for an existing event on your local machine to the current date and time to test these features
Note: Because the live stream is fetched at build time you will need to restart your local instance of the website after updating an event to test these cases.
-
Does the live stream banner display when there is an upcoming user group?
-
What does the banner look like when there is no upcoming user group?
Hint - If there is a user group coming up at the time of testing, try deleting it locally and running the app
- Does the live stream banner display at the designated time? Figure: This field determines the time at which the live stream banner displays
- Does the live stream banner show the most recent upcoming user group?
Hint - If there is no upcoming user group change the date on one of the existing user groups to a future date to mock this behaviour
- Does the live stream banner display on the pages router pages as well as the app router pages
Hint - test the live stream banner on ssw.com.au/products to ensure that the app router template is working correctly
- Does the live stream banner time count down timer still decrement itself every minute without refreshing the page?
Figure:The countdown timer showed in the livestream banner should decrement itself every minute
- Does the live stream widget display when the live stream starts?
Figure: Live stream widget at the top of the page 8. Does the livestream banner & Widget