Skip to content

Cover APS renderer meta-carrier registration in the real-Prebid browser spec #983

Description

@aram356

Follow-up from review of #963 (#963 (comment)).

The unit tests for the APS renderer registry hand-construct the bid Prebid "delivered", so they assert the assumption under test — that Prebid preserves meta sub-keys through bid normalization — rather than verify it against real Prebid. That is the same blind spot that let the original trustedServerRenderer regression ship: the mocked path was always green.

Extend crates/trusted-server-integration-tests/browser/tests/shared/aps-renderer.spec.ts (which drives pbjs.requestBidsinterpretResponse → registry → Universal Creative against the vendored Prebid build) to:

  • delete the custom top-level trustedServerRenderer field from a bidAdjustment hook, then assert the registry still populates via the meta carrier;
  • assert meta.trustedServerRenderer is absent from pbjs.getBidResponsesForAdUnitCode(...) after the auction (the scrub now runs on bidAccepted, so no later-event consumer should observe the descriptor);
  • keep the existing surviving-top-level-field scenario as-is so both carriers stay covered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions