-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SLVUU-129: Fix Application Layouts Data Contract #135
base: main
Are you sure you want to change the base?
Conversation
cde0416
to
92c70c6
Compare
611c021
to
fe2ef9c
Compare
start: npm run showcase:preview | ||
wait-on: "http://localhost:4173" | ||
start: npm run showcase:preview, npm run layout-server | ||
wait-on: http://localhost:4173, http://localhost:8081/api/swagger-ui/index.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the Swagger page is most appropriate for checking the API status. We could use one of our GET endpoints, or implement a separate endpoint just for status checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for most part just a question and a couple of suggestions for possible improvements
- Removes the anti-pattern of async/await (Cypress does not work well with promises)
dcc04bc
to
49f8545
Compare
Description
Fixes the data contract for the
application-layouts
resource on the layout server. Also introduces end-to-end Cypress tests to ensure the data contract holds.Change List
ApplicationLayoutDto
withObjectNode
to allow for arbitrary JSON structureGetApplicationResponseDto
withApplicationJSON
api.utils.ts
to abstract API calls for testingApplicationJSON
interfaceTesting
Changes manually tested using the remote implementation from both showcase and sample app.