Repository navigation
test(e2e): Add e2e coverage for Next.js 15.3 - #5308
thomas-lebeau wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Bundles Sizes Evolution
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: a5c3f38 | Docs | View more details | Give us feedback! |
There was a problem hiding this comment.
More details
The generated Next.js 15.3 app, server configuration, and versioned scenarios are consistently wired together. Static review identified no actionable defects; build and end-to-end execution remain unverified.
🤖 Bits Code Review · Commit 8b64b09
8b64b09 to
58a2da7
Compare
There was a problem hiding this comment.
More details
The reviewed revision adds Next.js 13 coverage through a legacy initialization path, whereas the PR description targets 15.3. The static reviewer reported no actionable defects; browser execution remains unverified.
🤖 Bits Code Review · Commit 58a2da7
9e0b870 to
94a9c20
Compare
There was a problem hiding this comment.
More details
The static review found no actionable issue in fixture generation, server wiring, or scenario expansion. The documented Next.js 13 App Router URL exclusions remain scoped to that version; build and browser execution remain unverified.
🤖 Bits Code Review · Commit 94a9c20
8169bf6 to
c85d0e9
Compare
There was a problem hiding this comment.
More details
The supplied head adds coverage for Next.js 15.3, despite the PR description referring to Next.js 13. The static review identified no actionable defects in the generated-app builder, server configuration, or scenario wiring.
🤖 Bits Code Review · Commit c85d0e9
c85d0e9 to
743663f
Compare
There was a problem hiding this comment.
More details
The static reviewer found no actionable defects: the v15 scenarios select the separate Next.js 15.3 app and expect version-specific configuration telemetry. Build and e2e execution remain unverified.
🤖 Bits Code Review · Commit 743663f
Run the Next.js plugin e2e scenarios against a nextjs-v15-app generated from test/apps/nextjs, pinned to the next-15-3 alias kept in browser-rum-nextjs.
9ba12cd to
a5c3f38
Compare
There was a problem hiding this comment.
More details
The v15 scenarios select the generated Next.js 15.3 server and assert version-specific integration telemetry, consistent with the intended coverage. Builds and browser execution remain unverified.
🤖 Bits Code Review · Commit a5c3f38
Motivation
RUM-20310: the only Next.js e2e app,
test/apps/nextjs, runs Next 16. This PR also runs the Next.js plugin e2e scenarios against Next.js 15.3, the first version with the documentedinstrumentation-client.jsandonRouterTransitionStartsetup.Next 14 and older (the
next >=13.0.0peer range, and the support policy's latest major plus the two before it) are left for later. Those versions need an init workaround, and App Router view URLs can't be tracked correctly there. The peer dependency is unchanged in this PR.Changes
packages/browser-rum-nextjs: add anext-15-3devDependency alias (npm:next@15.3.9). This is the same alias pattern as #5273 and #5305.renovate.json: disable major and minor updates fornext-15-3, so it stays on 15.3 and still gets patches.scripts/build/build-test-apps.ts: newnextjs-v15-appbuilder. It copiestest/apps/nextjsand takesnextfrom the alias. The app code needs no changes..nextfolder. It holds symlinks tonode_modulespackages, andfs.cpSyncmakes them absolute, so they still point into the base app.next buildfollowed them while cleaning.nextand emptied the base app'snode_modules/@datadog/browser-rum-nextjs.nextjs v15 appweb server (NEXTJS_V15_APP_PORT) and awithNextjsApp(router, nextjsVersion = 'v16')argument. EverynextjsPlugin.scenario.tstest runs for bothv16andv15, including thenextjs-v15integration check in configuration telemetry. The v16 test names now includev16..gitlab-ci.yml: raise the default job memory to 8Gi. On the previous runs of this PR,yarn installwas killed for running out of memory at 6Gi.Test instructions
Locally (chromium) this gives
36 passed: 18 tests for v16 and 18 for v15.This change has no UI, so there are no screenshots.
Checklist
Refs: RUM-20310