Skip to content

fix(apollo-react): add data-test id for case E2E#444

Open
SreedharAvvari wants to merge 1 commit intomainfrom
chore/add-data-testid
Open

fix(apollo-react): add data-test id for case E2E#444
SreedharAvvari wants to merge 1 commit intomainfrom
chore/add-data-testid

Conversation

@SreedharAvvari
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 15:30
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Apr 02, 2026, 09:59:27 AM
apollo-landing 🟢 Ready Preview, Logs Apr 02, 2026, 09:56:52 AM
apollo-ui-react 🟢 Ready Preview, Logs Apr 02, 2026, 09:58:27 AM
apollo-vertex 🟢 Ready Preview, Logs Apr 02, 2026, 09:58:11 AM
apollo-wind 🟢 Ready Preview, Logs Apr 02, 2026, 09:57:41 AM

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an explicit data-testid hook to the Stage node header to support E2E targeting, and covers it with a unit test in apollo-react’s canvas components.

Changes:

  • Add data-testid="stage-header-${id}" to the StageHeader element in StageNode.
  • Add a unit test asserting the header test id is rendered as expected.
  • Minor import reordering/cleanup in StageNode and its test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/apollo-react/src/canvas/components/StageNode/StageNode.tsx Adds data-testid to the stage header element (keyed by node id) for E2E selection.
packages/apollo-react/src/canvas/components/StageNode/StageNode.test.tsx Adds a test verifying the stage header data-testid is present and stable for the default id.

@github-actions github-actions bot added the size:S 10-29 changed lines. label Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Dependency License Review

  • 1924 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 3 package(s) excluded (see details below)
License distribution
License Packages
MIT 1689
ISC 89
Apache-2.0 56
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 5
MIT OR Apache-2.0 3
MIT-0 3
CC0-1.0 3
LGPL-3.0-or-later 2
(MIT OR Apache-2.0) 2
Unlicense 2
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@img/sharp-libvips-linuxmusl-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

@SreedharAvvari SreedharAvvari enabled auto-merge (rebase) April 2, 2026 15:37
@SreedharAvvari SreedharAvvari force-pushed the chore/add-data-testid branch from 3f6f688 to 526976c Compare April 2, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants