Skip to content

✅ Create plugin navigation utils - #4485

Closed
BeltranBulbarellaDD wants to merge 6 commits into
mainfrom
beltran.bulbarella/improve_plugins_assertions
Closed

✅ Create plugin navigation utils#4485
BeltranBulbarellaDD wants to merge 6 commits into
mainfrom
beltran.bulbarella/improve_plugins_assertions

Conversation

@BeltranBulbarellaDD

@BeltranBulbarellaDD BeltranBulbarellaDD commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Motivation

Some plugins tests are flaky the idea of this PR is to try and mitigate that.

Changes

Add data-testid to plugin tests apps so we don't rely on hardcoded text.
Create navigationUtils for plugins with:

  • clickAndWait
  • navigate
  • clickAndWaitForURL
  • goHome

Test instructions

Run the whole CI, specifically with --repeat-each or
yarn playwright test --config test/e2e/playwright.local.config.ts -g "plugin" to run on all browsers.

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

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Apr 15, 2026

Copy link
Copy Markdown

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 179.16 KiB 179.16 KiB 0 B 0.00%
Rum Profiler 6.16 KiB 6.16 KiB 0 B 0.00%
Rum Recorder 27.03 KiB 27.03 KiB 0 B 0.00%
Logs 56.65 KiB 56.65 KiB 0 B 0.00%
Rum Slim 135.00 KiB 135.00 KiB 0 B 0.00%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance

Pending...

🧠 Memory Performance

Pending...

🔗 RealWorld

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Apr 15, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 77.03% (-0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: cfb899d | Docs | Datadog PR Page | Give us feedback!

@BeltranBulbarellaDD BeltranBulbarellaDD changed the title Added plugin navigation utils ✅ Create plugin navigation utils Apr 21, 2026
@BeltranBulbarellaDD
BeltranBulbarellaDD marked this pull request as ready for review April 21, 2026 08:29
@BeltranBulbarellaDD
BeltranBulbarellaDD requested a review from a team as a code owner April 21, 2026 08:29
createTest('should not warn - edge case simulating NextJs with an extension that override `appendChild`')
.withExtension(createExtension(path.join(BASE_PATH, 'appendChild-extension')))
.withRum()
.withRum({ sessionReplaySampleRate: 0 })

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

❓ question: ‏what is this for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because at the end we assert withBrowserLogs((logs) => expect(logs.length).toBe(0)) I had a failed test because of a log of the recorder. Since we are not using sessionReplay in this test, I though of removing it by doing this.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

session replay should not log anything, what was the log?

Comment thread test/e2e/scenario/plugins/angularPlugin.scenario.ts Outdated
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
@BeltranBulbarellaDD

Copy link
Copy Markdown
Contributor Author

Close until we find reason to believe we have serious flakyness in the CI for plugins

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants