Skip to content

APS renderer browser spec assumes the coupled Prebid bundle and times out with the decoupled shim #989

Description

@aram356

Problem

crates/trusted-server-integration-tests/browser/tests/shared/aps-renderer.spec.ts ("renders a trustedServer adapter bid using Prebid's generated GAM ad ID") loads the external Prebid bundle and relies on it carrying the tsjs shim, which registers the trustedServer bid adapter.

After the prebid decoupling (#967) the external bundle is pure Prebid.js — the shim ships separately as the deferred tsjs-prebid.js module. The spec never loads it, so no adapter registers, the in-page auction never completes, and the test times out after 30s.

Impact

Fix

#988 (stacked on #963) makes the spec bundle-shape aware: it detects the decoupled bundle via the window.__tsjs_prebid_bundle manifest stamp and loads dist/tsjs-prebid.js after the external bundle — the same script order the server serves. Coupled worlds are unaffected.

Verified locally by running the spec standalone: pre-fix reproduces the exact CI timeout, post-fix passes in ~200ms.

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