Verification Check Functions#

This section documents verification check functions used in the automation testing suite.

checkColumnHeaders#

checkColumnHeaders(page, nameArray, tableName, tableSelector)#
Arguments:
Returns:

Promise

checkSponsorOrgTableFields#

checkSponsorOrgTableFields(page)#

Verify sponsor organization table headers and fields exist

Arguments:
Returns:

Promise

checkUserTableFields#

checkUserTableFields(page)#
Arguments:
Returns:

Promise

verifyCreatedModifiedElementsExist#

verifyCreatedModifiedElementsExist(page)#
Arguments:
Returns:

Promise

verifyFieldPresence#

verifyFieldPresence(page, fieldIdentifier, options)#

Verifies the presence of a field either by label or visible text.

Arguments:
  • page (Page) – Playwright page object

  • fieldIdentifier (string) – The label or visible text of the field

  • options – Optional settings: - byLabel: whether to use getByLabel (default: false, uses text locator) - exact: exact matching (default: true) - timeout: timeout in ms (default: 5000)

Returns:

Promise – boolean indicating if the field was found and visible

verifyFieldValue#

verifyFieldValue(page, label, expectedValue, timeout)#

Verifies a field value with error handling

Arguments:
  • page (Page) – Playwright page object

  • label (string) – Field label to check

  • expectedValue (string) – Expected value in the field

  • timeout (number) – Optional timeout in ms (default: 3000)

Returns:

Promise – boolean indicating if verification was successful

verifyHeadingPresence#

verifyHeadingPresence(page, headingName, exact, timeout)#

Verifies the presence of a heading with the given name

Arguments:
  • page (Page) – Playwright page object

  • headingName (string) – The heading text to look for

  • exact (boolean) – Whether to match the heading exactly

  • timeout (number) – Optional timeout in ms (default: 5000)

Returns:

Promise – boolean indicating if heading was found and visible