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.
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 thetrustedServerbid adapter.After the prebid decoupling (#967) the external bundle is pure Prebid.js — the shim ships separately as the deferred
tsjs-prebid.jsmodule. The spec never loads it, so no adapter registers, the in-page auction never completes, and the test times out after 30s.Impact
rc/july"Integration Tests" (browser integration tests job) red since the Decouple the prebid tsjs shim from the bundled Prebid.js #967 merge (78632fe33), both wordpress and nextjs suites.Fix
#988 (stacked on #963) makes the spec bundle-shape aware: it detects the decoupled bundle via the
window.__tsjs_prebid_bundlemanifest stamp and loadsdist/tsjs-prebid.jsafter 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.