Skip to content

Comments

✅ [RUM-14696] Improve microfrontend e2e test - plugin + module federatoin#4220

Open
amortemousque wants to merge 1 commit intomainfrom
aymeric/e2e-test-microfrontend
Open

✅ [RUM-14696] Improve microfrontend e2e test - plugin + module federatoin#4220
amortemousque wants to merge 1 commit intomainfrom
aymeric/e2e-test-microfrontend

Conversation

@amortemousque
Copy link
Collaborator

Motivation

Improve the microfrontend end-to-end test to rely on a real test app configured with Module Federation and the built plugin.

Changes

  • Create a test app with:
    • Module Federation 2.0, including one shell and two remotes
    • The built @datadog/webpack-plugin configured with source code context
image
  • Add tests that verify every RUM event type includes the service and version set by the build plugin
image

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@amortemousque amortemousque requested a review from a team as a code owner February 20, 2026 21:28
@datadog-datadog-prod-us1-2
Copy link

datadog-datadog-prod-us1-2 bot commented Feb 20, 2026

⚠️ Tests

Fix all issues with BitsAI or with Cursor

⚠️ Warnings

🧪 3 Tests failed

microfrontend › RUM › with source code bundler plugin › LOAf should have service and version from source code context from microfrontend.scenario.ts (Datadog) (Fix with Cursor)
createTest.ts:244:3 LOAf should have service and version from source code context

[Webkit] › ../lib/framework/createTest.ts:244:3 › microfrontend › RUM › with source code bundler plugin › LOAf should have service and version from source code context 

    Error: expect(received).toMatchObject(expected)

    - Expected  - 10
    + Received  +  1

    - Array [
...
microfrontend › RUM › with source code bundler plugin › LOAf should have service and version from source code context from microfrontend.scenario.ts (Datadog) (Fix with Cursor)
createTest.ts:244:3 LOAf should have service and version from source code context

[Edge] › ../lib/framework/createTest.ts:244:3 › microfrontend › RUM › with source code bundler plugin › LOAf should have service and version from source code context 

    Error: expect(received).toMatchObject(expected)

    - Expected  - 10
    + Received  +  1

    - Array [
...
microfrontend › RUM › with source code bundler plugin › LOAf should have service and version from source code context from microfrontend.scenario.ts (Datadog) (Fix with Cursor)
createTest.ts:244:3 LOAf should have service and version from source code context

[Firefox] › ../lib/framework/createTest.ts:244:3 › microfrontend › RUM › with source code bundler plugin › LOAf should have service and version from source code context 

    Error: expect(received).toMatchObject(expected)

    - Expected  - 10
    + Received  +  1

    - Array [
...

ℹ️ Info

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 663b282 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@amortemousque amortemousque changed the title [RUM-14696] Improve microfrontend e2e test - plugin + module federatoin ✅ [RUM-14696] Improve microfrontend e2e test - plugin + module federatoin Feb 20, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 663b2823fe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

createTest('LOAf should have service and version from source code context')
.withRum(RUM_CONFIG)
.withSetup(microfrontendSetup)
.run(async ({ intakeRegistry, flushEvents, page }) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Skip LOAF assertion outside Chromium

This test now runs the long-task assertion on every Playwright project, but the suite still executes Firefox/WebKit projects and those browsers do not emit the long-task entries this assertion depends on (the repo already guards similar checks with test.skip(browserName !== 'chromium', ...) in other scenarios). As written, rumLongTaskEvents can be empty off Chromium, so the strict toMatchObject([...]) expectation makes this scenario fail in multi-browser runs.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant