✅ Add E2E tests for embedded config scenarios#4242
Draft
mormubis wants to merge 1 commit intoadlrb/ssi-endpoint-pkgfrom
Draft
✅ Add E2E tests for embedded config scenarios#4242mormubis wants to merge 1 commit intoadlrb/ssi-endpoint-pkgfrom
mormubis wants to merge 1 commit intoadlrb/ssi-endpoint-pkgfrom
Conversation
Adds 15 E2E tests proving the embedded config approach works end-to-end: ### embeddedConfig.scenario.ts (8 tests) - SDK loads with embedded config (rum variant) - SDK loads with embedded config (rum-slim variant) - No remote config requests made during page load - Bundle metadata verification (applicationId, configId in bundle) - Config values applied to SDK initialization ### embeddedConfigDynamic.scenario.ts (7 tests) - Dynamic value markers preserved in bundle (cookie, DOM selector, JS path) - Mixed static/dynamic values work correctly - Nested dynamic values in configuration objects Also disables remoteConfiguration.scenario.ts (superseded by the new package approach).
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: ee71250 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Validate that the full embedded config pipeline works end-to-end: generate a bundle with
@datadog/browser-sdk-endpoint, serve it via the test server, and verify the SDK initializes correctly with the embedded configuration.Changes
New E2E scenarios (15 tests total)
embeddedConfig.scenario.ts(8 tests):embeddedConfigDynamic.scenario.ts(7 tests):$cookie:name,$dom:selector,$js:path) preserved in bundleFramework additions
createTest.ts,pageSetups.ts,mock.ts— support for serving pre-generated bundles in E2E testsDisabled
remoteConfiguration.scenario.ts→.disabled(superseded by new package approach)Testing
yarn test:e2e -g "embedded configuration" yarn typecheck