CART: Order projects #25
Reference in New Issue
Block a user
Delete Branch "order-projects"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CART: Handle order projects
CART: Save and return all order details entered during checkout process
CART: Handle adding and removing addons and options along with package
https://app.asana.com/0/697944902557002/834017653237020
https://app.asana.com/0/697944902557002/834017653237023
https://app.asana.com/0/697944902557002/834017653237030
Description
Implementing:
Unit tests
Unit tests are added for Order Project logic, since that logic is completed.
Cart and Checkout logic has pending document handling logic and after that is complete unit testing will be added for them.
Execute unit tests and check all are passing:
SMOKE Test
Handle order projects
Login to backend interface
Check that under Woocommerce menu there is additional submenu called Order projects
Go to Order projects submenu and notice there is Is Available? additional field on form for creating new order project
Create few order project (at least on available and at least one unavailable)
Login to frontend as customer
Add packages to cart
Go to cart and examine Project dropdown
Notice that dropdown is populated with only newly created available order projects
Go back to backend and change availability for some of the order projects (at least one of both cases)
Go back to frontend cart and notice that populated projects are again only available order projects from backend
Try adding new order project from frontend with empty field
Notice error is displayed that field cannot be empty
Try adding new order project with name longer thatn 100 characters
Notice error is displayed that field cannot be longer thatn 100 characters
Create new order project with valid project name
Go back to backend and notice new order project is listed and it is available for customers
Save and return all order details entered during checkout process
Create new order with populated all necessary fields (Location Details, Invoice Reference, Project)
Open order details for new order on frontend and check all fields are present
Go to backend and open order details for created order and check it is assigned to correct order project
Go to Order projects submenu and check that corresponding order project has its count column correctly updated
Click on count column and check that order is listed as part of that order project
Repeat steps for adding package into cart
Create new order without populating fields (Location Details, Invoice Reference, Project)
Notice order is succesfully created and corresponding fields are empty on frontend order details
Go to backend and open new order details
Check order has no project assigned to it
Adding and removing addons and options with package
Add package with at least one option and addon to cart
Login as customer to backend and go to /cart page
Review that standard package and all option and addons are listed in cart
Remove package from cart on frontend
Go back to backend cart page and notice that all packages are removed
Again add the same package to cart
Update cart count to some value greater than 1
Go to backend cart page and check that all packages have correct quantity
Remove package from cart on frontend
Go back to backend cart page and notice that all packages are removed
Smoke test failed for this ticket.
After completing all of the step 15 Create new order project with valid project name, and repeating it one more time immediately after. An error has accrued , and I would receive this error every time after i try to reload a cart page http://localhost:3001/cart
I am stoping smoke test until this is investigated
added 1 commit
4ecadc8b- Fix error for html client response handlingCompare with previous version
A small issue
When saving project names in frontend (smoke test step 15) Name of the project on backend is saved as url frendly
Example prodject name "BIG LETTERS" is saved as "big-letters"
added 1 commit
e1a1b4dc- Fix filtering unavailable order projectsCompare with previous version
Smoke test
I was unable to confirm
"Adding and removing addons and options with package" step:
5 .Go back to backend cart page and notice that all packages are removed
By now I was supposed to have 1 standard package, 1 addon and 1 option i cart.
And when I remove standard package on backend I need to observe that "all packages are removed"
And I have observed that only that package is removed, not "all packages" as stated in smoke test.
Is this correct behavior or a problem ???
Other than that, smoke test passed
We resolved this issue with correct way of adding addons and options to standard package.
added 1 commit
12805678- Change order project name sanitize functionCompare with previous version
Why is this init function empty ??
Remove commented code
Commented code contains logic for implementation which is not yet completed, so i left it for reference until it is completed :D
changed this line in version 5 of the diff
added 1 commit
415c5d87- Remove empty functionCompare with previous version
added 5 commits
master0e592726- Merge branch 'master' into order-projects5f744f01- remove call to empty functionCompare with previous version
resolved all discussions
merged
mentioned in commit
6afffc7eca