Functional test coverage for the below list has to be added:
1. GetCategoryQuery
Steps:
create category with couple products
Run the category query :
query GetCategoryQuery($id: Int!, $pageSize: Int!, $currentPage: Int!) { category(id: $id) { id description name product_count products(pageSize: $pageSize, currentPage: $currentPage) { items { id name url_key } total_count } } }
validate the Magento cache tags in the response header
Expected: Assert cat_c,cat_c_$categoryId,cat_p,cat_p_$product1Id,cat_p_$product2Id,FPC
Use case 2:
Using the above query, validateX-Magento-Cache-Debug for MISS and HIT when the category is loaded the first and the second time respectively.
Use Case 3:
update product1 attribute and run the above category query and validate X-Magento-Cache-Debug= MISS
Run product query for product 2 and verify X-Magento-Cache-Debug for HIT
Functional test coverage for the below list has to be added: 1. GetCategoryQuery Steps:
query GetCategoryQuery($id: Int!, $pageSize: Int!, $currentPage: Int!) { category(id: $id) { id description name product_count products(pageSize: $pageSize, currentPage: $currentPage) { items { id name url_key } total_count } } }
cat_c,cat_c_$categoryId,cat_p,cat_p_$product1Id,cat_p_$product2Id,FPC
Use case 2: Using the above query, validateX-Magento-Cache-Debug
forMISS
andHIT
when the category is loaded the first and the second time respectively. Use Case 3: update product1 attribute and run the above category query and validateX-Magento-Cache-Debug
=MISS
Run product query for product 2 and verifyX-Magento-Cache-Debug
forHIT