Conversation
WalkthroughDisabled one e2e Ballerina module test and updated data-mapper test fixtures and e2e specs: adjusted mapping transformations (added oExp, expanded oManyOne/oManyOneErr, reordered properties) and added/modified custom-function mapping test flows with focus/blur management. Changes
Sequence Diagram(s)sequenceDiagram
participant Test as E2E Test
participant UI as DataMapper UI
participant DM as DataMapper Engine
participant Editor as Mapping Editor
participant Node as Connector Node
rect rgb(240,248,255)
Test->>UI: insert custom-function block (menu-item-o2o-func)
UI->>DM: create mapping link between input and custom function
DM-->>UI: mapping link established
end
rect rgb(245,255,240)
UI->>Editor: open mapping editor tab
Editor->>Editor: edit expression (set iCustomFn -> oCustomFn)
Editor->>UI: blur expression bar (focus out)
Editor-->>UI: close/detach editor tab
end
rect rgb(255,250,240)
UI->>Node: verify connector nodes linked (input, intermediate, output)
Node-->>Test: connectivity verified
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings, 1 inconclusive)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-11-05T10:31:47.583ZApplied to files:
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
workspaces/mi/mi-extension/src/test/e2e-playwright-tests/dataMapper.spec.ts (1)
193-207: Custom function coverage and focus handling look consistent with golden filesThe new custom-function block (
input.iCustomFn → objectOutput.oCustomFnviamenu-item-o2o-func), the tab open/close checks, and the explicitexpressionBarblur all line up with the updatedbasic/map.tsandbasic/del.tsexpectations. Commenting out the extra delete checks with a TODO and issue link keeps the suite stable while clearly marking pending work. No issues spotted in these additions.If you notice flakiness around the editor-tab locator, consider relaxing the
getByRole('tab', { name: ... })match to rely primarily on the file name (e.g., regex on${dmName}.ts) so minor VS Code label changes don’t break the test. Please rerun the Data Mapper E2E group after these updates to confirm stability.Also applies to: 238-239, 260-272
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
workspaces/mi/mi-extension/src/test/e2e-playwright-tests/artifactTests/artifact.spec.ts(1 hunks)workspaces/mi/mi-extension/src/test/e2e-playwright-tests/data/datamapper-files/basic/del.ts(1 hunks)workspaces/mi/mi-extension/src/test/e2e-playwright-tests/data/datamapper-files/basic/map.ts(1 hunks)workspaces/mi/mi-extension/src/test/e2e-playwright-tests/dataMapper.spec.ts(3 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
workspaces/mi/mi-extension/src/test/e2e-playwright-tests/dataMapper.spec.ts (1)
workspaces/mi/mi-extension/src/test/e2e-playwright-tests/Utils.ts (1)
page(39-39)
🔇 Additional comments (3)
workspaces/mi/mi-extension/src/test/e2e-playwright-tests/data/datamapper-files/basic/del.ts (1)
64-76: del.ts golden output now matches updated Basic Mappings flowIncluding
iManyOne3in bothoManyOne/oManyOneErrand addingoCustomFn/oExpassignments aligns this golden file with the new mappings exercised intestBasicMappings, while still representing the post-delete state (prim mappings removed). Looks consistent and intentional for the E2E expectations.workspaces/mi/mi-extension/src/test/e2e-playwright-tests/artifactTests/artifact.spec.ts (1)
259-279: Ballerina Module tests cleanly disabled with upstream issue referenceCommenting out the
Ballerina Module Testsblock and adding a pointer to ballerina-lang issue44401makes the temporary disablement explicit without affecting other artifact tests. This is reasonable for stabilizing the suite until the upstream issue is fixed.workspaces/mi/mi-extension/src/test/e2e-playwright-tests/data/datamapper-files/basic/map.ts (1)
64-78: map.ts property ordering aligned with new mappingsReordering the return object so
oCustomFnprecedesoExpwithout changing the expressions themselves keeps this golden file in sync with the updated Data Mapper behavior and thetestBasicMappingsexpectations.
workspaces/mi/mi-extension/src/test/e2e-playwright-tests/artifactTests/artifact.spec.ts
Outdated
Show resolved
Hide resolved
da64194 to
dd72d4c
Compare
|
Related issues: wso2/mi-vscode#1352, ballerina-platform/ballerina-lang#44401 |
$subject
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.