♻️ improve browser extension e2e tests#3823
Merged
thomas-lebeau merged 12 commits intoSep 15, 2025
Merged
Conversation
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage 🔗 Commit SHA: 0395dae | Docs | Was this helpful? Give us feedback! |
thomas-lebeau
force-pushed
the
thomas.lebeau/refactor-browser-extention-e2e-tests
branch
from
September 5, 2025 11:54
ffb354b to
6812024
Compare
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
thomas-lebeau
commented
Sep 8, 2025
thomas-lebeau
commented
Sep 10, 2025
| ` | ||
| }) | ||
| .run(async ({ withBrowserLogs, flushEvents, intakeRegistry }) => { | ||
| test.fail() // TODO: remove this once the issue is fixed |
Collaborator
Author
There was a problem hiding this comment.
This ensure the test is failing but mark the test as passed. When we fix the implementation of allowTrackingOrigin we will be able to remove this.
thomas-lebeau
marked this pull request as ready for review
September 10, 2025 10:00
BeltranBulbarellaDD
approved these changes
Sep 10, 2025
rgaignault
approved these changes
Sep 11, 2025
thomas-lebeau
deleted the
thomas.lebeau/refactor-browser-extention-e2e-tests
branch
September 15, 2025 06:44
rgaignault
pushed a commit
that referenced
this pull request
Sep 15, 2025
Co-authored-by: beltran.bulbarella <[email protected]>
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
Testing browser extensions in e2e was not working the same way as other tests, this PR refactor this to simplify and harmonize
It also fixes the e2e test for the browser extension that were not working properly
Changes
popupandbackground-scriptfrom the test browser extension as we don't do any test on themwithExtension()will now get anExtensionobject that can contain a separate rum configurationcreateExtension(path)to use withwithExtension(). It's rum configuration is configured separately from the base page rum config, allowing to test our different use-cases.DEFAULT_RUM_CONFIGURATIONas other tests, including the intake proxy config so we can now do assertion on the request send to the intake and the data will be send to datadog with the proper context and api keyswithSetup()in order to run some test with a unique setup.Test instructions
Checklist