feat(ui5-test-writer): Generate Object Page Title test - #4994
Conversation
🦋 Changeset detectedLatest commit: e69f090 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: DescriptionAdds support for generating an Object Page header title check test ( Changes overview:
Type of change
How have you tested?
Checklist:
PR Bot InformationVersion:
|
There was a problem hiding this comment.
The PR introduces a useful feature but has a few issues worth addressing: the includeAnnotationProperties type intersection is a silent runtime escape hatch that could hide future API incompatibilities, both EJS templates use unescaped <%- interpolation for headerTitle which would produce syntax errors in generated files if a title path ever contains a double-quote, and the integration test only validates the sub-object-page (BookingObjectPage) title assertion while leaving the parent (TravelObjectPage) title path untested despite the updated test constant.
Looked into the assertion implementation - Custom implementation would be out of scope for the generator anyway, but edit mode can actually be active even without any custom implementation - in LROP with enabled draft, if the mockdata entry is marked as draft entry, it will auto open in edit mode. I ran into this issue earlier when implementing tests for Actions, and had to resort to generating one assertion commented out. (EDIT: the line(s) in question: https://github.com/SAP/open-ux-tools/blob/main/packages/ui5-test-writer/templates/v4/1.150/integration/ObjectPageJourney.js#L47) One agreed upon limitation is that the generator does not read the mockdata, so it is up to the app developers to adjust which entry is being opened, if the default one (index 0) does not fit the generated test. If the title test would be failing on edit mode (which I dont think based on the assertion implementation), we would anyway only be able to at best add a comment to instruct the developers to adjust the opened object page entry to a non-edit mode one - or we would have to generate this whole test case commented out, again for the app devs to decide if they can use it. |
heimwege
left a comment
There was a problem hiding this comment.
- changeset ok
- review comments addressed
- coverage is excellent
- did NOT test manually
devinea
left a comment
There was a problem hiding this comment.
Changes are clear and covered by tests.
Did not test locally
changeset ✅
|



Internal issue
36742
Internal JIRAs
FXUBRQ34-12490