Skip to content

test(data-mapper-v3): update outdated browser E2E and webview smoke tests - #9738

Open
praveensri wants to merge 1 commit into
mainfrom
test/data-mapper-v3-outdated-tests
Open

praveensri wants to merge 1 commit into
mainfrom
test/data-mapper-v3-outdated-tests

Conversation

@praveensri

Copy link
Copy Markdown
Collaborator

Commit Type

  • feature - New functionality
  • fix - Bug fix
  • refactor - Code restructuring without behavior change
  • perf - Performance improvement
  • docs - Documentation update
  • test - Test-related changes
  • chore - Maintenance/tooling

Risk Level

  • Low - Minor changes, limited scope
  • Medium - Moderate changes, some user impact
  • High - Major changes, significant user/system impact

What & Why

Five data-mapper-v3 browser E2E tests and two webview smoke scenarios failed because their expectations no longer matched current mapper behavior. No product code changes.

Browser E2E:

  • copilot.spec.ts – applied assistant map: removed a stale test.fail marker (bug is fixed, so the test "unexpectedly passed").
  • pointerInteractions.spec.ts – Delete in a text editor: removed a stale test.fail marker.
  • pointerInteractions.spec.ts – chained functoid wiring: functoids now record inputLinks/outputLinks/link parameters; assert they match the saved links instead of expecting them empty.
  • pointerInteractions.spec.ts – canvas panning: plain left-drag is now area selection; pan with Space+drag.
  • schemaLoading.spec.ts – narrow (1000px) pane: "Expand all schema nodes" lives in the compact "Schema node tools" menu; use it when the button is hidden.

Webview smoke:

  • shell.js – layout now includes schema-pane-divider elements around the canvas.
  • harness.js – smoke schema nodes now declare type: 'element', which link validation requires (fixes the mapping.js timeout).

Impact of Change

  • Users: None.
  • Developers: Data Mapper v3 browser E2E and smoke suites pass again.
  • System: None.

Test Plan

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing completed
  • Tested in: playwright test --config=playwright.config.ts in libs/data-mapper-v3 — passed (184/184); node test/webview-smoke/run.js — passed (4/4); npx biome check --write on changed files — clean.

Contributors

Screenshots/Videos

…ests

Remove stale expected-failure markers for fixed bugs, assert functoid link wiring, pan with Space+drag, use the compact schema tools menu in narrow panes, expect schema pane dividers, and mark smoke fixture schema nodes as elements.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 95a99562-74ed-471a-8764-c9eee5224339
Copilot AI balanced review requested due to automatic review settings November 24, 2026 17:44
@github-actions

Copy link
Copy Markdown
Contributor

🤖 AI PR Validation Report

PR Review Results

Thank you for your submission! Here's detailed feedback on your PR title and body compliance:

✅ PR Title

  • Current: test(data-mapper-v3): update outdated browser E2E and webview smoke tests
  • Issue: The title is specific, follows a conventional format, and accurately describes the test-only changes.
  • Recommendation: No change required.

✅ Commit Type

  • Properly selected (test).
  • Only one commit type is selected, which is correct.

❌ Risk Level

  • The body correctly selects Low, and the code diff supports a low risk assessment because it updates E2E and smoke-test expectations without changing product code.
  • However, the PR has no required risk:low, risk:medium, or risk:high label. The body risk selection and label are therefore incomplete.
  • Recommendation: Add the risk:low label to the PR. The advised risk level is low, which matches the risk selected in the body.

✅ What & Why

  • Current: Explains that five Data Mapper v3 browser E2E tests and two webview smoke scenarios were updated because their expectations no longer matched current behavior, and identifies the specific test changes.
  • Issue: No substantive issue found.
  • Recommendation: No change required.

✅ Impact of Change

  • The impact section appropriately states that users and the system are unaffected while developers benefit from restored E2E and smoke-suite coverage.
  • Recommendation:
    • Users: No user-facing impact; no product code changes.
    • Developers: Data Mapper v3 browser E2E and webview smoke suites now reflect current behavior and pass.
    • System: No runtime, architecture, dependency, or production-system changes.

✅ Test Plan

  • E2E tests are checked and the diff confirms updates to browser E2E tests and webview smoke tests.
  • The reported commands and results (184/184 Playwright tests and 4/4 smoke tests) provide a clear verification record. Unit tests are not required because E2E tests are present.

⚠️ Contributors

  • The section is blank. This is optional and does not block approval.
  • Recommendation: Add PMs, designers, reviewers, or other contributors who helped shape or validate the change, or leave it blank if there were none.

✅ Screenshots/Videos

  • This is a test-only change with no user-facing visual or product behavior changes, so screenshots or videos are not required.

Summary Table

Section Status Recommendation
Title ✅ No change required.
Commit Type ✅ Keep only test selected.
Risk Level ❌ Add the required risk:low label.
What & Why ✅ No change required.
Impact of Change ✅ No change required.
Test Plan ✅ E2E coverage and execution results are documented.
Contributors ⚠️ Add contributors if applicable.
Screenshots/Videos ✅ Not applicable for this test-only change.

Please add the risk:low label to the PR. The advised risk is low and matches the risk selected in the body; once the required label is added, the PR documentation will pass.


Powered by: Logic App (fallback) | Last updated: Tue, 24 Nov 2026 17:45:10 GMT

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage Check

No source files changed in this PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the test-only updates aligning Data Mapper v3 E2E and smoke coverage with current behavior.

No open issues 🎉

What changed in this PR

Updates Data Mapper v3 browser E2E and webview smoke tests to match current mapper behavior. No product code changes are included.

Changes:

  • Removes stale expected-failure markers for assistant-map rendering and Delete handling.
  • Updates graph metadata assertions, Space-drag panning, and compact schema-tool interactions.
  • Aligns smoke-test layout expectations and schema fixtures with production requirements.
File Description
libs/​data-mapper-v3/​test/​webview-smoke/​shell.js Includes schema-pane dividers in layout assertions.
libs/​data-mapper-v3/​test/​webview-smoke/​harness.js Adds element types to schema fixture nodes for link validation.
libs/​data-mapper-v3/​e2e/​schemaLoading.spec.ts Uses the compact tools menu when the expand-all button is hidden.
libs/​data-mapper-v3/​e2e/​pointerInteractions.spec.ts Updates link metadata assertions, panning gestures, and Delete expectations.
libs/​data-mapper-v3/​e2e/​copilot.spec.ts Removes the stale expected-failure marker for applied assistant maps.

Review effort: Balanced

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants