-
Notifications
You must be signed in to change notification settings - Fork 394
Feature/gh 11325 #11440
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
Feature/gh 11325 #11440
Conversation
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.
In my opinion, there are a couple of tests that should be added to SavedCartListComponent:
- trigger loadSavedCarts on init
- watch onSuccess on init
- test for goToSavedCartDetails method
- test for restoreSavedCart method
- test for onSuccess method
All above are very similar to the test in SavedCartFormDialogComponent.
projects/core/src/cart/store/reducers/multi-cart.reducer.spec.ts
Outdated
Show resolved
Hide resolved
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.
I would like you to include sorting of the dates in here as well
Basically, under feature-libs/cart/saved-cart/components/list/saved-cart-list.component.ts
line 20, you do something like
savedCarts$: Observable<Cart[]> = this.savedCartService
.getList()
.pipe(
map((lists) =>
lists.sort((a, b) =>
/// sort the saveTime property
/// latest to oldest
)
)
);
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Hosting service deployment❗ Spartacus deployment failed ( ERR Failed to execute command [application deploy] due to: Error: Deploy ). Check job logs for details.) |
Public API changes✔️ Nothing changed in analyzed entry points.
|
No description provided.