Repository navigation
Ported the JVM shop pages to Carts.Api - #324
Open
oskardudycz wants to merge 2 commits into
Open
oskardudycz wants to merge 2 commits into
oskardudycz wants to merge 2 commits into
Conversation
…azor views with the JVM tests
…mer id from earlier responses; test names follow the Ogooreck naming rule
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ECommerce sample is a port of the JVM e-commerce sample. Until now, customers could shop only through the cart's web API. With this change, Carts.Api also serves the JVM shop pages, so a customer can log in by name, add products, look at the cart, remove products, check out and log out through HTML forms, as in the JVM sample.
ShopControllerserves the login, the logout and the layout.ShoppingCartsControllerserves the products and cart pages and their forms. The layout, header, styles and htmx script are copied from the JVM, and the header keeps every JVM link.ShopPagesTestsand theCartPagestests are ported one to one, plus two tests for the cart page's failure messages, added to the JVM in the same way.The checkout redirects to the order page, and the header links to the orders, Swagger UI, Springwolf, the sandboxes and the developer tools. None of these pages exists in the .NET sample yet.