-
Notifications
You must be signed in to change notification settings - Fork 153
GraphQl-439: Improve coverage for mutation addSimpleProductToCart or Cart contains a product after product got status Out of Stock #475
Conversation
… a product after product got status Out of Stock
@@ -50,16 +50,16 @@ public function __construct( | |||
*/ | |||
public function execute(Quote $cart, array $cartItems): void | |||
{ | |||
foreach ($cartItems as $cartItemData) { |
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.
We can't move this logic after error checking.
Now it works as:
- Perform adding products to cart
- Check errors after the previous operation
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.
changes were reverted
… a product after product got status Out of Stock
Cannot reproduce. Looks like it is already fixed. |
…Cart contains a product after product got status Out of Stock
… a product after product got status Out of Stock. Merge conflicts
…Cart contains a product after product got status Out of Stock magento#475
@XxXgeoXxX could you please address build failures. |
… a product after product got status Out of Stock
… a product after product got status Out of Stock
… a product after product got status Out of Stock. Revert changes
… a product after product got status Out of Stock. Revert changes
… a product after product got status Out of Stock
… a product after product got status Out of Stock
… a product after product got status Out of Stock
Please instead of new mutation please introduce new field. |
Closing this PR since no updates for more than 2 weeks. Please feel free to reopen if you want to continue working on this task. Thank you. |
Hi @XxXgeoXxX, thank you for your contribution! |
… a product after product got status Out of Stock magento#475
… a product after product got status Out of Stock magento#475
… a product after product got status Out of Stock magento#475
… a product after product got status Out of Stock magento#475
… a product after product got status Out of Stock magento#475
… a product after product got status Out of Stock magento#475
… a product after product got status Out of Stock magento#475
Hello @XxXgeoXxX |
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.
Signed-off-by: Tomash Khamlai <[email protected]>
This PR introduces some improvements: |
@XxXgeoXxX, please read this comment #475 (review) |
Closing this PR due to inactivity. Please feel free to reopen if you are planning to continue working on it using proposed approach. |
Hi @XxXgeoXxX, thank you for your contribution! |
Description (*)
Issue #439
Manual testing scenarios (*)
Steps to reproduce (*)
Create Simple Product with
Name Simple Product
SKU: simple-product
Weight: 1
Price: 1
Qty: 1000
Create empty cart as a Guest or as Customer (GraphQL)
Add simple product to Cart (GraphQL)
Go to admin
Set Simple Product to be Out of Stock
Add Simple Product to Cart again (GraphQL) and get this error message
Contribution checklist (*)