feat(ui5-test-writer): Generate tests for Form and Table content of Object Page Sections#4593
feat(ui5-test-writer): Generate tests for Form and Table content of Object Page Sections#4593sap-sebelao wants to merge 5 commits intomainfrom
Conversation
…Object Page Sections - generate checks for form fields in op sections - genereate checks for table columns in op sections - new tableUtils file for shared table-related stuff valid for both LR and OP
🦋 Changeset detectedLatest commit: e9b81e3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
SummaryThe following content is AI-generated and provides a summary of the pull request:
|
There was a problem hiding this comment.
The PR introduces useful new functionality for generating OPA5 test assertions for form fields and table columns in Object Page sections, with good test coverage. However, there are two notable correctness issues: (1) the template uses subSection.navigationProperty || subSection.id as a fallback for onTable({ property: ... }), which produces an invalid OData navigation path for standard sub-sections and causes a related integration test assertion to validate incorrect output; and (2) extractFormFields and extractTableColumnsFromNode are each called on the wrong section type (form extractor runs on table sections and vice versa), wasting effort and potentially producing unexpected results. Additionally, the missing columns aggregation path in tableUtils.ts lacks an early-return guard that would make the code more defensive and consistent with the existing table-missing guard.
|



Internal issue
36742