Test Utils#

This section documents test utility functions used in the automation testing suite.

createCITCorp#

Deprecated since version 1.0: Test data creation patterns have changed. Consider using newer data setup patterns.

createCITCorp(page, fillCITCorpInfoFn, fillCITCorpLegalInfoFn, addCITCorpUserV2Fn, clickNextButtonFn, clickFinishButtonFn, options)#
  1. CIT Corporation creation (Refactored repeated code)

Arguments:
Returns:

Promise

createSponsorOrg#

Deprecated since version 1.0: Test data creation patterns have changed. Consider using newer data setup patterns.

createSponsorOrg(page, fillSponsorORCitOrgInfoFn, addSponsorOrgUserFn, clickNextButtonFn, clickFinishButtonFn, options)#
  1. sponsorOrg creation (Refactored repeated code)

fillSponsorORCitOrgInfo signature: (page: Page, booleanA: boolean, orgType: string, booleanB: boolean) This function calls sponsor org creation steps, finishing with a success message check.

Arguments:
Returns:

Promise

safeWait#

Deprecated since version 1.0: Avoid manual timeouts. Use Playwright’s built-in waitFor* methods instead.

safeWait(page, ms)#

5) Additional utility for a short wait if absolutely necessary Avoid overusing manual timeouts.

Arguments:
Returns:

Promise

setupDownloadDirectory#

setupDownloadDirectory()#
  1. Setup a timestamped downloads folder

Returns:

string