Verification Check Functions#
This section documents verification check functions used in the automation testing suite.
checkColumnHeaders#
- checkColumnHeaders(page, nameArray, tableName, tableSelector)#
Example
test('Check Investments Column Headers', async () => {
const headers = [
'ID',
'CIT Corporation',
'Offering Year',
'Investment Date',
'Investment Amount',
'Status',
];
await checkColumnHeaders(page, headers);
});
await checkColumnHeaders(
page,
columnNames.SponsorOrg.HomePage
);
checkSponsorOrgTableFields#
checkUserTableFields#
verifyCreatedModifiedElementsExist#
verifyFieldPresence#
- verifyFieldPresence(page, fieldIdentifier, options)#
Verifies the presence of a field either by label or visible text.
- Arguments:
- Returns:
Promise – boolean indicating if the field was found and visible
verifyFieldValue#
- verifyFieldValue(page, label, expectedValue, timeout)#
Verifies a field value with error handling
verifyHeadingPresence#
- verifyHeadingPresence(page, headingName, exact, timeout)#
Verifies the presence of a heading with the given name