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)#
CIT Corporation creation (Refactored repeated code)
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)#
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.
safeWait#
Deprecated since version 1.0: Avoid manual timeouts. Use Playwright’s built-in waitFor* methods instead.
setupDownloadDirectory#
- setupDownloadDirectory()#
Setup a timestamped downloads folder
- Returns:
string –