Permissions Functions#

This section documents permission functions used in the automation testing suite.

togglePermissionWithWait#

togglePermissionWithWait(page, permissionLabel, shouldCheck, waitTime)#

Toggles a permission checkbox and applies a standard wait time

Arguments:
  • page (Page) – Playwright page object

  • permissionLabel (string) – The label of the permission checkbox

  • shouldCheck (boolean) – Whether to check or uncheck the permission

  • waitTime (number) – Optional wait time in ms (default: 1000)

Returns:

Promise