Utilities#
This section documents utility functions and types used in the automation testing suite.
buildRowIdentifier#
buildUserData#
createRowNameToClick#
- createRowNameToClick(opts, clickSaveWhenDone, email, firstName, lastName, permissions, popupHeading, rowToClickIdentifier, skipPopupCheck, useRandomToggles)#
- Arguments:
opts (RowNameOptions)
clickSaveWhenDone (boolean) – Click Save button after filling user info (for standalone user creation dialogs)
email (string)
firstName (string)
lastName (string)
popupHeading (string) – Custom popup heading to verify (default: ‘Add New Staff’)
rowToClickIdentifier (number)
skipPopupCheck (boolean) – Skip popup field verification (useful in wizard contexts like Sponsor Org creation)
useRandomToggles (boolean)
- Returns:
getLocalPart#
randomBoolean#
- randomBoolean()#
Returns a random boolean, e.g. ~50% true, 50% false
- Returns:
boolean –
randomFirstName#
- randomFirstName()#
Returns a random first name from a predefined list.
- Returns:
string –
randomLastName#
- randomLastName()#
Returns a random last name from a predefined list.
- Returns:
string –
takeNamedScreenshot#
- takeNamedScreenshot(page, functionName, stepName, waitBeforeCapture)#
Takes a screenshot with a standardized naming convention and optional comment