Skip to Content
Quality AssuranceTestsIntegrationsSuitePrioritizable Trait Test Suite Documentation

Prioritizable Trait Test Suite Documentation

Overview

This Jest test suite validates the presence of the prioritizable trait within the API responses for all entities defined in the metadata-cache.json. It ensures that the priority field is consistently provided to support the ordering of items.

Test Scope

  • Iterates over all entities defined in the metadata cache.
  • For each entity, it performs GET requests to the listing, detail, and dropdown endpoints.
  • It verifies that the priority field is present in all three response types:
    • Listing
    • Detail
    • Dropdown

Environmental Setup

  • Uses environment variable:
    • PHPR_BASE_URL - Base URL for API requests.
  • Loads entity information from metadata-cache.json.

Notes

  • The priority field is used to determine the display order of items.
  • These tests ensure that the priority is consistently available across different API access points (list, detail, and dropdown).
Last updated on