From 3a5becec01dc220b9ce2455cd4b91a128f15cf53 Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 3 Apr 2024 19:02:01 -0600 Subject: [PATCH 1/4] Update snapshots --- ...rc_ca644c3f45a3d92971d7c34b17b9bf40__1.php | 12 +- ...rc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php | 12 +- ...rc_346c5f1d46bbec1721f5bbf11816a5c0__1.php | 1351 +--------------- ...rc_2b7d6254596db2c73939e0d764cc4ba3__1.php | 1351 +--------------- ...rc_a6529ab79fa04ae8b847cfd8480802e9__1.php | 1356 +---------------- ...rc_2d42a2bf6a893323495c02b92696088d__1.php | 1356 +---------------- ...rc_21a3b603b13d883e8f40e55359c849d2__1.php | 1356 +---------------- ...rc_c2dbc31700c141424142df97ef29db7c__1.php | 1356 +---------------- 8 files changed, 70 insertions(+), 8080 deletions(-) diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php index 2bdc1c9d..e59c01ff 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php @@ -32,25 +32,17 @@ "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, "test_summary": "Delete_Products Normalized Summary", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": [] - }, - { - "debug_log": [ - { - "count": "0", - "message": "Debug log is ignored for woo-e2e\\/delete_products tests." - } - ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php index 16115f14..31ee5b67 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php @@ -32,25 +32,17 @@ "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, "test_summary": "Delete_Products Normalized Summary", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": [] - }, - { - "debug_log": [ - { - "count": "0", - "message": "Debug log is ignored for woo-e2e\\/delete_products tests." - } - ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php index 2b266b56..4a8c7ce7 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "success", + "status": "failed", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,1358 +31,29 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", + "test_summary": "Test failed before it was executed.", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 20, + "numPassedTestSuites": 0, "numPendingTestSuites": 0, - "numTotalTestSuites": 20, + "numTotalTestSuites": 0, "numFailedTests": 0, - "numPassedTests": 255, - "numPendingTests": 2, - "numTotalTests": 257, - "testResults": [ - { - "file": "coupons\\/coupons.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Coupons API tests": [ - { - "title": "can create a coupon", - "status": "passed" - }, - { - "title": "can retrieve a coupon", - "status": "passed" - }, - { - "title": "can update a coupon", - "status": "passed" - }, - { - "title": "can permanently delete a coupon", - "status": "passed" - } - ], - "Batch update coupons": [ - { - "title": "can batch create coupons", - "status": "passed" - }, - { - "title": "can batch update coupons", - "status": "passed" - }, - { - "title": "can batch delete coupons", - "status": "passed" - } - ], - "List coupons": [ - { - "title": "can list all coupons by default", - "status": "passed" - }, - { - "title": "can limit result set to matching code", - "status": "passed" - }, - { - "title": "can paginate results", - "status": "passed" - }, - { - "title": "can limit results to matching string", - "status": "passed" - } - ], - "Add coupon to order": [ - { - "title": "can add coupon to an order", - "status": "passed" - } - ] - } - }, - { - "file": "customers\\/customers-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Customers API tests: CRUD": [], - "Customers API tests: CRUD > Retrieve after env setup": [ - { - "title": "can retrieve admin user", - "status": "passed" - }, - { - "title": "can retrieve subscriber user", - "status": "passed" - }, - { - "title": "retrieve user with id 0 is invalid", - "status": "passed" - }, - { - "title": "can retrieve customers", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Create a customer": [ - { - "title": "can create a customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a customer", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Update a customer": [ - { - "title": "can update the admin user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update admin", - "status": "passed" - }, - { - "title": "can update the subscriber user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update subscriber", - "status": "passed" - }, - { - "title": "can update a customer", - "status": "passed" - }, - { - "title": "retrieve after update customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Delete a customer": [ - { - "title": "can permanently delete an customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Batch update customers": [ - { - "title": "can batch create customers", - "status": "passed" - }, - { - "title": "can batch update customers", - "status": "passed" - }, - { - "title": "can batch delete customers", - "status": "passed" - } - ] - } - }, - { - "file": "data\\/data-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Data API tests": [ - { - "title": "can list all data", - "status": "passed" - }, - { - "title": "can view country data", - "status": "passed" - }, - { - "title": "can view currency data", - "status": "passed" - }, - { - "title": "can view current currency", - "status": "passed" - } - ] - } - }, - { - "file": "hello\\/hello.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Test API connectivity": [ - { - "title": "can access a non-authenticated endpoint", - "status": "passed" - }, - { - "title": "can access an authenticated endpoint", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-complex.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API test": [ - { - "title": "can add complex order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-search.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Order Search API tests": [ - { - "title": "can search by orderId", - "status": "passed" - }, - { - "title": "can search by billing first name", - "status": "passed" - }, - { - "title": "can search by billing company name", - "status": "passed" - }, - { - "title": "can search by billing address 2", - "status": "passed" - }, - { - "title": "can search by billing city name", - "status": "passed" - }, - { - "title": "can search by billing post code", - "status": "passed" - }, - { - "title": "can search by billing phone", - "status": "passed" - }, - { - "title": "can search by billing state", - "status": "passed" - }, - { - "title": "can search by shipping first name", - "status": "passed" - }, - { - "title": "can search by shipping last name", - "status": "passed" - }, - { - "title": "can search by shipping address 2", - "status": "passed" - }, - { - "title": "can search by shipping city", - "status": "passed" - }, - { - "title": "can search by shipping post code", - "status": "passed" - }, - { - "title": "can search by shipping state", - "status": "passed" - }, - { - "title": "can return an empty result set when no matches were found", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests: CRUD": [], - "Orders API tests: CRUD > Create an order": [ - { - "title": "can create a pending order by default", - "status": "passed" - }, - { - "title": "can create an order with status pending", - "status": "passed" - }, - { - "title": "can create an order with status processing", - "status": "passed" - }, - { - "title": "can create an order with status on-hold", - "status": "passed" - }, - { - "title": "can create an order with status completed", - "status": "passed" - }, - { - "title": "can create an order with status cancelled", - "status": "passed" - }, - { - "title": "can create an order with status refunded", - "status": "passed" - }, - { - "title": "can create an order with status failed", - "status": "passed" - } - ], - "Orders API tests: CRUD > Create an order > Order Notes tests": [ - { - "title": "can create a order note", - "status": "passed" - }, - { - "title": "can retrieve an order note", - "status": "passed" - }, - { - "title": "can retrieve all order notes", - "status": "passed" - }, - { - "title": "cannot update an order note", - "status": "passed" - }, - { - "title": "can permanently delete an order note", - "status": "passed" - } - ], - "Orders API tests: CRUD > Retrieve an order": [ - { - "title": "can retrieve an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Update an order": [ - { - "title": "can update status of an order to pending", - "status": "passed" - }, - { - "title": "can update status of an order to processing", - "status": "passed" - }, - { - "title": "can update status of an order to on-hold", - "status": "passed" - }, - { - "title": "can update status of an order to completed", - "status": "passed" - }, - { - "title": "can update status of an order to cancelled", - "status": "passed" - }, - { - "title": "can update status of an order to refunded", - "status": "passed" - }, - { - "title": "can update status of an order to failed", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can add a product to an order", - "status": "passed" - }, - { - "title": "can pay for an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Delete an order": [ - { - "title": "can permanently delete an order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests": [ - { - "title": "can create an order", - "status": "passed" - }, - { - "title": "can retrieve an order", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can permanently delete an order", - "status": "passed" - } - ], - "Orders API tests > List all orders": [ - { - "title": "pagination", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "customer", - "status": "passed" - }, - { - "title": "product", - "status": "passed" - }, - { - "title": "dp (precision)", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - } - ], - "Orders API tests > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - } - ] - } - }, - { - "file": "payment-gateways\\/payment-gateways-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Payment Gateways API tests": [ - { - "title": "can view all payment gateways", - "status": "passed" - }, - { - "title": "can view a payment gateway", - "status": "passed" - }, - { - "title": "can update a payment gateway", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/product-list.test.js", - "status": "passed", - "has_pending": true, - "tests": { - "Products API tests: List All Products": [], - "Products API tests: List All Products > List all products": [ - { - "title": "defaults", - "status": "passed" - }, - { - "title": "pagination", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "slug", - "status": "passed" - }, - { - "title": "sku", - "status": "passed" - }, - { - "title": "type", - "status": "passed" - }, - { - "title": "featured", - "status": "passed" - }, - { - "title": "categories", - "status": "passed" - }, - { - "title": "on sale", - "status": "passed" - }, - { - "title": "price", - "status": "passed" - }, - { - "title": "before \\/ after", - "status": "passed" - }, - { - "title": "attributes", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "shipping class", - "status": "passed" - }, - { - "title": "tax class", - "status": "passed" - }, - { - "title": "stock status", - "status": "passed" - }, - { - "title": "tags", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - } - ], - "Products API tests: List All Products > List all products > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "title", - "status": "passed" - }, - { - "title": "slug orderby", - "status": "passed" - }, - { - "title": "price orderby", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - }, - { - "title": "rating (desc)", - "status": "passed" - }, - { - "title": "rating (asc)", - "status": "pending" - }, - { - "title": "popularity (asc)", - "status": "pending" - }, - { - "title": "popularity (desc)", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/products-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Products API tests: CRUD": [ - { - "title": "can add a simple product", - "status": "passed" - }, - { - "title": "can add a virtual product", - "status": "passed" - }, - { - "title": "can view a single product", - "status": "passed" - }, - { - "title": "can update a single product", - "status": "passed" - }, - { - "title": "can delete a product", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD": [ - { - "title": "can add a product attribute", - "status": "passed" - }, - { - "title": "can retrieve a product attribute", - "status": "passed" - }, - { - "title": "can retrieve all product attribute", - "status": "passed" - }, - { - "title": "can update a product attribute", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute", - "status": "passed" - }, - { - "title": "can batch update product attributes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ - { - "title": "can add a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve all product attribute terms", - "status": "passed" - }, - { - "title": "can update a product attribute term", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute term", - "status": "passed" - }, - { - "title": "can batch update product attribute terms", - "status": "passed" - } - ], - "Products API tests: CRUD > Product categories tests: CRUD": [ - { - "title": "can add a product category", - "status": "passed" - }, - { - "title": "can retrieve a product category", - "status": "passed" - }, - { - "title": "can retrieve all product categories", - "status": "passed" - }, - { - "title": "can update a product category", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product categories", - "status": "passed" - } - ], - "Products API tests: CRUD > Product review tests: CRUD": [ - { - "title": "can add a product review", - "status": "passed" - }, - { - "title": "cannot add a product review with invalid product_id", - "status": "passed" - }, - { - "title": "cannot add a duplicate product review", - "status": "passed" - }, - { - "title": "can retrieve a product review", - "status": "passed" - }, - { - "title": "can retrieve all product reviews", - "status": "passed" - }, - { - "title": "can update a product review", - "status": "passed" - }, - { - "title": "can permanently delete a product review", - "status": "passed" - }, - { - "title": "can batch update product reviews", - "status": "passed" - } - ], - "Products API tests: CRUD > Product shipping classes tests: CRUD": [ - { - "title": "can add a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve all product shipping classes", - "status": "passed" - }, - { - "title": "can update a product shipping class", - "status": "passed" - }, - { - "title": "can permanently delete a product shipping class", - "status": "passed" - }, - { - "title": "can batch update product shipping classes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product tags tests: CRUD": [ - { - "title": "can add a product tag", - "status": "passed" - }, - { - "title": "can retrieve a product tag", - "status": "passed" - }, - { - "title": "can retrieve all product tags", - "status": "passed" - }, - { - "title": "can update a product tag", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product tags", - "status": "passed" - } - ], - "Products API tests: CRUD > Product variation tests: CRUD": [ - { - "title": "can add a variable product", - "status": "passed" - }, - { - "title": "can add a product variation", - "status": "passed" - }, - { - "title": "can retrieve a product variation", - "status": "passed" - }, - { - "title": "can retrieve all product variations", - "status": "passed" - }, - { - "title": "can update a product variation", - "status": "passed" - }, - { - "title": "can permanently delete a product variation", - "status": "passed" - }, - { - "title": "can batch update product variations", - "status": "passed" - } - ], - "Products API tests: CRUD > Batch update products": [ - { - "title": "can batch create products", - "status": "passed" - }, - { - "title": "can batch update products", - "status": "passed" - }, - { - "title": "can batch delete products", - "status": "passed" - } - ] - } - }, - { - "file": "refunds\\/refunds.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Refunds API tests": [ - { - "title": "can create a refund", - "status": "passed" - }, - { - "title": "can retrieve a refund", - "status": "passed" - }, - { - "title": "can list all refunds", - "status": "passed" - }, - { - "title": "can delete a refund", - "status": "passed" - } - ] - } - }, - { - "file": "reports\\/reports-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Reports API tests": [ - { - "title": "can view all reports", - "status": "passed" - }, - { - "title": "can view sales reports", - "status": "passed" - }, - { - "title": "can view top sellers reports", - "status": "passed" - }, - { - "title": "can view coupons totals", - "status": "passed" - }, - { - "title": "can view customers totals", - "status": "passed" - }, - { - "title": "can view orders totals", - "status": "passed" - }, - { - "title": "can view products totals", - "status": "passed" - }, - { - "title": "can view reviews totals", - "status": "passed" - } - ] - } - }, - { - "file": "settings\\/settings-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Settings API tests: CRUD": [], - "Settings API tests: CRUD > List all settings groups": [ - { - "title": "can retrieve all settings groups", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all settings options": [ - { - "title": "can retrieve all general settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > Retrieve a settings option": [ - { - "title": "can retrieve a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Update a settings option": [ - { - "title": "can update a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Batch Update a settings option": [ - { - "title": "can batch update settings options", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Products settings options": [ - { - "title": "can retrieve all products settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Tax settings options": [ - { - "title": "can retrieve all tax settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Shipping settings options": [ - { - "title": "can retrieve all shipping settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Checkout settings options": [ - { - "title": "can retrieve all checkout settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Account settings options": [ - { - "title": "can retrieve all account settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email settings options": [ - { - "title": "can retrieve all email settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Advanced settings options": [ - { - "title": "can retrieve all advanced settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email New Order settings": [ - { - "title": "can retrieve all email new order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Failed Order settings": [ - { - "title": "can retrieve all email failed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ - { - "title": "can retrieve all email customer on hold order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ - { - "title": "can retrieve all email customer processing order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ - { - "title": "can retrieve all email customer completed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ - { - "title": "can retrieve all email customer refunded order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Invoice settings": [ - { - "title": "can retrieve all email customer invoice settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Note settings": [ - { - "title": "can retrieve all email customer note settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ - { - "title": "can retrieve all email customer reset password settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer New Account settings": [ - { - "title": "can retrieve all email customer new account settings", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-method.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping methods API tests": [ - { - "title": "cannot create a shipping method", - "status": "passed" - }, - { - "title": "can retrieve all shipping methods", - "status": "passed" - }, - { - "title": "can retrieve a shipping method", - "status": "passed" - }, - { - "title": "cannot update a shipping method", - "status": "passed" - }, - { - "title": "cannot delete a shipping method", - "status": "passed" - }, - { - "title": "can add a Flat rate shipping method", - "status": "passed" - }, - { - "title": "can add a Free shipping shipping method", - "status": "passed" - }, - { - "title": "can add a Local pickup shipping method", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-zones.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping zones API tests": [ - { - "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", - "status": "passed" - }, - { - "title": "cannot update the default shipping zone", - "status": "passed" - }, - { - "title": "can create a shipping zone", - "status": "passed" - }, - { - "title": "can retrieve a shipping zone", - "status": "passed" - }, - { - "title": "can list all shipping zones", - "status": "passed" - }, - { - "title": "can update a shipping zone", - "status": "passed" - }, - { - "title": "can add a shipping region to a shipping zone", - "status": "passed" - }, - { - "title": "can update a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can clear\\/delete a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can delete a shipping zone", - "status": "passed" - } - ] - } - }, - { - "file": "system-status\\/system-status-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "System Status API tests": [ - { - "title": "can view all system status tools", - "status": "passed" - }, - { - "title": "can retrieve a system status tool", - "status": "passed" - }, - { - "title": "can run a tool from system status", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-classes-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Classes API tests: CRUD": [], - "Tax Classes API tests: CRUD > Create a tax class": [ - { - "title": "can enable tax calculations", - "status": "passed" - }, - { - "title": "can create a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax class", - "status": "passed" - }, - { - "title": "can retrieve all tax classes", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Update a tax class": [ - { - "title": "cannot update a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Delete a tax class": [ - { - "title": "can permanently delete a tax class", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-rates-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Rates API tests: CRUD": [], - "Tax Rates API tests: CRUD > Create a tax rate": [ - { - "title": "can create a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax rate", - "status": "passed" - }, - { - "title": "can retrieve all tax rates", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Update a tax rate": [ - { - "title": "can update a tax rate", - "status": "passed" - }, - { - "title": "retrieve after update tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Delete a tax rate": [ - { - "title": "can permanently delete a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Batch tax rate operations": [ - { - "title": "can batch create tax rates", - "status": "passed" - }, - { - "title": "can batch update tax rates", - "status": "passed" - }, - { - "title": "can batch delete tax rates", - "status": "passed" - } - ] - } - }, - { - "file": "webhooks\\/webhooks-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Webhooks API tests": [], - "Webhooks API tests > Create a webhook": [ - { - "title": "can create a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Retrieve after create": [ - { - "title": "can retrieve a webhook", - "status": "passed" - }, - { - "title": "can retrieve all webhooks", - "status": "passed" - } - ], - "Webhooks API tests > Update a webhook": [ - { - "title": "can update a web hook", - "status": "passed" - } - ], - "Webhooks API tests > Delete a webhook": [ - { - "title": "can permanently delete a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Batch webhook operations": [ - { - "title": "can batch create webhooks", - "status": "passed" - }, - { - "title": "can batch update webhooks", - "status": "passed" - }, - { - "title": "can batch delete webhooks", - "status": "passed" - } - ] - } - } - ], - "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." + "numPassedTests": 0, + "numPendingTests": 0, + "numTotalTests": 0, + "testResults": [], + "summary": "Test failed before it was executed." } - }, - { - "debug_log": [] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php index 86274523..34fb4a20 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "success", + "status": "failed", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,1358 +31,29 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", + "test_summary": "Test failed before it was executed.", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 20, + "numPassedTestSuites": 0, "numPendingTestSuites": 0, - "numTotalTestSuites": 20, + "numTotalTestSuites": 0, "numFailedTests": 0, - "numPassedTests": 255, - "numPendingTests": 2, - "numTotalTests": 257, - "testResults": [ - { - "file": "coupons\\/coupons.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Coupons API tests": [ - { - "title": "can create a coupon", - "status": "passed" - }, - { - "title": "can retrieve a coupon", - "status": "passed" - }, - { - "title": "can update a coupon", - "status": "passed" - }, - { - "title": "can permanently delete a coupon", - "status": "passed" - } - ], - "Batch update coupons": [ - { - "title": "can batch create coupons", - "status": "passed" - }, - { - "title": "can batch update coupons", - "status": "passed" - }, - { - "title": "can batch delete coupons", - "status": "passed" - } - ], - "List coupons": [ - { - "title": "can list all coupons by default", - "status": "passed" - }, - { - "title": "can limit result set to matching code", - "status": "passed" - }, - { - "title": "can paginate results", - "status": "passed" - }, - { - "title": "can limit results to matching string", - "status": "passed" - } - ], - "Add coupon to order": [ - { - "title": "can add coupon to an order", - "status": "passed" - } - ] - } - }, - { - "file": "customers\\/customers-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Customers API tests: CRUD": [], - "Customers API tests: CRUD > Retrieve after env setup": [ - { - "title": "can retrieve admin user", - "status": "passed" - }, - { - "title": "can retrieve subscriber user", - "status": "passed" - }, - { - "title": "retrieve user with id 0 is invalid", - "status": "passed" - }, - { - "title": "can retrieve customers", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Create a customer": [ - { - "title": "can create a customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a customer", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Update a customer": [ - { - "title": "can update the admin user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update admin", - "status": "passed" - }, - { - "title": "can update the subscriber user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update subscriber", - "status": "passed" - }, - { - "title": "can update a customer", - "status": "passed" - }, - { - "title": "retrieve after update customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Delete a customer": [ - { - "title": "can permanently delete an customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Batch update customers": [ - { - "title": "can batch create customers", - "status": "passed" - }, - { - "title": "can batch update customers", - "status": "passed" - }, - { - "title": "can batch delete customers", - "status": "passed" - } - ] - } - }, - { - "file": "data\\/data-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Data API tests": [ - { - "title": "can list all data", - "status": "passed" - }, - { - "title": "can view country data", - "status": "passed" - }, - { - "title": "can view currency data", - "status": "passed" - }, - { - "title": "can view current currency", - "status": "passed" - } - ] - } - }, - { - "file": "hello\\/hello.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Test API connectivity": [ - { - "title": "can access a non-authenticated endpoint", - "status": "passed" - }, - { - "title": "can access an authenticated endpoint", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-complex.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API test": [ - { - "title": "can add complex order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-search.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Order Search API tests": [ - { - "title": "can search by orderId", - "status": "passed" - }, - { - "title": "can search by billing first name", - "status": "passed" - }, - { - "title": "can search by billing company name", - "status": "passed" - }, - { - "title": "can search by billing address 2", - "status": "passed" - }, - { - "title": "can search by billing city name", - "status": "passed" - }, - { - "title": "can search by billing post code", - "status": "passed" - }, - { - "title": "can search by billing phone", - "status": "passed" - }, - { - "title": "can search by billing state", - "status": "passed" - }, - { - "title": "can search by shipping first name", - "status": "passed" - }, - { - "title": "can search by shipping last name", - "status": "passed" - }, - { - "title": "can search by shipping address 2", - "status": "passed" - }, - { - "title": "can search by shipping city", - "status": "passed" - }, - { - "title": "can search by shipping post code", - "status": "passed" - }, - { - "title": "can search by shipping state", - "status": "passed" - }, - { - "title": "can return an empty result set when no matches were found", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests: CRUD": [], - "Orders API tests: CRUD > Create an order": [ - { - "title": "can create a pending order by default", - "status": "passed" - }, - { - "title": "can create an order with status pending", - "status": "passed" - }, - { - "title": "can create an order with status processing", - "status": "passed" - }, - { - "title": "can create an order with status on-hold", - "status": "passed" - }, - { - "title": "can create an order with status completed", - "status": "passed" - }, - { - "title": "can create an order with status cancelled", - "status": "passed" - }, - { - "title": "can create an order with status refunded", - "status": "passed" - }, - { - "title": "can create an order with status failed", - "status": "passed" - } - ], - "Orders API tests: CRUD > Create an order > Order Notes tests": [ - { - "title": "can create a order note", - "status": "passed" - }, - { - "title": "can retrieve an order note", - "status": "passed" - }, - { - "title": "can retrieve all order notes", - "status": "passed" - }, - { - "title": "cannot update an order note", - "status": "passed" - }, - { - "title": "can permanently delete an order note", - "status": "passed" - } - ], - "Orders API tests: CRUD > Retrieve an order": [ - { - "title": "can retrieve an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Update an order": [ - { - "title": "can update status of an order to pending", - "status": "passed" - }, - { - "title": "can update status of an order to processing", - "status": "passed" - }, - { - "title": "can update status of an order to on-hold", - "status": "passed" - }, - { - "title": "can update status of an order to completed", - "status": "passed" - }, - { - "title": "can update status of an order to cancelled", - "status": "passed" - }, - { - "title": "can update status of an order to refunded", - "status": "passed" - }, - { - "title": "can update status of an order to failed", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can add a product to an order", - "status": "passed" - }, - { - "title": "can pay for an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Delete an order": [ - { - "title": "can permanently delete an order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests": [ - { - "title": "can create an order", - "status": "passed" - }, - { - "title": "can retrieve an order", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can permanently delete an order", - "status": "passed" - } - ], - "Orders API tests > List all orders": [ - { - "title": "pagination", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "customer", - "status": "passed" - }, - { - "title": "product", - "status": "passed" - }, - { - "title": "dp (precision)", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - } - ], - "Orders API tests > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - } - ] - } - }, - { - "file": "payment-gateways\\/payment-gateways-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Payment Gateways API tests": [ - { - "title": "can view all payment gateways", - "status": "passed" - }, - { - "title": "can view a payment gateway", - "status": "passed" - }, - { - "title": "can update a payment gateway", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/product-list.test.js", - "status": "passed", - "has_pending": true, - "tests": { - "Products API tests: List All Products": [], - "Products API tests: List All Products > List all products": [ - { - "title": "defaults", - "status": "passed" - }, - { - "title": "pagination", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "slug", - "status": "passed" - }, - { - "title": "sku", - "status": "passed" - }, - { - "title": "type", - "status": "passed" - }, - { - "title": "featured", - "status": "passed" - }, - { - "title": "categories", - "status": "passed" - }, - { - "title": "on sale", - "status": "passed" - }, - { - "title": "price", - "status": "passed" - }, - { - "title": "before \\/ after", - "status": "passed" - }, - { - "title": "attributes", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "shipping class", - "status": "passed" - }, - { - "title": "tax class", - "status": "passed" - }, - { - "title": "stock status", - "status": "passed" - }, - { - "title": "tags", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - } - ], - "Products API tests: List All Products > List all products > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "title", - "status": "passed" - }, - { - "title": "slug orderby", - "status": "passed" - }, - { - "title": "price orderby", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - }, - { - "title": "rating (desc)", - "status": "passed" - }, - { - "title": "rating (asc)", - "status": "pending" - }, - { - "title": "popularity (asc)", - "status": "pending" - }, - { - "title": "popularity (desc)", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/products-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Products API tests: CRUD": [ - { - "title": "can add a simple product", - "status": "passed" - }, - { - "title": "can add a virtual product", - "status": "passed" - }, - { - "title": "can view a single product", - "status": "passed" - }, - { - "title": "can update a single product", - "status": "passed" - }, - { - "title": "can delete a product", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD": [ - { - "title": "can add a product attribute", - "status": "passed" - }, - { - "title": "can retrieve a product attribute", - "status": "passed" - }, - { - "title": "can retrieve all product attribute", - "status": "passed" - }, - { - "title": "can update a product attribute", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute", - "status": "passed" - }, - { - "title": "can batch update product attributes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ - { - "title": "can add a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve all product attribute terms", - "status": "passed" - }, - { - "title": "can update a product attribute term", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute term", - "status": "passed" - }, - { - "title": "can batch update product attribute terms", - "status": "passed" - } - ], - "Products API tests: CRUD > Product categories tests: CRUD": [ - { - "title": "can add a product category", - "status": "passed" - }, - { - "title": "can retrieve a product category", - "status": "passed" - }, - { - "title": "can retrieve all product categories", - "status": "passed" - }, - { - "title": "can update a product category", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product categories", - "status": "passed" - } - ], - "Products API tests: CRUD > Product review tests: CRUD": [ - { - "title": "can add a product review", - "status": "passed" - }, - { - "title": "cannot add a product review with invalid product_id", - "status": "passed" - }, - { - "title": "cannot add a duplicate product review", - "status": "passed" - }, - { - "title": "can retrieve a product review", - "status": "passed" - }, - { - "title": "can retrieve all product reviews", - "status": "passed" - }, - { - "title": "can update a product review", - "status": "passed" - }, - { - "title": "can permanently delete a product review", - "status": "passed" - }, - { - "title": "can batch update product reviews", - "status": "passed" - } - ], - "Products API tests: CRUD > Product shipping classes tests: CRUD": [ - { - "title": "can add a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve all product shipping classes", - "status": "passed" - }, - { - "title": "can update a product shipping class", - "status": "passed" - }, - { - "title": "can permanently delete a product shipping class", - "status": "passed" - }, - { - "title": "can batch update product shipping classes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product tags tests: CRUD": [ - { - "title": "can add a product tag", - "status": "passed" - }, - { - "title": "can retrieve a product tag", - "status": "passed" - }, - { - "title": "can retrieve all product tags", - "status": "passed" - }, - { - "title": "can update a product tag", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product tags", - "status": "passed" - } - ], - "Products API tests: CRUD > Product variation tests: CRUD": [ - { - "title": "can add a variable product", - "status": "passed" - }, - { - "title": "can add a product variation", - "status": "passed" - }, - { - "title": "can retrieve a product variation", - "status": "passed" - }, - { - "title": "can retrieve all product variations", - "status": "passed" - }, - { - "title": "can update a product variation", - "status": "passed" - }, - { - "title": "can permanently delete a product variation", - "status": "passed" - }, - { - "title": "can batch update product variations", - "status": "passed" - } - ], - "Products API tests: CRUD > Batch update products": [ - { - "title": "can batch create products", - "status": "passed" - }, - { - "title": "can batch update products", - "status": "passed" - }, - { - "title": "can batch delete products", - "status": "passed" - } - ] - } - }, - { - "file": "refunds\\/refunds.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Refunds API tests": [ - { - "title": "can create a refund", - "status": "passed" - }, - { - "title": "can retrieve a refund", - "status": "passed" - }, - { - "title": "can list all refunds", - "status": "passed" - }, - { - "title": "can delete a refund", - "status": "passed" - } - ] - } - }, - { - "file": "reports\\/reports-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Reports API tests": [ - { - "title": "can view all reports", - "status": "passed" - }, - { - "title": "can view sales reports", - "status": "passed" - }, - { - "title": "can view top sellers reports", - "status": "passed" - }, - { - "title": "can view coupons totals", - "status": "passed" - }, - { - "title": "can view customers totals", - "status": "passed" - }, - { - "title": "can view orders totals", - "status": "passed" - }, - { - "title": "can view products totals", - "status": "passed" - }, - { - "title": "can view reviews totals", - "status": "passed" - } - ] - } - }, - { - "file": "settings\\/settings-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Settings API tests: CRUD": [], - "Settings API tests: CRUD > List all settings groups": [ - { - "title": "can retrieve all settings groups", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all settings options": [ - { - "title": "can retrieve all general settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > Retrieve a settings option": [ - { - "title": "can retrieve a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Update a settings option": [ - { - "title": "can update a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Batch Update a settings option": [ - { - "title": "can batch update settings options", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Products settings options": [ - { - "title": "can retrieve all products settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Tax settings options": [ - { - "title": "can retrieve all tax settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Shipping settings options": [ - { - "title": "can retrieve all shipping settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Checkout settings options": [ - { - "title": "can retrieve all checkout settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Account settings options": [ - { - "title": "can retrieve all account settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email settings options": [ - { - "title": "can retrieve all email settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Advanced settings options": [ - { - "title": "can retrieve all advanced settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email New Order settings": [ - { - "title": "can retrieve all email new order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Failed Order settings": [ - { - "title": "can retrieve all email failed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ - { - "title": "can retrieve all email customer on hold order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ - { - "title": "can retrieve all email customer processing order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ - { - "title": "can retrieve all email customer completed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ - { - "title": "can retrieve all email customer refunded order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Invoice settings": [ - { - "title": "can retrieve all email customer invoice settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Note settings": [ - { - "title": "can retrieve all email customer note settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ - { - "title": "can retrieve all email customer reset password settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer New Account settings": [ - { - "title": "can retrieve all email customer new account settings", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-method.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping methods API tests": [ - { - "title": "cannot create a shipping method", - "status": "passed" - }, - { - "title": "can retrieve all shipping methods", - "status": "passed" - }, - { - "title": "can retrieve a shipping method", - "status": "passed" - }, - { - "title": "cannot update a shipping method", - "status": "passed" - }, - { - "title": "cannot delete a shipping method", - "status": "passed" - }, - { - "title": "can add a Flat rate shipping method", - "status": "passed" - }, - { - "title": "can add a Free shipping shipping method", - "status": "passed" - }, - { - "title": "can add a Local pickup shipping method", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-zones.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping zones API tests": [ - { - "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", - "status": "passed" - }, - { - "title": "cannot update the default shipping zone", - "status": "passed" - }, - { - "title": "can create a shipping zone", - "status": "passed" - }, - { - "title": "can retrieve a shipping zone", - "status": "passed" - }, - { - "title": "can list all shipping zones", - "status": "passed" - }, - { - "title": "can update a shipping zone", - "status": "passed" - }, - { - "title": "can add a shipping region to a shipping zone", - "status": "passed" - }, - { - "title": "can update a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can clear\\/delete a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can delete a shipping zone", - "status": "passed" - } - ] - } - }, - { - "file": "system-status\\/system-status-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "System Status API tests": [ - { - "title": "can view all system status tools", - "status": "passed" - }, - { - "title": "can retrieve a system status tool", - "status": "passed" - }, - { - "title": "can run a tool from system status", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-classes-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Classes API tests: CRUD": [], - "Tax Classes API tests: CRUD > Create a tax class": [ - { - "title": "can enable tax calculations", - "status": "passed" - }, - { - "title": "can create a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax class", - "status": "passed" - }, - { - "title": "can retrieve all tax classes", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Update a tax class": [ - { - "title": "cannot update a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Delete a tax class": [ - { - "title": "can permanently delete a tax class", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-rates-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Rates API tests: CRUD": [], - "Tax Rates API tests: CRUD > Create a tax rate": [ - { - "title": "can create a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax rate", - "status": "passed" - }, - { - "title": "can retrieve all tax rates", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Update a tax rate": [ - { - "title": "can update a tax rate", - "status": "passed" - }, - { - "title": "retrieve after update tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Delete a tax rate": [ - { - "title": "can permanently delete a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Batch tax rate operations": [ - { - "title": "can batch create tax rates", - "status": "passed" - }, - { - "title": "can batch update tax rates", - "status": "passed" - }, - { - "title": "can batch delete tax rates", - "status": "passed" - } - ] - } - }, - { - "file": "webhooks\\/webhooks-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Webhooks API tests": [], - "Webhooks API tests > Create a webhook": [ - { - "title": "can create a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Retrieve after create": [ - { - "title": "can retrieve a webhook", - "status": "passed" - }, - { - "title": "can retrieve all webhooks", - "status": "passed" - } - ], - "Webhooks API tests > Update a webhook": [ - { - "title": "can update a web hook", - "status": "passed" - } - ], - "Webhooks API tests > Delete a webhook": [ - { - "title": "can permanently delete a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Batch webhook operations": [ - { - "title": "can batch create webhooks", - "status": "passed" - }, - { - "title": "can batch update webhooks", - "status": "passed" - }, - { - "title": "can batch delete webhooks", - "status": "passed" - } - ] - } - } - ], - "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." + "numPassedTests": 0, + "numPendingTests": 0, + "numTotalTests": 0, + "testResults": [], + "summary": "Test failed before it was executed." } - }, - { - "debug_log": [] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php index 43fac8f2..c0114cf8 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "success", + "status": "failed", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,1363 +31,29 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", + "test_summary": "Test failed before it was executed.", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 20, + "numPassedTestSuites": 0, "numPendingTestSuites": 0, - "numTotalTestSuites": 20, + "numTotalTestSuites": 0, "numFailedTests": 0, - "numPassedTests": 255, - "numPendingTests": 2, - "numTotalTests": 257, - "testResults": [ - { - "file": "coupons\\/coupons.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Coupons API tests": [ - { - "title": "can create a coupon", - "status": "passed" - }, - { - "title": "can retrieve a coupon", - "status": "passed" - }, - { - "title": "can update a coupon", - "status": "passed" - }, - { - "title": "can permanently delete a coupon", - "status": "passed" - } - ], - "Batch update coupons": [ - { - "title": "can batch create coupons", - "status": "passed" - }, - { - "title": "can batch update coupons", - "status": "passed" - }, - { - "title": "can batch delete coupons", - "status": "passed" - } - ], - "List coupons": [ - { - "title": "can list all coupons by default", - "status": "passed" - }, - { - "title": "can limit result set to matching code", - "status": "passed" - }, - { - "title": "can paginate results", - "status": "passed" - }, - { - "title": "can limit results to matching string", - "status": "passed" - } - ], - "Add coupon to order": [ - { - "title": "can add coupon to an order", - "status": "passed" - } - ] - } - }, - { - "file": "customers\\/customers-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Customers API tests: CRUD": [], - "Customers API tests: CRUD > Retrieve after env setup": [ - { - "title": "can retrieve admin user", - "status": "passed" - }, - { - "title": "can retrieve subscriber user", - "status": "passed" - }, - { - "title": "retrieve user with id 0 is invalid", - "status": "passed" - }, - { - "title": "can retrieve customers", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Create a customer": [ - { - "title": "can create a customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a customer", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Update a customer": [ - { - "title": "can update the admin user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update admin", - "status": "passed" - }, - { - "title": "can update the subscriber user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update subscriber", - "status": "passed" - }, - { - "title": "can update a customer", - "status": "passed" - }, - { - "title": "retrieve after update customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Delete a customer": [ - { - "title": "can permanently delete an customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Batch update customers": [ - { - "title": "can batch create customers", - "status": "passed" - }, - { - "title": "can batch update customers", - "status": "passed" - }, - { - "title": "can batch delete customers", - "status": "passed" - } - ] - } - }, - { - "file": "data\\/data-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Data API tests": [ - { - "title": "can list all data", - "status": "passed" - }, - { - "title": "can view country data", - "status": "passed" - }, - { - "title": "can view currency data", - "status": "passed" - }, - { - "title": "can view current currency", - "status": "passed" - } - ] - } - }, - { - "file": "hello\\/hello.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Test API connectivity": [ - { - "title": "can access a non-authenticated endpoint", - "status": "passed" - }, - { - "title": "can access an authenticated endpoint", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-complex.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API test": [ - { - "title": "can add complex order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-search.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Order Search API tests": [ - { - "title": "can search by orderId", - "status": "passed" - }, - { - "title": "can search by billing first name", - "status": "passed" - }, - { - "title": "can search by billing company name", - "status": "passed" - }, - { - "title": "can search by billing address 2", - "status": "passed" - }, - { - "title": "can search by billing city name", - "status": "passed" - }, - { - "title": "can search by billing post code", - "status": "passed" - }, - { - "title": "can search by billing phone", - "status": "passed" - }, - { - "title": "can search by billing state", - "status": "passed" - }, - { - "title": "can search by shipping first name", - "status": "passed" - }, - { - "title": "can search by shipping last name", - "status": "passed" - }, - { - "title": "can search by shipping address 2", - "status": "passed" - }, - { - "title": "can search by shipping city", - "status": "passed" - }, - { - "title": "can search by shipping post code", - "status": "passed" - }, - { - "title": "can search by shipping state", - "status": "passed" - }, - { - "title": "can return an empty result set when no matches were found", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests: CRUD": [], - "Orders API tests: CRUD > Create an order": [ - { - "title": "can create a pending order by default", - "status": "passed" - }, - { - "title": "can create an order with status pending", - "status": "passed" - }, - { - "title": "can create an order with status processing", - "status": "passed" - }, - { - "title": "can create an order with status on-hold", - "status": "passed" - }, - { - "title": "can create an order with status completed", - "status": "passed" - }, - { - "title": "can create an order with status cancelled", - "status": "passed" - }, - { - "title": "can create an order with status refunded", - "status": "passed" - }, - { - "title": "can create an order with status failed", - "status": "passed" - } - ], - "Orders API tests: CRUD > Create an order > Order Notes tests": [ - { - "title": "can create a order note", - "status": "passed" - }, - { - "title": "can retrieve an order note", - "status": "passed" - }, - { - "title": "can retrieve all order notes", - "status": "passed" - }, - { - "title": "cannot update an order note", - "status": "passed" - }, - { - "title": "can permanently delete an order note", - "status": "passed" - } - ], - "Orders API tests: CRUD > Retrieve an order": [ - { - "title": "can retrieve an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Update an order": [ - { - "title": "can update status of an order to pending", - "status": "passed" - }, - { - "title": "can update status of an order to processing", - "status": "passed" - }, - { - "title": "can update status of an order to on-hold", - "status": "passed" - }, - { - "title": "can update status of an order to completed", - "status": "passed" - }, - { - "title": "can update status of an order to cancelled", - "status": "passed" - }, - { - "title": "can update status of an order to refunded", - "status": "passed" - }, - { - "title": "can update status of an order to failed", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can add a product to an order", - "status": "passed" - }, - { - "title": "can pay for an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Delete an order": [ - { - "title": "can permanently delete an order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests": [ - { - "title": "can create an order", - "status": "passed" - }, - { - "title": "can retrieve an order", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can permanently delete an order", - "status": "passed" - } - ], - "Orders API tests > List all orders": [ - { - "title": "pagination", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "customer", - "status": "passed" - }, - { - "title": "product", - "status": "passed" - }, - { - "title": "dp (precision)", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - } - ], - "Orders API tests > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - } - ] - } - }, - { - "file": "payment-gateways\\/payment-gateways-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Payment Gateways API tests": [ - { - "title": "can view all payment gateways", - "status": "passed" - }, - { - "title": "can view a payment gateway", - "status": "passed" - }, - { - "title": "can update a payment gateway", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/product-list.test.js", - "status": "passed", - "has_pending": true, - "tests": { - "Products API tests: List All Products": [], - "Products API tests: List All Products > List all products": [ - { - "title": "defaults", - "status": "passed" - }, - { - "title": "pagination", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "slug", - "status": "passed" - }, - { - "title": "sku", - "status": "passed" - }, - { - "title": "type", - "status": "passed" - }, - { - "title": "featured", - "status": "passed" - }, - { - "title": "categories", - "status": "passed" - }, - { - "title": "on sale", - "status": "passed" - }, - { - "title": "price", - "status": "passed" - }, - { - "title": "before \\/ after", - "status": "passed" - }, - { - "title": "attributes", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "shipping class", - "status": "passed" - }, - { - "title": "tax class", - "status": "passed" - }, - { - "title": "stock status", - "status": "passed" - }, - { - "title": "tags", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - } - ], - "Products API tests: List All Products > List all products > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "title", - "status": "passed" - }, - { - "title": "slug orderby", - "status": "passed" - }, - { - "title": "price orderby", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - }, - { - "title": "rating (desc)", - "status": "passed" - }, - { - "title": "rating (asc)", - "status": "pending" - }, - { - "title": "popularity (asc)", - "status": "pending" - }, - { - "title": "popularity (desc)", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/products-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Products API tests: CRUD": [ - { - "title": "can add a simple product", - "status": "passed" - }, - { - "title": "can add a virtual product", - "status": "passed" - }, - { - "title": "can view a single product", - "status": "passed" - }, - { - "title": "can update a single product", - "status": "passed" - }, - { - "title": "can delete a product", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD": [ - { - "title": "can add a product attribute", - "status": "passed" - }, - { - "title": "can retrieve a product attribute", - "status": "passed" - }, - { - "title": "can retrieve all product attribute", - "status": "passed" - }, - { - "title": "can update a product attribute", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute", - "status": "passed" - }, - { - "title": "can batch update product attributes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ - { - "title": "can add a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve all product attribute terms", - "status": "passed" - }, - { - "title": "can update a product attribute term", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute term", - "status": "passed" - }, - { - "title": "can batch update product attribute terms", - "status": "passed" - } - ], - "Products API tests: CRUD > Product categories tests: CRUD": [ - { - "title": "can add a product category", - "status": "passed" - }, - { - "title": "can retrieve a product category", - "status": "passed" - }, - { - "title": "can retrieve all product categories", - "status": "passed" - }, - { - "title": "can update a product category", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product categories", - "status": "passed" - } - ], - "Products API tests: CRUD > Product review tests: CRUD": [ - { - "title": "can add a product review", - "status": "passed" - }, - { - "title": "cannot add a product review with invalid product_id", - "status": "passed" - }, - { - "title": "cannot add a duplicate product review", - "status": "passed" - }, - { - "title": "can retrieve a product review", - "status": "passed" - }, - { - "title": "can retrieve all product reviews", - "status": "passed" - }, - { - "title": "can update a product review", - "status": "passed" - }, - { - "title": "can permanently delete a product review", - "status": "passed" - }, - { - "title": "can batch update product reviews", - "status": "passed" - } - ], - "Products API tests: CRUD > Product shipping classes tests: CRUD": [ - { - "title": "can add a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve all product shipping classes", - "status": "passed" - }, - { - "title": "can update a product shipping class", - "status": "passed" - }, - { - "title": "can permanently delete a product shipping class", - "status": "passed" - }, - { - "title": "can batch update product shipping classes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product tags tests: CRUD": [ - { - "title": "can add a product tag", - "status": "passed" - }, - { - "title": "can retrieve a product tag", - "status": "passed" - }, - { - "title": "can retrieve all product tags", - "status": "passed" - }, - { - "title": "can update a product tag", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product tags", - "status": "passed" - } - ], - "Products API tests: CRUD > Product variation tests: CRUD": [ - { - "title": "can add a variable product", - "status": "passed" - }, - { - "title": "can add a product variation", - "status": "passed" - }, - { - "title": "can retrieve a product variation", - "status": "passed" - }, - { - "title": "can retrieve all product variations", - "status": "passed" - }, - { - "title": "can update a product variation", - "status": "passed" - }, - { - "title": "can permanently delete a product variation", - "status": "passed" - }, - { - "title": "can batch update product variations", - "status": "passed" - } - ], - "Products API tests: CRUD > Batch update products": [ - { - "title": "can batch create products", - "status": "passed" - }, - { - "title": "can batch update products", - "status": "passed" - }, - { - "title": "can batch delete products", - "status": "passed" - } - ] - } - }, - { - "file": "refunds\\/refunds.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Refunds API tests": [ - { - "title": "can create a refund", - "status": "passed" - }, - { - "title": "can retrieve a refund", - "status": "passed" - }, - { - "title": "can list all refunds", - "status": "passed" - }, - { - "title": "can delete a refund", - "status": "passed" - } - ] - } - }, - { - "file": "reports\\/reports-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Reports API tests": [ - { - "title": "can view all reports", - "status": "passed" - }, - { - "title": "can view sales reports", - "status": "passed" - }, - { - "title": "can view top sellers reports", - "status": "passed" - }, - { - "title": "can view coupons totals", - "status": "passed" - }, - { - "title": "can view customers totals", - "status": "passed" - }, - { - "title": "can view orders totals", - "status": "passed" - }, - { - "title": "can view products totals", - "status": "passed" - }, - { - "title": "can view reviews totals", - "status": "passed" - } - ] - } - }, - { - "file": "settings\\/settings-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Settings API tests: CRUD": [], - "Settings API tests: CRUD > List all settings groups": [ - { - "title": "can retrieve all settings groups", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all settings options": [ - { - "title": "can retrieve all general settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > Retrieve a settings option": [ - { - "title": "can retrieve a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Update a settings option": [ - { - "title": "can update a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Batch Update a settings option": [ - { - "title": "can batch update settings options", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Products settings options": [ - { - "title": "can retrieve all products settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Tax settings options": [ - { - "title": "can retrieve all tax settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Shipping settings options": [ - { - "title": "can retrieve all shipping settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Checkout settings options": [ - { - "title": "can retrieve all checkout settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Account settings options": [ - { - "title": "can retrieve all account settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email settings options": [ - { - "title": "can retrieve all email settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Advanced settings options": [ - { - "title": "can retrieve all advanced settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email New Order settings": [ - { - "title": "can retrieve all email new order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Failed Order settings": [ - { - "title": "can retrieve all email failed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ - { - "title": "can retrieve all email customer on hold order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ - { - "title": "can retrieve all email customer processing order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ - { - "title": "can retrieve all email customer completed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ - { - "title": "can retrieve all email customer refunded order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Invoice settings": [ - { - "title": "can retrieve all email customer invoice settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Note settings": [ - { - "title": "can retrieve all email customer note settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ - { - "title": "can retrieve all email customer reset password settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer New Account settings": [ - { - "title": "can retrieve all email customer new account settings", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-method.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping methods API tests": [ - { - "title": "cannot create a shipping method", - "status": "passed" - }, - { - "title": "can retrieve all shipping methods", - "status": "passed" - }, - { - "title": "can retrieve a shipping method", - "status": "passed" - }, - { - "title": "cannot update a shipping method", - "status": "passed" - }, - { - "title": "cannot delete a shipping method", - "status": "passed" - }, - { - "title": "can add a Flat rate shipping method", - "status": "passed" - }, - { - "title": "can add a Free shipping shipping method", - "status": "passed" - }, - { - "title": "can add a Local pickup shipping method", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-zones.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping zones API tests": [ - { - "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", - "status": "passed" - }, - { - "title": "cannot update the default shipping zone", - "status": "passed" - }, - { - "title": "can create a shipping zone", - "status": "passed" - }, - { - "title": "can retrieve a shipping zone", - "status": "passed" - }, - { - "title": "can list all shipping zones", - "status": "passed" - }, - { - "title": "can update a shipping zone", - "status": "passed" - }, - { - "title": "can add a shipping region to a shipping zone", - "status": "passed" - }, - { - "title": "can update a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can clear\\/delete a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can delete a shipping zone", - "status": "passed" - } - ] - } - }, - { - "file": "system-status\\/system-status-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "System Status API tests": [ - { - "title": "can view all system status tools", - "status": "passed" - }, - { - "title": "can retrieve a system status tool", - "status": "passed" - }, - { - "title": "can run a tool from system status", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-classes-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Classes API tests: CRUD": [], - "Tax Classes API tests: CRUD > Create a tax class": [ - { - "title": "can enable tax calculations", - "status": "passed" - }, - { - "title": "can create a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax class", - "status": "passed" - }, - { - "title": "can retrieve all tax classes", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Update a tax class": [ - { - "title": "cannot update a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Delete a tax class": [ - { - "title": "can permanently delete a tax class", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-rates-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Rates API tests: CRUD": [], - "Tax Rates API tests: CRUD > Create a tax rate": [ - { - "title": "can create a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax rate", - "status": "passed" - }, - { - "title": "can retrieve all tax rates", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Update a tax rate": [ - { - "title": "can update a tax rate", - "status": "passed" - }, - { - "title": "retrieve after update tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Delete a tax rate": [ - { - "title": "can permanently delete a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Batch tax rate operations": [ - { - "title": "can batch create tax rates", - "status": "passed" - }, - { - "title": "can batch update tax rates", - "status": "passed" - }, - { - "title": "can batch delete tax rates", - "status": "passed" - } - ] - } - }, - { - "file": "webhooks\\/webhooks-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Webhooks API tests": [], - "Webhooks API tests > Create a webhook": [ - { - "title": "can create a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Retrieve after create": [ - { - "title": "can retrieve a webhook", - "status": "passed" - }, - { - "title": "can retrieve all webhooks", - "status": "passed" - } - ], - "Webhooks API tests > Update a webhook": [ - { - "title": "can update a web hook", - "status": "passed" - } - ], - "Webhooks API tests > Delete a webhook": [ - { - "title": "can permanently delete a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Batch webhook operations": [ - { - "title": "can batch create webhooks", - "status": "passed" - }, - { - "title": "can batch update webhooks", - "status": "passed" - }, - { - "title": "can batch delete webhooks", - "status": "passed" - } - ] - } - } - ], - "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." + "numPassedTests": 0, + "numPendingTests": 0, + "numTotalTests": 0, + "testResults": [], + "summary": "Test failed before it was executed." } - }, - { - "debug_log": [ - { - "count": "550", - "message": "PHP Notice: $order is Automattic\\\\WooCommerce\\\\Admin\\\\Overrides\\\\Order as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 41" - } - ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php index 8e1c5758..40897961 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "success", + "status": "failed", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,1363 +31,29 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", + "test_summary": "Test failed before it was executed.", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 20, + "numPassedTestSuites": 0, "numPendingTestSuites": 0, - "numTotalTestSuites": 20, + "numTotalTestSuites": 0, "numFailedTests": 0, - "numPassedTests": 255, - "numPendingTests": 2, - "numTotalTests": 257, - "testResults": [ - { - "file": "coupons\\/coupons.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Coupons API tests": [ - { - "title": "can create a coupon", - "status": "passed" - }, - { - "title": "can retrieve a coupon", - "status": "passed" - }, - { - "title": "can update a coupon", - "status": "passed" - }, - { - "title": "can permanently delete a coupon", - "status": "passed" - } - ], - "Batch update coupons": [ - { - "title": "can batch create coupons", - "status": "passed" - }, - { - "title": "can batch update coupons", - "status": "passed" - }, - { - "title": "can batch delete coupons", - "status": "passed" - } - ], - "List coupons": [ - { - "title": "can list all coupons by default", - "status": "passed" - }, - { - "title": "can limit result set to matching code", - "status": "passed" - }, - { - "title": "can paginate results", - "status": "passed" - }, - { - "title": "can limit results to matching string", - "status": "passed" - } - ], - "Add coupon to order": [ - { - "title": "can add coupon to an order", - "status": "passed" - } - ] - } - }, - { - "file": "customers\\/customers-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Customers API tests: CRUD": [], - "Customers API tests: CRUD > Retrieve after env setup": [ - { - "title": "can retrieve admin user", - "status": "passed" - }, - { - "title": "can retrieve subscriber user", - "status": "passed" - }, - { - "title": "retrieve user with id 0 is invalid", - "status": "passed" - }, - { - "title": "can retrieve customers", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Create a customer": [ - { - "title": "can create a customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a customer", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Update a customer": [ - { - "title": "can update the admin user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update admin", - "status": "passed" - }, - { - "title": "can update the subscriber user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update subscriber", - "status": "passed" - }, - { - "title": "can update a customer", - "status": "passed" - }, - { - "title": "retrieve after update customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Delete a customer": [ - { - "title": "can permanently delete an customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Batch update customers": [ - { - "title": "can batch create customers", - "status": "passed" - }, - { - "title": "can batch update customers", - "status": "passed" - }, - { - "title": "can batch delete customers", - "status": "passed" - } - ] - } - }, - { - "file": "data\\/data-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Data API tests": [ - { - "title": "can list all data", - "status": "passed" - }, - { - "title": "can view country data", - "status": "passed" - }, - { - "title": "can view currency data", - "status": "passed" - }, - { - "title": "can view current currency", - "status": "passed" - } - ] - } - }, - { - "file": "hello\\/hello.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Test API connectivity": [ - { - "title": "can access a non-authenticated endpoint", - "status": "passed" - }, - { - "title": "can access an authenticated endpoint", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-complex.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API test": [ - { - "title": "can add complex order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-search.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Order Search API tests": [ - { - "title": "can search by orderId", - "status": "passed" - }, - { - "title": "can search by billing first name", - "status": "passed" - }, - { - "title": "can search by billing company name", - "status": "passed" - }, - { - "title": "can search by billing address 2", - "status": "passed" - }, - { - "title": "can search by billing city name", - "status": "passed" - }, - { - "title": "can search by billing post code", - "status": "passed" - }, - { - "title": "can search by billing phone", - "status": "passed" - }, - { - "title": "can search by billing state", - "status": "passed" - }, - { - "title": "can search by shipping first name", - "status": "passed" - }, - { - "title": "can search by shipping last name", - "status": "passed" - }, - { - "title": "can search by shipping address 2", - "status": "passed" - }, - { - "title": "can search by shipping city", - "status": "passed" - }, - { - "title": "can search by shipping post code", - "status": "passed" - }, - { - "title": "can search by shipping state", - "status": "passed" - }, - { - "title": "can return an empty result set when no matches were found", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests: CRUD": [], - "Orders API tests: CRUD > Create an order": [ - { - "title": "can create a pending order by default", - "status": "passed" - }, - { - "title": "can create an order with status pending", - "status": "passed" - }, - { - "title": "can create an order with status processing", - "status": "passed" - }, - { - "title": "can create an order with status on-hold", - "status": "passed" - }, - { - "title": "can create an order with status completed", - "status": "passed" - }, - { - "title": "can create an order with status cancelled", - "status": "passed" - }, - { - "title": "can create an order with status refunded", - "status": "passed" - }, - { - "title": "can create an order with status failed", - "status": "passed" - } - ], - "Orders API tests: CRUD > Create an order > Order Notes tests": [ - { - "title": "can create a order note", - "status": "passed" - }, - { - "title": "can retrieve an order note", - "status": "passed" - }, - { - "title": "can retrieve all order notes", - "status": "passed" - }, - { - "title": "cannot update an order note", - "status": "passed" - }, - { - "title": "can permanently delete an order note", - "status": "passed" - } - ], - "Orders API tests: CRUD > Retrieve an order": [ - { - "title": "can retrieve an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Update an order": [ - { - "title": "can update status of an order to pending", - "status": "passed" - }, - { - "title": "can update status of an order to processing", - "status": "passed" - }, - { - "title": "can update status of an order to on-hold", - "status": "passed" - }, - { - "title": "can update status of an order to completed", - "status": "passed" - }, - { - "title": "can update status of an order to cancelled", - "status": "passed" - }, - { - "title": "can update status of an order to refunded", - "status": "passed" - }, - { - "title": "can update status of an order to failed", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can add a product to an order", - "status": "passed" - }, - { - "title": "can pay for an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Delete an order": [ - { - "title": "can permanently delete an order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests": [ - { - "title": "can create an order", - "status": "passed" - }, - { - "title": "can retrieve an order", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can permanently delete an order", - "status": "passed" - } - ], - "Orders API tests > List all orders": [ - { - "title": "pagination", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "customer", - "status": "passed" - }, - { - "title": "product", - "status": "passed" - }, - { - "title": "dp (precision)", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - } - ], - "Orders API tests > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - } - ] - } - }, - { - "file": "payment-gateways\\/payment-gateways-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Payment Gateways API tests": [ - { - "title": "can view all payment gateways", - "status": "passed" - }, - { - "title": "can view a payment gateway", - "status": "passed" - }, - { - "title": "can update a payment gateway", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/product-list.test.js", - "status": "passed", - "has_pending": true, - "tests": { - "Products API tests: List All Products": [], - "Products API tests: List All Products > List all products": [ - { - "title": "defaults", - "status": "passed" - }, - { - "title": "pagination", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "slug", - "status": "passed" - }, - { - "title": "sku", - "status": "passed" - }, - { - "title": "type", - "status": "passed" - }, - { - "title": "featured", - "status": "passed" - }, - { - "title": "categories", - "status": "passed" - }, - { - "title": "on sale", - "status": "passed" - }, - { - "title": "price", - "status": "passed" - }, - { - "title": "before \\/ after", - "status": "passed" - }, - { - "title": "attributes", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "shipping class", - "status": "passed" - }, - { - "title": "tax class", - "status": "passed" - }, - { - "title": "stock status", - "status": "passed" - }, - { - "title": "tags", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - } - ], - "Products API tests: List All Products > List all products > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "title", - "status": "passed" - }, - { - "title": "slug orderby", - "status": "passed" - }, - { - "title": "price orderby", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - }, - { - "title": "rating (desc)", - "status": "passed" - }, - { - "title": "rating (asc)", - "status": "pending" - }, - { - "title": "popularity (asc)", - "status": "pending" - }, - { - "title": "popularity (desc)", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/products-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Products API tests: CRUD": [ - { - "title": "can add a simple product", - "status": "passed" - }, - { - "title": "can add a virtual product", - "status": "passed" - }, - { - "title": "can view a single product", - "status": "passed" - }, - { - "title": "can update a single product", - "status": "passed" - }, - { - "title": "can delete a product", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD": [ - { - "title": "can add a product attribute", - "status": "passed" - }, - { - "title": "can retrieve a product attribute", - "status": "passed" - }, - { - "title": "can retrieve all product attribute", - "status": "passed" - }, - { - "title": "can update a product attribute", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute", - "status": "passed" - }, - { - "title": "can batch update product attributes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ - { - "title": "can add a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve all product attribute terms", - "status": "passed" - }, - { - "title": "can update a product attribute term", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute term", - "status": "passed" - }, - { - "title": "can batch update product attribute terms", - "status": "passed" - } - ], - "Products API tests: CRUD > Product categories tests: CRUD": [ - { - "title": "can add a product category", - "status": "passed" - }, - { - "title": "can retrieve a product category", - "status": "passed" - }, - { - "title": "can retrieve all product categories", - "status": "passed" - }, - { - "title": "can update a product category", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product categories", - "status": "passed" - } - ], - "Products API tests: CRUD > Product review tests: CRUD": [ - { - "title": "can add a product review", - "status": "passed" - }, - { - "title": "cannot add a product review with invalid product_id", - "status": "passed" - }, - { - "title": "cannot add a duplicate product review", - "status": "passed" - }, - { - "title": "can retrieve a product review", - "status": "passed" - }, - { - "title": "can retrieve all product reviews", - "status": "passed" - }, - { - "title": "can update a product review", - "status": "passed" - }, - { - "title": "can permanently delete a product review", - "status": "passed" - }, - { - "title": "can batch update product reviews", - "status": "passed" - } - ], - "Products API tests: CRUD > Product shipping classes tests: CRUD": [ - { - "title": "can add a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve all product shipping classes", - "status": "passed" - }, - { - "title": "can update a product shipping class", - "status": "passed" - }, - { - "title": "can permanently delete a product shipping class", - "status": "passed" - }, - { - "title": "can batch update product shipping classes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product tags tests: CRUD": [ - { - "title": "can add a product tag", - "status": "passed" - }, - { - "title": "can retrieve a product tag", - "status": "passed" - }, - { - "title": "can retrieve all product tags", - "status": "passed" - }, - { - "title": "can update a product tag", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product tags", - "status": "passed" - } - ], - "Products API tests: CRUD > Product variation tests: CRUD": [ - { - "title": "can add a variable product", - "status": "passed" - }, - { - "title": "can add a product variation", - "status": "passed" - }, - { - "title": "can retrieve a product variation", - "status": "passed" - }, - { - "title": "can retrieve all product variations", - "status": "passed" - }, - { - "title": "can update a product variation", - "status": "passed" - }, - { - "title": "can permanently delete a product variation", - "status": "passed" - }, - { - "title": "can batch update product variations", - "status": "passed" - } - ], - "Products API tests: CRUD > Batch update products": [ - { - "title": "can batch create products", - "status": "passed" - }, - { - "title": "can batch update products", - "status": "passed" - }, - { - "title": "can batch delete products", - "status": "passed" - } - ] - } - }, - { - "file": "refunds\\/refunds.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Refunds API tests": [ - { - "title": "can create a refund", - "status": "passed" - }, - { - "title": "can retrieve a refund", - "status": "passed" - }, - { - "title": "can list all refunds", - "status": "passed" - }, - { - "title": "can delete a refund", - "status": "passed" - } - ] - } - }, - { - "file": "reports\\/reports-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Reports API tests": [ - { - "title": "can view all reports", - "status": "passed" - }, - { - "title": "can view sales reports", - "status": "passed" - }, - { - "title": "can view top sellers reports", - "status": "passed" - }, - { - "title": "can view coupons totals", - "status": "passed" - }, - { - "title": "can view customers totals", - "status": "passed" - }, - { - "title": "can view orders totals", - "status": "passed" - }, - { - "title": "can view products totals", - "status": "passed" - }, - { - "title": "can view reviews totals", - "status": "passed" - } - ] - } - }, - { - "file": "settings\\/settings-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Settings API tests: CRUD": [], - "Settings API tests: CRUD > List all settings groups": [ - { - "title": "can retrieve all settings groups", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all settings options": [ - { - "title": "can retrieve all general settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > Retrieve a settings option": [ - { - "title": "can retrieve a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Update a settings option": [ - { - "title": "can update a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Batch Update a settings option": [ - { - "title": "can batch update settings options", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Products settings options": [ - { - "title": "can retrieve all products settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Tax settings options": [ - { - "title": "can retrieve all tax settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Shipping settings options": [ - { - "title": "can retrieve all shipping settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Checkout settings options": [ - { - "title": "can retrieve all checkout settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Account settings options": [ - { - "title": "can retrieve all account settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email settings options": [ - { - "title": "can retrieve all email settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Advanced settings options": [ - { - "title": "can retrieve all advanced settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email New Order settings": [ - { - "title": "can retrieve all email new order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Failed Order settings": [ - { - "title": "can retrieve all email failed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ - { - "title": "can retrieve all email customer on hold order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ - { - "title": "can retrieve all email customer processing order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ - { - "title": "can retrieve all email customer completed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ - { - "title": "can retrieve all email customer refunded order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Invoice settings": [ - { - "title": "can retrieve all email customer invoice settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Note settings": [ - { - "title": "can retrieve all email customer note settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ - { - "title": "can retrieve all email customer reset password settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer New Account settings": [ - { - "title": "can retrieve all email customer new account settings", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-method.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping methods API tests": [ - { - "title": "cannot create a shipping method", - "status": "passed" - }, - { - "title": "can retrieve all shipping methods", - "status": "passed" - }, - { - "title": "can retrieve a shipping method", - "status": "passed" - }, - { - "title": "cannot update a shipping method", - "status": "passed" - }, - { - "title": "cannot delete a shipping method", - "status": "passed" - }, - { - "title": "can add a Flat rate shipping method", - "status": "passed" - }, - { - "title": "can add a Free shipping shipping method", - "status": "passed" - }, - { - "title": "can add a Local pickup shipping method", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-zones.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping zones API tests": [ - { - "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", - "status": "passed" - }, - { - "title": "cannot update the default shipping zone", - "status": "passed" - }, - { - "title": "can create a shipping zone", - "status": "passed" - }, - { - "title": "can retrieve a shipping zone", - "status": "passed" - }, - { - "title": "can list all shipping zones", - "status": "passed" - }, - { - "title": "can update a shipping zone", - "status": "passed" - }, - { - "title": "can add a shipping region to a shipping zone", - "status": "passed" - }, - { - "title": "can update a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can clear\\/delete a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can delete a shipping zone", - "status": "passed" - } - ] - } - }, - { - "file": "system-status\\/system-status-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "System Status API tests": [ - { - "title": "can view all system status tools", - "status": "passed" - }, - { - "title": "can retrieve a system status tool", - "status": "passed" - }, - { - "title": "can run a tool from system status", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-classes-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Classes API tests: CRUD": [], - "Tax Classes API tests: CRUD > Create a tax class": [ - { - "title": "can enable tax calculations", - "status": "passed" - }, - { - "title": "can create a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax class", - "status": "passed" - }, - { - "title": "can retrieve all tax classes", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Update a tax class": [ - { - "title": "cannot update a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Delete a tax class": [ - { - "title": "can permanently delete a tax class", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-rates-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Rates API tests: CRUD": [], - "Tax Rates API tests: CRUD > Create a tax rate": [ - { - "title": "can create a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax rate", - "status": "passed" - }, - { - "title": "can retrieve all tax rates", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Update a tax rate": [ - { - "title": "can update a tax rate", - "status": "passed" - }, - { - "title": "retrieve after update tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Delete a tax rate": [ - { - "title": "can permanently delete a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Batch tax rate operations": [ - { - "title": "can batch create tax rates", - "status": "passed" - }, - { - "title": "can batch update tax rates", - "status": "passed" - }, - { - "title": "can batch delete tax rates", - "status": "passed" - } - ] - } - }, - { - "file": "webhooks\\/webhooks-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Webhooks API tests": [], - "Webhooks API tests > Create a webhook": [ - { - "title": "can create a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Retrieve after create": [ - { - "title": "can retrieve a webhook", - "status": "passed" - }, - { - "title": "can retrieve all webhooks", - "status": "passed" - } - ], - "Webhooks API tests > Update a webhook": [ - { - "title": "can update a web hook", - "status": "passed" - } - ], - "Webhooks API tests > Delete a webhook": [ - { - "title": "can permanently delete a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Batch webhook operations": [ - { - "title": "can batch create webhooks", - "status": "passed" - }, - { - "title": "can batch update webhooks", - "status": "passed" - }, - { - "title": "can batch delete webhooks", - "status": "passed" - } - ] - } - } - ], - "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." + "numPassedTests": 0, + "numPendingTests": 0, + "numTotalTests": 0, + "testResults": [], + "summary": "Test failed before it was executed." } - }, - { - "debug_log": [ - { - "count": "550", - "message": "PHP Notice: $order is Automattic\\\\WooCommerce\\\\Admin\\\\Overrides\\\\Order as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 41" - } - ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php index 69692296..0b561b0d 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "success", + "status": "failed", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,1363 +31,29 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", + "test_summary": "Test failed before it was executed.", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 20, + "numPassedTestSuites": 0, "numPendingTestSuites": 0, - "numTotalTestSuites": 20, + "numTotalTestSuites": 0, "numFailedTests": 0, - "numPassedTests": 255, - "numPendingTests": 2, - "numTotalTests": 257, - "testResults": [ - { - "file": "coupons\\/coupons.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Coupons API tests": [ - { - "title": "can create a coupon", - "status": "passed" - }, - { - "title": "can retrieve a coupon", - "status": "passed" - }, - { - "title": "can update a coupon", - "status": "passed" - }, - { - "title": "can permanently delete a coupon", - "status": "passed" - } - ], - "Batch update coupons": [ - { - "title": "can batch create coupons", - "status": "passed" - }, - { - "title": "can batch update coupons", - "status": "passed" - }, - { - "title": "can batch delete coupons", - "status": "passed" - } - ], - "List coupons": [ - { - "title": "can list all coupons by default", - "status": "passed" - }, - { - "title": "can limit result set to matching code", - "status": "passed" - }, - { - "title": "can paginate results", - "status": "passed" - }, - { - "title": "can limit results to matching string", - "status": "passed" - } - ], - "Add coupon to order": [ - { - "title": "can add coupon to an order", - "status": "passed" - } - ] - } - }, - { - "file": "customers\\/customers-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Customers API tests: CRUD": [], - "Customers API tests: CRUD > Retrieve after env setup": [ - { - "title": "can retrieve admin user", - "status": "passed" - }, - { - "title": "can retrieve subscriber user", - "status": "passed" - }, - { - "title": "retrieve user with id 0 is invalid", - "status": "passed" - }, - { - "title": "can retrieve customers", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Create a customer": [ - { - "title": "can create a customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a customer", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Update a customer": [ - { - "title": "can update the admin user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update admin", - "status": "passed" - }, - { - "title": "can update the subscriber user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update subscriber", - "status": "passed" - }, - { - "title": "can update a customer", - "status": "passed" - }, - { - "title": "retrieve after update customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Delete a customer": [ - { - "title": "can permanently delete an customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Batch update customers": [ - { - "title": "can batch create customers", - "status": "passed" - }, - { - "title": "can batch update customers", - "status": "passed" - }, - { - "title": "can batch delete customers", - "status": "passed" - } - ] - } - }, - { - "file": "data\\/data-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Data API tests": [ - { - "title": "can list all data", - "status": "passed" - }, - { - "title": "can view country data", - "status": "passed" - }, - { - "title": "can view currency data", - "status": "passed" - }, - { - "title": "can view current currency", - "status": "passed" - } - ] - } - }, - { - "file": "hello\\/hello.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Test API connectivity": [ - { - "title": "can access a non-authenticated endpoint", - "status": "passed" - }, - { - "title": "can access an authenticated endpoint", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-complex.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API test": [ - { - "title": "can add complex order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-search.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Order Search API tests": [ - { - "title": "can search by orderId", - "status": "passed" - }, - { - "title": "can search by billing first name", - "status": "passed" - }, - { - "title": "can search by billing company name", - "status": "passed" - }, - { - "title": "can search by billing address 2", - "status": "passed" - }, - { - "title": "can search by billing city name", - "status": "passed" - }, - { - "title": "can search by billing post code", - "status": "passed" - }, - { - "title": "can search by billing phone", - "status": "passed" - }, - { - "title": "can search by billing state", - "status": "passed" - }, - { - "title": "can search by shipping first name", - "status": "passed" - }, - { - "title": "can search by shipping last name", - "status": "passed" - }, - { - "title": "can search by shipping address 2", - "status": "passed" - }, - { - "title": "can search by shipping city", - "status": "passed" - }, - { - "title": "can search by shipping post code", - "status": "passed" - }, - { - "title": "can search by shipping state", - "status": "passed" - }, - { - "title": "can return an empty result set when no matches were found", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests: CRUD": [], - "Orders API tests: CRUD > Create an order": [ - { - "title": "can create a pending order by default", - "status": "passed" - }, - { - "title": "can create an order with status pending", - "status": "passed" - }, - { - "title": "can create an order with status processing", - "status": "passed" - }, - { - "title": "can create an order with status on-hold", - "status": "passed" - }, - { - "title": "can create an order with status completed", - "status": "passed" - }, - { - "title": "can create an order with status cancelled", - "status": "passed" - }, - { - "title": "can create an order with status refunded", - "status": "passed" - }, - { - "title": "can create an order with status failed", - "status": "passed" - } - ], - "Orders API tests: CRUD > Create an order > Order Notes tests": [ - { - "title": "can create a order note", - "status": "passed" - }, - { - "title": "can retrieve an order note", - "status": "passed" - }, - { - "title": "can retrieve all order notes", - "status": "passed" - }, - { - "title": "cannot update an order note", - "status": "passed" - }, - { - "title": "can permanently delete an order note", - "status": "passed" - } - ], - "Orders API tests: CRUD > Retrieve an order": [ - { - "title": "can retrieve an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Update an order": [ - { - "title": "can update status of an order to pending", - "status": "passed" - }, - { - "title": "can update status of an order to processing", - "status": "passed" - }, - { - "title": "can update status of an order to on-hold", - "status": "passed" - }, - { - "title": "can update status of an order to completed", - "status": "passed" - }, - { - "title": "can update status of an order to cancelled", - "status": "passed" - }, - { - "title": "can update status of an order to refunded", - "status": "passed" - }, - { - "title": "can update status of an order to failed", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can add a product to an order", - "status": "passed" - }, - { - "title": "can pay for an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Delete an order": [ - { - "title": "can permanently delete an order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests": [ - { - "title": "can create an order", - "status": "passed" - }, - { - "title": "can retrieve an order", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can permanently delete an order", - "status": "passed" - } - ], - "Orders API tests > List all orders": [ - { - "title": "pagination", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "customer", - "status": "passed" - }, - { - "title": "product", - "status": "passed" - }, - { - "title": "dp (precision)", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - } - ], - "Orders API tests > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - } - ] - } - }, - { - "file": "payment-gateways\\/payment-gateways-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Payment Gateways API tests": [ - { - "title": "can view all payment gateways", - "status": "passed" - }, - { - "title": "can view a payment gateway", - "status": "passed" - }, - { - "title": "can update a payment gateway", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/product-list.test.js", - "status": "passed", - "has_pending": true, - "tests": { - "Products API tests: List All Products": [], - "Products API tests: List All Products > List all products": [ - { - "title": "defaults", - "status": "passed" - }, - { - "title": "pagination", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "slug", - "status": "passed" - }, - { - "title": "sku", - "status": "passed" - }, - { - "title": "type", - "status": "passed" - }, - { - "title": "featured", - "status": "passed" - }, - { - "title": "categories", - "status": "passed" - }, - { - "title": "on sale", - "status": "passed" - }, - { - "title": "price", - "status": "passed" - }, - { - "title": "before \\/ after", - "status": "passed" - }, - { - "title": "attributes", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "shipping class", - "status": "passed" - }, - { - "title": "tax class", - "status": "passed" - }, - { - "title": "stock status", - "status": "passed" - }, - { - "title": "tags", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - } - ], - "Products API tests: List All Products > List all products > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "title", - "status": "passed" - }, - { - "title": "slug orderby", - "status": "passed" - }, - { - "title": "price orderby", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - }, - { - "title": "rating (desc)", - "status": "passed" - }, - { - "title": "rating (asc)", - "status": "pending" - }, - { - "title": "popularity (asc)", - "status": "pending" - }, - { - "title": "popularity (desc)", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/products-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Products API tests: CRUD": [ - { - "title": "can add a simple product", - "status": "passed" - }, - { - "title": "can add a virtual product", - "status": "passed" - }, - { - "title": "can view a single product", - "status": "passed" - }, - { - "title": "can update a single product", - "status": "passed" - }, - { - "title": "can delete a product", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD": [ - { - "title": "can add a product attribute", - "status": "passed" - }, - { - "title": "can retrieve a product attribute", - "status": "passed" - }, - { - "title": "can retrieve all product attribute", - "status": "passed" - }, - { - "title": "can update a product attribute", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute", - "status": "passed" - }, - { - "title": "can batch update product attributes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ - { - "title": "can add a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve all product attribute terms", - "status": "passed" - }, - { - "title": "can update a product attribute term", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute term", - "status": "passed" - }, - { - "title": "can batch update product attribute terms", - "status": "passed" - } - ], - "Products API tests: CRUD > Product categories tests: CRUD": [ - { - "title": "can add a product category", - "status": "passed" - }, - { - "title": "can retrieve a product category", - "status": "passed" - }, - { - "title": "can retrieve all product categories", - "status": "passed" - }, - { - "title": "can update a product category", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product categories", - "status": "passed" - } - ], - "Products API tests: CRUD > Product review tests: CRUD": [ - { - "title": "can add a product review", - "status": "passed" - }, - { - "title": "cannot add a product review with invalid product_id", - "status": "passed" - }, - { - "title": "cannot add a duplicate product review", - "status": "passed" - }, - { - "title": "can retrieve a product review", - "status": "passed" - }, - { - "title": "can retrieve all product reviews", - "status": "passed" - }, - { - "title": "can update a product review", - "status": "passed" - }, - { - "title": "can permanently delete a product review", - "status": "passed" - }, - { - "title": "can batch update product reviews", - "status": "passed" - } - ], - "Products API tests: CRUD > Product shipping classes tests: CRUD": [ - { - "title": "can add a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve all product shipping classes", - "status": "passed" - }, - { - "title": "can update a product shipping class", - "status": "passed" - }, - { - "title": "can permanently delete a product shipping class", - "status": "passed" - }, - { - "title": "can batch update product shipping classes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product tags tests: CRUD": [ - { - "title": "can add a product tag", - "status": "passed" - }, - { - "title": "can retrieve a product tag", - "status": "passed" - }, - { - "title": "can retrieve all product tags", - "status": "passed" - }, - { - "title": "can update a product tag", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product tags", - "status": "passed" - } - ], - "Products API tests: CRUD > Product variation tests: CRUD": [ - { - "title": "can add a variable product", - "status": "passed" - }, - { - "title": "can add a product variation", - "status": "passed" - }, - { - "title": "can retrieve a product variation", - "status": "passed" - }, - { - "title": "can retrieve all product variations", - "status": "passed" - }, - { - "title": "can update a product variation", - "status": "passed" - }, - { - "title": "can permanently delete a product variation", - "status": "passed" - }, - { - "title": "can batch update product variations", - "status": "passed" - } - ], - "Products API tests: CRUD > Batch update products": [ - { - "title": "can batch create products", - "status": "passed" - }, - { - "title": "can batch update products", - "status": "passed" - }, - { - "title": "can batch delete products", - "status": "passed" - } - ] - } - }, - { - "file": "refunds\\/refunds.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Refunds API tests": [ - { - "title": "can create a refund", - "status": "passed" - }, - { - "title": "can retrieve a refund", - "status": "passed" - }, - { - "title": "can list all refunds", - "status": "passed" - }, - { - "title": "can delete a refund", - "status": "passed" - } - ] - } - }, - { - "file": "reports\\/reports-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Reports API tests": [ - { - "title": "can view all reports", - "status": "passed" - }, - { - "title": "can view sales reports", - "status": "passed" - }, - { - "title": "can view top sellers reports", - "status": "passed" - }, - { - "title": "can view coupons totals", - "status": "passed" - }, - { - "title": "can view customers totals", - "status": "passed" - }, - { - "title": "can view orders totals", - "status": "passed" - }, - { - "title": "can view products totals", - "status": "passed" - }, - { - "title": "can view reviews totals", - "status": "passed" - } - ] - } - }, - { - "file": "settings\\/settings-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Settings API tests: CRUD": [], - "Settings API tests: CRUD > List all settings groups": [ - { - "title": "can retrieve all settings groups", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all settings options": [ - { - "title": "can retrieve all general settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > Retrieve a settings option": [ - { - "title": "can retrieve a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Update a settings option": [ - { - "title": "can update a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Batch Update a settings option": [ - { - "title": "can batch update settings options", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Products settings options": [ - { - "title": "can retrieve all products settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Tax settings options": [ - { - "title": "can retrieve all tax settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Shipping settings options": [ - { - "title": "can retrieve all shipping settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Checkout settings options": [ - { - "title": "can retrieve all checkout settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Account settings options": [ - { - "title": "can retrieve all account settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email settings options": [ - { - "title": "can retrieve all email settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Advanced settings options": [ - { - "title": "can retrieve all advanced settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email New Order settings": [ - { - "title": "can retrieve all email new order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Failed Order settings": [ - { - "title": "can retrieve all email failed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ - { - "title": "can retrieve all email customer on hold order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ - { - "title": "can retrieve all email customer processing order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ - { - "title": "can retrieve all email customer completed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ - { - "title": "can retrieve all email customer refunded order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Invoice settings": [ - { - "title": "can retrieve all email customer invoice settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Note settings": [ - { - "title": "can retrieve all email customer note settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ - { - "title": "can retrieve all email customer reset password settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer New Account settings": [ - { - "title": "can retrieve all email customer new account settings", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-method.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping methods API tests": [ - { - "title": "cannot create a shipping method", - "status": "passed" - }, - { - "title": "can retrieve all shipping methods", - "status": "passed" - }, - { - "title": "can retrieve a shipping method", - "status": "passed" - }, - { - "title": "cannot update a shipping method", - "status": "passed" - }, - { - "title": "cannot delete a shipping method", - "status": "passed" - }, - { - "title": "can add a Flat rate shipping method", - "status": "passed" - }, - { - "title": "can add a Free shipping shipping method", - "status": "passed" - }, - { - "title": "can add a Local pickup shipping method", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-zones.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping zones API tests": [ - { - "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", - "status": "passed" - }, - { - "title": "cannot update the default shipping zone", - "status": "passed" - }, - { - "title": "can create a shipping zone", - "status": "passed" - }, - { - "title": "can retrieve a shipping zone", - "status": "passed" - }, - { - "title": "can list all shipping zones", - "status": "passed" - }, - { - "title": "can update a shipping zone", - "status": "passed" - }, - { - "title": "can add a shipping region to a shipping zone", - "status": "passed" - }, - { - "title": "can update a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can clear\\/delete a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can delete a shipping zone", - "status": "passed" - } - ] - } - }, - { - "file": "system-status\\/system-status-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "System Status API tests": [ - { - "title": "can view all system status tools", - "status": "passed" - }, - { - "title": "can retrieve a system status tool", - "status": "passed" - }, - { - "title": "can run a tool from system status", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-classes-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Classes API tests: CRUD": [], - "Tax Classes API tests: CRUD > Create a tax class": [ - { - "title": "can enable tax calculations", - "status": "passed" - }, - { - "title": "can create a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax class", - "status": "passed" - }, - { - "title": "can retrieve all tax classes", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Update a tax class": [ - { - "title": "cannot update a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Delete a tax class": [ - { - "title": "can permanently delete a tax class", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-rates-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Rates API tests: CRUD": [], - "Tax Rates API tests: CRUD > Create a tax rate": [ - { - "title": "can create a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax rate", - "status": "passed" - }, - { - "title": "can retrieve all tax rates", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Update a tax rate": [ - { - "title": "can update a tax rate", - "status": "passed" - }, - { - "title": "retrieve after update tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Delete a tax rate": [ - { - "title": "can permanently delete a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Batch tax rate operations": [ - { - "title": "can batch create tax rates", - "status": "passed" - }, - { - "title": "can batch update tax rates", - "status": "passed" - }, - { - "title": "can batch delete tax rates", - "status": "passed" - } - ] - } - }, - { - "file": "webhooks\\/webhooks-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Webhooks API tests": [], - "Webhooks API tests > Create a webhook": [ - { - "title": "can create a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Retrieve after create": [ - { - "title": "can retrieve a webhook", - "status": "passed" - }, - { - "title": "can retrieve all webhooks", - "status": "passed" - } - ], - "Webhooks API tests > Update a webhook": [ - { - "title": "can update a web hook", - "status": "passed" - } - ], - "Webhooks API tests > Delete a webhook": [ - { - "title": "can permanently delete a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Batch webhook operations": [ - { - "title": "can batch create webhooks", - "status": "passed" - }, - { - "title": "can batch update webhooks", - "status": "passed" - }, - { - "title": "can batch delete webhooks", - "status": "passed" - } - ] - } - } - ], - "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." + "numPassedTests": 0, + "numPendingTests": 0, + "numTotalTests": 0, + "testResults": [], + "summary": "Test failed before it was executed." } - }, - { - "debug_log": [ - { - "count": "550", - "message": "PHP Notice: New Product Editor is enabled as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 12" - } - ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php index d0d23256..3260b934 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "success", + "status": "failed", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,1363 +31,29 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", + "test_summary": "Test failed before it was executed.", + "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}", - "debug_log_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 20, + "numPassedTestSuites": 0, "numPendingTestSuites": 0, - "numTotalTestSuites": 20, + "numTotalTestSuites": 0, "numFailedTests": 0, - "numPassedTests": 255, - "numPendingTests": 2, - "numTotalTests": 257, - "testResults": [ - { - "file": "coupons\\/coupons.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Coupons API tests": [ - { - "title": "can create a coupon", - "status": "passed" - }, - { - "title": "can retrieve a coupon", - "status": "passed" - }, - { - "title": "can update a coupon", - "status": "passed" - }, - { - "title": "can permanently delete a coupon", - "status": "passed" - } - ], - "Batch update coupons": [ - { - "title": "can batch create coupons", - "status": "passed" - }, - { - "title": "can batch update coupons", - "status": "passed" - }, - { - "title": "can batch delete coupons", - "status": "passed" - } - ], - "List coupons": [ - { - "title": "can list all coupons by default", - "status": "passed" - }, - { - "title": "can limit result set to matching code", - "status": "passed" - }, - { - "title": "can paginate results", - "status": "passed" - }, - { - "title": "can limit results to matching string", - "status": "passed" - } - ], - "Add coupon to order": [ - { - "title": "can add coupon to an order", - "status": "passed" - } - ] - } - }, - { - "file": "customers\\/customers-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Customers API tests: CRUD": [], - "Customers API tests: CRUD > Retrieve after env setup": [ - { - "title": "can retrieve admin user", - "status": "passed" - }, - { - "title": "can retrieve subscriber user", - "status": "passed" - }, - { - "title": "retrieve user with id 0 is invalid", - "status": "passed" - }, - { - "title": "can retrieve customers", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Create a customer": [ - { - "title": "can create a customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a customer", - "status": "passed" - }, - { - "title": "can retrieve all customers", - "status": "passed" - } - ], - "Customers API tests: CRUD > Update a customer": [ - { - "title": "can update the admin user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update admin", - "status": "passed" - }, - { - "title": "can update the subscriber user\\/customer", - "status": "passed" - }, - { - "title": "retrieve after update subscriber", - "status": "passed" - }, - { - "title": "can update a customer", - "status": "passed" - }, - { - "title": "retrieve after update customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Delete a customer": [ - { - "title": "can permanently delete an customer", - "status": "passed" - } - ], - "Customers API tests: CRUD > Batch update customers": [ - { - "title": "can batch create customers", - "status": "passed" - }, - { - "title": "can batch update customers", - "status": "passed" - }, - { - "title": "can batch delete customers", - "status": "passed" - } - ] - } - }, - { - "file": "data\\/data-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Data API tests": [ - { - "title": "can list all data", - "status": "passed" - }, - { - "title": "can view country data", - "status": "passed" - }, - { - "title": "can view currency data", - "status": "passed" - }, - { - "title": "can view current currency", - "status": "passed" - } - ] - } - }, - { - "file": "hello\\/hello.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Test API connectivity": [ - { - "title": "can access a non-authenticated endpoint", - "status": "passed" - }, - { - "title": "can access an authenticated endpoint", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-complex.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API test": [ - { - "title": "can add complex order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/order-search.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Order Search API tests": [ - { - "title": "can search by orderId", - "status": "passed" - }, - { - "title": "can search by billing first name", - "status": "passed" - }, - { - "title": "can search by billing company name", - "status": "passed" - }, - { - "title": "can search by billing address 2", - "status": "passed" - }, - { - "title": "can search by billing city name", - "status": "passed" - }, - { - "title": "can search by billing post code", - "status": "passed" - }, - { - "title": "can search by billing phone", - "status": "passed" - }, - { - "title": "can search by billing state", - "status": "passed" - }, - { - "title": "can search by shipping first name", - "status": "passed" - }, - { - "title": "can search by shipping last name", - "status": "passed" - }, - { - "title": "can search by shipping address 2", - "status": "passed" - }, - { - "title": "can search by shipping city", - "status": "passed" - }, - { - "title": "can search by shipping post code", - "status": "passed" - }, - { - "title": "can search by shipping state", - "status": "passed" - }, - { - "title": "can return an empty result set when no matches were found", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests: CRUD": [], - "Orders API tests: CRUD > Create an order": [ - { - "title": "can create a pending order by default", - "status": "passed" - }, - { - "title": "can create an order with status pending", - "status": "passed" - }, - { - "title": "can create an order with status processing", - "status": "passed" - }, - { - "title": "can create an order with status on-hold", - "status": "passed" - }, - { - "title": "can create an order with status completed", - "status": "passed" - }, - { - "title": "can create an order with status cancelled", - "status": "passed" - }, - { - "title": "can create an order with status refunded", - "status": "passed" - }, - { - "title": "can create an order with status failed", - "status": "passed" - } - ], - "Orders API tests: CRUD > Create an order > Order Notes tests": [ - { - "title": "can create a order note", - "status": "passed" - }, - { - "title": "can retrieve an order note", - "status": "passed" - }, - { - "title": "can retrieve all order notes", - "status": "passed" - }, - { - "title": "cannot update an order note", - "status": "passed" - }, - { - "title": "can permanently delete an order note", - "status": "passed" - } - ], - "Orders API tests: CRUD > Retrieve an order": [ - { - "title": "can retrieve an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Update an order": [ - { - "title": "can update status of an order to pending", - "status": "passed" - }, - { - "title": "can update status of an order to processing", - "status": "passed" - }, - { - "title": "can update status of an order to on-hold", - "status": "passed" - }, - { - "title": "can update status of an order to completed", - "status": "passed" - }, - { - "title": "can update status of an order to cancelled", - "status": "passed" - }, - { - "title": "can update status of an order to refunded", - "status": "passed" - }, - { - "title": "can update status of an order to failed", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can add a product to an order", - "status": "passed" - }, - { - "title": "can pay for an order", - "status": "passed" - } - ], - "Orders API tests: CRUD > Delete an order": [ - { - "title": "can permanently delete an order", - "status": "passed" - } - ] - } - }, - { - "file": "orders\\/orders.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Orders API tests": [ - { - "title": "can create an order", - "status": "passed" - }, - { - "title": "can retrieve an order", - "status": "passed" - }, - { - "title": "can add shipping and billing contacts to an order", - "status": "passed" - }, - { - "title": "can permanently delete an order", - "status": "passed" - } - ], - "Orders API tests > List all orders": [ - { - "title": "pagination", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "customer", - "status": "passed" - }, - { - "title": "product", - "status": "passed" - }, - { - "title": "dp (precision)", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - } - ], - "Orders API tests > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - } - ] - } - }, - { - "file": "payment-gateways\\/payment-gateways-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Payment Gateways API tests": [ - { - "title": "can view all payment gateways", - "status": "passed" - }, - { - "title": "can view a payment gateway", - "status": "passed" - }, - { - "title": "can update a payment gateway", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/product-list.test.js", - "status": "passed", - "has_pending": true, - "tests": { - "Products API tests: List All Products": [], - "Products API tests: List All Products > List all products": [ - { - "title": "defaults", - "status": "passed" - }, - { - "title": "pagination", - "status": "passed" - }, - { - "title": "search", - "status": "passed" - }, - { - "title": "inclusion \\/ exclusion", - "status": "passed" - }, - { - "title": "slug", - "status": "passed" - }, - { - "title": "sku", - "status": "passed" - }, - { - "title": "type", - "status": "passed" - }, - { - "title": "featured", - "status": "passed" - }, - { - "title": "categories", - "status": "passed" - }, - { - "title": "on sale", - "status": "passed" - }, - { - "title": "price", - "status": "passed" - }, - { - "title": "before \\/ after", - "status": "passed" - }, - { - "title": "attributes", - "status": "passed" - }, - { - "title": "status", - "status": "passed" - }, - { - "title": "shipping class", - "status": "passed" - }, - { - "title": "tax class", - "status": "passed" - }, - { - "title": "stock status", - "status": "passed" - }, - { - "title": "tags", - "status": "passed" - }, - { - "title": "parent", - "status": "passed" - } - ], - "Products API tests: List All Products > List all products > orderby": [ - { - "title": "default", - "status": "passed" - }, - { - "title": "date", - "status": "passed" - }, - { - "title": "id", - "status": "passed" - }, - { - "title": "title", - "status": "passed" - }, - { - "title": "slug orderby", - "status": "passed" - }, - { - "title": "price orderby", - "status": "passed" - }, - { - "title": "include", - "status": "passed" - }, - { - "title": "rating (desc)", - "status": "passed" - }, - { - "title": "rating (asc)", - "status": "pending" - }, - { - "title": "popularity (asc)", - "status": "pending" - }, - { - "title": "popularity (desc)", - "status": "passed" - } - ] - } - }, - { - "file": "products\\/products-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Products API tests: CRUD": [ - { - "title": "can add a simple product", - "status": "passed" - }, - { - "title": "can add a virtual product", - "status": "passed" - }, - { - "title": "can view a single product", - "status": "passed" - }, - { - "title": "can update a single product", - "status": "passed" - }, - { - "title": "can delete a product", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD": [ - { - "title": "can add a product attribute", - "status": "passed" - }, - { - "title": "can retrieve a product attribute", - "status": "passed" - }, - { - "title": "can retrieve all product attribute", - "status": "passed" - }, - { - "title": "can update a product attribute", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute", - "status": "passed" - }, - { - "title": "can batch update product attributes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ - { - "title": "can add a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve a product attribute term", - "status": "passed" - }, - { - "title": "can retrieve all product attribute terms", - "status": "passed" - }, - { - "title": "can update a product attribute term", - "status": "passed" - }, - { - "title": "can permanently delete a product attribute term", - "status": "passed" - }, - { - "title": "can batch update product attribute terms", - "status": "passed" - } - ], - "Products API tests: CRUD > Product categories tests: CRUD": [ - { - "title": "can add a product category", - "status": "passed" - }, - { - "title": "can retrieve a product category", - "status": "passed" - }, - { - "title": "can retrieve all product categories", - "status": "passed" - }, - { - "title": "can update a product category", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product categories", - "status": "passed" - } - ], - "Products API tests: CRUD > Product review tests: CRUD": [ - { - "title": "can add a product review", - "status": "passed" - }, - { - "title": "cannot add a product review with invalid product_id", - "status": "passed" - }, - { - "title": "cannot add a duplicate product review", - "status": "passed" - }, - { - "title": "can retrieve a product review", - "status": "passed" - }, - { - "title": "can retrieve all product reviews", - "status": "passed" - }, - { - "title": "can update a product review", - "status": "passed" - }, - { - "title": "can permanently delete a product review", - "status": "passed" - }, - { - "title": "can batch update product reviews", - "status": "passed" - } - ], - "Products API tests: CRUD > Product shipping classes tests: CRUD": [ - { - "title": "can add a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve a product shipping class", - "status": "passed" - }, - { - "title": "can retrieve all product shipping classes", - "status": "passed" - }, - { - "title": "can update a product shipping class", - "status": "passed" - }, - { - "title": "can permanently delete a product shipping class", - "status": "passed" - }, - { - "title": "can batch update product shipping classes", - "status": "passed" - } - ], - "Products API tests: CRUD > Product tags tests: CRUD": [ - { - "title": "can add a product tag", - "status": "passed" - }, - { - "title": "can retrieve a product tag", - "status": "passed" - }, - { - "title": "can retrieve all product tags", - "status": "passed" - }, - { - "title": "can update a product tag", - "status": "passed" - }, - { - "title": "can permanently delete a product tag", - "status": "passed" - }, - { - "title": "can batch update product tags", - "status": "passed" - } - ], - "Products API tests: CRUD > Product variation tests: CRUD": [ - { - "title": "can add a variable product", - "status": "passed" - }, - { - "title": "can add a product variation", - "status": "passed" - }, - { - "title": "can retrieve a product variation", - "status": "passed" - }, - { - "title": "can retrieve all product variations", - "status": "passed" - }, - { - "title": "can update a product variation", - "status": "passed" - }, - { - "title": "can permanently delete a product variation", - "status": "passed" - }, - { - "title": "can batch update product variations", - "status": "passed" - } - ], - "Products API tests: CRUD > Batch update products": [ - { - "title": "can batch create products", - "status": "passed" - }, - { - "title": "can batch update products", - "status": "passed" - }, - { - "title": "can batch delete products", - "status": "passed" - } - ] - } - }, - { - "file": "refunds\\/refunds.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Refunds API tests": [ - { - "title": "can create a refund", - "status": "passed" - }, - { - "title": "can retrieve a refund", - "status": "passed" - }, - { - "title": "can list all refunds", - "status": "passed" - }, - { - "title": "can delete a refund", - "status": "passed" - } - ] - } - }, - { - "file": "reports\\/reports-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Reports API tests": [ - { - "title": "can view all reports", - "status": "passed" - }, - { - "title": "can view sales reports", - "status": "passed" - }, - { - "title": "can view top sellers reports", - "status": "passed" - }, - { - "title": "can view coupons totals", - "status": "passed" - }, - { - "title": "can view customers totals", - "status": "passed" - }, - { - "title": "can view orders totals", - "status": "passed" - }, - { - "title": "can view products totals", - "status": "passed" - }, - { - "title": "can view reviews totals", - "status": "passed" - } - ] - } - }, - { - "file": "settings\\/settings-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Settings API tests: CRUD": [], - "Settings API tests: CRUD > List all settings groups": [ - { - "title": "can retrieve all settings groups", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all settings options": [ - { - "title": "can retrieve all general settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > Retrieve a settings option": [ - { - "title": "can retrieve a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Update a settings option": [ - { - "title": "can update a settings option", - "status": "passed" - } - ], - "Settings API tests: CRUD > Batch Update a settings option": [ - { - "title": "can batch update settings options", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Products settings options": [ - { - "title": "can retrieve all products settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Tax settings options": [ - { - "title": "can retrieve all tax settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Shipping settings options": [ - { - "title": "can retrieve all shipping settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Checkout settings options": [ - { - "title": "can retrieve all checkout settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Account settings options": [ - { - "title": "can retrieve all account settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email settings options": [ - { - "title": "can retrieve all email settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Advanced settings options": [ - { - "title": "can retrieve all advanced settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email New Order settings": [ - { - "title": "can retrieve all email new order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Failed Order settings": [ - { - "title": "can retrieve all email failed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ - { - "title": "can retrieve all email customer on hold order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ - { - "title": "can retrieve all email customer processing order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ - { - "title": "can retrieve all email customer completed order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ - { - "title": "can retrieve all email customer refunded order settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Invoice settings": [ - { - "title": "can retrieve all email customer invoice settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Note settings": [ - { - "title": "can retrieve all email customer note settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ - { - "title": "can retrieve all email customer reset password settings", - "status": "passed" - } - ], - "Settings API tests: CRUD > List all Email Customer New Account settings": [ - { - "title": "can retrieve all email customer new account settings", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-method.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping methods API tests": [ - { - "title": "cannot create a shipping method", - "status": "passed" - }, - { - "title": "can retrieve all shipping methods", - "status": "passed" - }, - { - "title": "can retrieve a shipping method", - "status": "passed" - }, - { - "title": "cannot update a shipping method", - "status": "passed" - }, - { - "title": "cannot delete a shipping method", - "status": "passed" - }, - { - "title": "can add a Flat rate shipping method", - "status": "passed" - }, - { - "title": "can add a Free shipping shipping method", - "status": "passed" - }, - { - "title": "can add a Local pickup shipping method", - "status": "passed" - } - ] - } - }, - { - "file": "shipping\\/shipping-zones.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Shipping zones API tests": [ - { - "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", - "status": "passed" - }, - { - "title": "cannot update the default shipping zone", - "status": "passed" - }, - { - "title": "can create a shipping zone", - "status": "passed" - }, - { - "title": "can retrieve a shipping zone", - "status": "passed" - }, - { - "title": "can list all shipping zones", - "status": "passed" - }, - { - "title": "can update a shipping zone", - "status": "passed" - }, - { - "title": "can add a shipping region to a shipping zone", - "status": "passed" - }, - { - "title": "can update a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can clear\\/delete a shipping region on a shipping zone", - "status": "passed" - }, - { - "title": "can delete a shipping zone", - "status": "passed" - } - ] - } - }, - { - "file": "system-status\\/system-status-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "System Status API tests": [ - { - "title": "can view all system status tools", - "status": "passed" - }, - { - "title": "can retrieve a system status tool", - "status": "passed" - }, - { - "title": "can run a tool from system status", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-classes-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Classes API tests: CRUD": [], - "Tax Classes API tests: CRUD > Create a tax class": [ - { - "title": "can enable tax calculations", - "status": "passed" - }, - { - "title": "can create a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax class", - "status": "passed" - }, - { - "title": "can retrieve all tax classes", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Update a tax class": [ - { - "title": "cannot update a tax class", - "status": "passed" - } - ], - "Tax Classes API tests: CRUD > Delete a tax class": [ - { - "title": "can permanently delete a tax class", - "status": "passed" - } - ] - } - }, - { - "file": "taxes\\/tax-rates-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Tax Rates API tests: CRUD": [], - "Tax Rates API tests: CRUD > Create a tax rate": [ - { - "title": "can create a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Retrieve after create": [ - { - "title": "can retrieve a tax rate", - "status": "passed" - }, - { - "title": "can retrieve all tax rates", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Update a tax rate": [ - { - "title": "can update a tax rate", - "status": "passed" - }, - { - "title": "retrieve after update tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Delete a tax rate": [ - { - "title": "can permanently delete a tax rate", - "status": "passed" - } - ], - "Tax Rates API tests: CRUD > Batch tax rate operations": [ - { - "title": "can batch create tax rates", - "status": "passed" - }, - { - "title": "can batch update tax rates", - "status": "passed" - }, - { - "title": "can batch delete tax rates", - "status": "passed" - } - ] - } - }, - { - "file": "webhooks\\/webhooks-crud.test.js", - "status": "passed", - "has_pending": false, - "tests": { - "Webhooks API tests": [], - "Webhooks API tests > Create a webhook": [ - { - "title": "can create a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Retrieve after create": [ - { - "title": "can retrieve a webhook", - "status": "passed" - }, - { - "title": "can retrieve all webhooks", - "status": "passed" - } - ], - "Webhooks API tests > Update a webhook": [ - { - "title": "can update a web hook", - "status": "passed" - } - ], - "Webhooks API tests > Delete a webhook": [ - { - "title": "can permanently delete a webhook", - "status": "passed" - } - ], - "Webhooks API tests > Batch webhook operations": [ - { - "title": "can batch create webhooks", - "status": "passed" - }, - { - "title": "can batch update webhooks", - "status": "passed" - }, - { - "title": "can batch delete webhooks", - "status": "passed" - } - ] - } - } - ], - "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." + "numPassedTests": 0, + "numPendingTests": 0, + "numTotalTests": 0, + "testResults": [], + "summary": "Test failed before it was executed." } - }, - { - "debug_log": [ - { - "count": "550", - "message": "PHP Notice: New Product Editor is enabled as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 12" - } - ] } ] ]'; From e311b28c40fb11244ce3ec87c4de4b4e3c347b2d Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 3 Apr 2024 19:45:41 -0600 Subject: [PATCH 2/4] Update snapshots --- ...rc_ca644c3f45a3d92971d7c34b17b9bf40__1.php | 12 +- ...rc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php | 12 +- ...rc_346c5f1d46bbec1721f5bbf11816a5c0__1.php | 1356 +++++++++++++++- ...rc_2b7d6254596db2c73939e0d764cc4ba3__1.php | 1356 +++++++++++++++- ...rc_a6529ab79fa04ae8b847cfd8480802e9__1.php | 1360 ++++++++++++++++- ...rc_2d42a2bf6a893323495c02b92696088d__1.php | 1360 ++++++++++++++++- ...rc_21a3b603b13d883e8f40e55359c849d2__1.php | 1360 ++++++++++++++++- ...rc_c2dbc31700c141424142df97ef29db7c__1.php | 1360 ++++++++++++++++- 8 files changed, 8106 insertions(+), 70 deletions(-) diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php index e59c01ff..2bdc1c9d 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php74_wprc_ca644c3f45a3d92971d7c34b17b9bf40__1.php @@ -32,17 +32,25 @@ "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, "test_summary": "Delete_Products Normalized Summary", - "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": [] + }, + { + "debug_log": [ + { + "count": "0", + "message": "Debug log is ignored for woo-e2e\\/delete_products tests." + } + ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php index 31ee5b67..16115f14 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_delete_products_woorc_php82_wprc_8ddcb1dd26e5c14fcd0a28ef812daa5c__1.php @@ -32,17 +32,25 @@ "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, "test_summary": "Delete_Products Normalized Summary", - "debug_log": "", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": [] + }, + { + "debug_log": [ + { + "count": "0", + "message": "Debug log is ignored for woo-e2e\\/delete_products tests." + } + ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php index 4a8c7ce7..1c2fdc77 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php74_wprc_346c5f1d46bbec1721f5bbf11816a5c0__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "failed", + "status": "success", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,29 +31,1363 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test failed before it was executed.", - "debug_log": "", + "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 0, + "numPassedTestSuites": 20, "numPendingTestSuites": 0, - "numTotalTestSuites": 0, + "numTotalTestSuites": 20, "numFailedTests": 0, - "numPassedTests": 0, - "numPendingTests": 0, - "numTotalTests": 0, - "testResults": [], - "summary": "Test failed before it was executed." + "numPassedTests": 255, + "numPendingTests": 2, + "numTotalTests": 257, + "testResults": [ + { + "file": "coupons\\/coupons.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Coupons API tests": [ + { + "title": "can create a coupon", + "status": "passed" + }, + { + "title": "can retrieve a coupon", + "status": "passed" + }, + { + "title": "can update a coupon", + "status": "passed" + }, + { + "title": "can permanently delete a coupon", + "status": "passed" + } + ], + "Batch update coupons": [ + { + "title": "can batch create coupons", + "status": "passed" + }, + { + "title": "can batch update coupons", + "status": "passed" + }, + { + "title": "can batch delete coupons", + "status": "passed" + } + ], + "List coupons": [ + { + "title": "can list all coupons by default", + "status": "passed" + }, + { + "title": "can limit result set to matching code", + "status": "passed" + }, + { + "title": "can paginate results", + "status": "passed" + }, + { + "title": "can limit results to matching string", + "status": "passed" + } + ], + "Add coupon to order": [ + { + "title": "can add coupon to an order", + "status": "passed" + } + ] + } + }, + { + "file": "customers\\/customers-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Customers API tests: CRUD": [], + "Customers API tests: CRUD > Retrieve after env setup": [ + { + "title": "can retrieve admin user", + "status": "passed" + }, + { + "title": "can retrieve subscriber user", + "status": "passed" + }, + { + "title": "retrieve user with id 0 is invalid", + "status": "passed" + }, + { + "title": "can retrieve customers", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Create a customer": [ + { + "title": "can create a customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a customer", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Update a customer": [ + { + "title": "can update the admin user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update admin", + "status": "passed" + }, + { + "title": "can update the subscriber user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update subscriber", + "status": "passed" + }, + { + "title": "can update a customer", + "status": "passed" + }, + { + "title": "retrieve after update customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Delete a customer": [ + { + "title": "can permanently delete an customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Batch update customers": [ + { + "title": "can batch create customers", + "status": "passed" + }, + { + "title": "can batch update customers", + "status": "passed" + }, + { + "title": "can batch delete customers", + "status": "passed" + } + ] + } + }, + { + "file": "data\\/data-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Data API tests": [ + { + "title": "can list all data", + "status": "passed" + }, + { + "title": "can view country data", + "status": "passed" + }, + { + "title": "can view currency data", + "status": "passed" + }, + { + "title": "can view current currency", + "status": "passed" + } + ] + } + }, + { + "file": "hello\\/hello.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Test API connectivity": [ + { + "title": "can access a non-authenticated endpoint", + "status": "passed" + }, + { + "title": "can access an authenticated endpoint", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-complex.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API test": [ + { + "title": "can add complex order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-search.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Order Search API tests": [ + { + "title": "can search by orderId", + "status": "passed" + }, + { + "title": "can search by billing first name", + "status": "passed" + }, + { + "title": "can search by billing company name", + "status": "passed" + }, + { + "title": "can search by billing address 2", + "status": "passed" + }, + { + "title": "can search by billing city name", + "status": "passed" + }, + { + "title": "can search by billing post code", + "status": "passed" + }, + { + "title": "can search by billing phone", + "status": "passed" + }, + { + "title": "can search by billing state", + "status": "passed" + }, + { + "title": "can search by shipping first name", + "status": "passed" + }, + { + "title": "can search by shipping last name", + "status": "passed" + }, + { + "title": "can search by shipping address 2", + "status": "passed" + }, + { + "title": "can search by shipping city", + "status": "passed" + }, + { + "title": "can search by shipping post code", + "status": "passed" + }, + { + "title": "can search by shipping state", + "status": "passed" + }, + { + "title": "can return an empty result set when no matches were found", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests: CRUD": [], + "Orders API tests: CRUD > Create an order": [ + { + "title": "can create a pending order by default", + "status": "passed" + }, + { + "title": "can create an order with status pending", + "status": "passed" + }, + { + "title": "can create an order with status processing", + "status": "passed" + }, + { + "title": "can create an order with status on-hold", + "status": "passed" + }, + { + "title": "can create an order with status completed", + "status": "passed" + }, + { + "title": "can create an order with status cancelled", + "status": "passed" + }, + { + "title": "can create an order with status refunded", + "status": "passed" + }, + { + "title": "can create an order with status failed", + "status": "passed" + } + ], + "Orders API tests: CRUD > Create an order > Order Notes tests": [ + { + "title": "can create a order note", + "status": "passed" + }, + { + "title": "can retrieve an order note", + "status": "passed" + }, + { + "title": "can retrieve all order notes", + "status": "passed" + }, + { + "title": "cannot update an order note", + "status": "passed" + }, + { + "title": "can permanently delete an order note", + "status": "passed" + } + ], + "Orders API tests: CRUD > Retrieve an order": [ + { + "title": "can retrieve an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Update an order": [ + { + "title": "can update status of an order to pending", + "status": "passed" + }, + { + "title": "can update status of an order to processing", + "status": "passed" + }, + { + "title": "can update status of an order to on-hold", + "status": "passed" + }, + { + "title": "can update status of an order to completed", + "status": "passed" + }, + { + "title": "can update status of an order to cancelled", + "status": "passed" + }, + { + "title": "can update status of an order to refunded", + "status": "passed" + }, + { + "title": "can update status of an order to failed", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can add a product to an order", + "status": "passed" + }, + { + "title": "can pay for an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Delete an order": [ + { + "title": "can permanently delete an order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests": [ + { + "title": "can create an order", + "status": "passed" + }, + { + "title": "can retrieve an order", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can permanently delete an order", + "status": "passed" + } + ], + "Orders API tests > List all orders": [ + { + "title": "pagination", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "customer", + "status": "passed" + }, + { + "title": "product", + "status": "passed" + }, + { + "title": "dp (precision)", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + } + ], + "Orders API tests > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + } + ] + } + }, + { + "file": "payment-gateways\\/payment-gateways-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Payment Gateways API tests": [ + { + "title": "can view all payment gateways", + "status": "passed" + }, + { + "title": "can view a payment gateway", + "status": "passed" + }, + { + "title": "can update a payment gateway", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/product-list.test.js", + "status": "passed", + "has_pending": true, + "tests": { + "Products API tests: List All Products": [], + "Products API tests: List All Products > List all products": [ + { + "title": "defaults", + "status": "passed" + }, + { + "title": "pagination", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "slug", + "status": "passed" + }, + { + "title": "sku", + "status": "passed" + }, + { + "title": "type", + "status": "passed" + }, + { + "title": "featured", + "status": "passed" + }, + { + "title": "categories", + "status": "passed" + }, + { + "title": "on sale", + "status": "passed" + }, + { + "title": "price", + "status": "passed" + }, + { + "title": "before \\/ after", + "status": "passed" + }, + { + "title": "attributes", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "shipping class", + "status": "passed" + }, + { + "title": "tax class", + "status": "passed" + }, + { + "title": "stock status", + "status": "passed" + }, + { + "title": "tags", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + } + ], + "Products API tests: List All Products > List all products > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "title", + "status": "passed" + }, + { + "title": "slug orderby", + "status": "passed" + }, + { + "title": "price orderby", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + }, + { + "title": "rating (desc)", + "status": "passed" + }, + { + "title": "rating (asc)", + "status": "pending" + }, + { + "title": "popularity (asc)", + "status": "pending" + }, + { + "title": "popularity (desc)", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/products-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Products API tests: CRUD": [ + { + "title": "can add a simple product", + "status": "passed" + }, + { + "title": "can add a virtual product", + "status": "passed" + }, + { + "title": "can view a single product", + "status": "passed" + }, + { + "title": "can update a single product", + "status": "passed" + }, + { + "title": "can delete a product", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD": [ + { + "title": "can add a product attribute", + "status": "passed" + }, + { + "title": "can retrieve a product attribute", + "status": "passed" + }, + { + "title": "can retrieve all product attribute", + "status": "passed" + }, + { + "title": "can update a product attribute", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute", + "status": "passed" + }, + { + "title": "can batch update product attributes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ + { + "title": "can add a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve all product attribute terms", + "status": "passed" + }, + { + "title": "can update a product attribute term", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute term", + "status": "passed" + }, + { + "title": "can batch update product attribute terms", + "status": "passed" + } + ], + "Products API tests: CRUD > Product categories tests: CRUD": [ + { + "title": "can add a product category", + "status": "passed" + }, + { + "title": "can retrieve a product category", + "status": "passed" + }, + { + "title": "can retrieve all product categories", + "status": "passed" + }, + { + "title": "can update a product category", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product categories", + "status": "passed" + } + ], + "Products API tests: CRUD > Product review tests: CRUD": [ + { + "title": "can add a product review", + "status": "passed" + }, + { + "title": "cannot add a product review with invalid product_id", + "status": "passed" + }, + { + "title": "cannot add a duplicate product review", + "status": "passed" + }, + { + "title": "can retrieve a product review", + "status": "passed" + }, + { + "title": "can retrieve all product reviews", + "status": "passed" + }, + { + "title": "can update a product review", + "status": "passed" + }, + { + "title": "can permanently delete a product review", + "status": "passed" + }, + { + "title": "can batch update product reviews", + "status": "passed" + } + ], + "Products API tests: CRUD > Product shipping classes tests: CRUD": [ + { + "title": "can add a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve all product shipping classes", + "status": "passed" + }, + { + "title": "can update a product shipping class", + "status": "passed" + }, + { + "title": "can permanently delete a product shipping class", + "status": "passed" + }, + { + "title": "can batch update product shipping classes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product tags tests: CRUD": [ + { + "title": "can add a product tag", + "status": "passed" + }, + { + "title": "can retrieve a product tag", + "status": "passed" + }, + { + "title": "can retrieve all product tags", + "status": "passed" + }, + { + "title": "can update a product tag", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product tags", + "status": "passed" + } + ], + "Products API tests: CRUD > Product variation tests: CRUD": [ + { + "title": "can add a variable product", + "status": "passed" + }, + { + "title": "can add a product variation", + "status": "passed" + }, + { + "title": "can retrieve a product variation", + "status": "passed" + }, + { + "title": "can retrieve all product variations", + "status": "passed" + }, + { + "title": "can update a product variation", + "status": "passed" + }, + { + "title": "can permanently delete a product variation", + "status": "passed" + }, + { + "title": "can batch update product variations", + "status": "passed" + } + ], + "Products API tests: CRUD > Batch update products": [ + { + "title": "can batch create products", + "status": "passed" + }, + { + "title": "can batch update products", + "status": "passed" + }, + { + "title": "can batch delete products", + "status": "passed" + } + ] + } + }, + { + "file": "refunds\\/refunds.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Refunds API tests": [ + { + "title": "can create a refund", + "status": "passed" + }, + { + "title": "can retrieve a refund", + "status": "passed" + }, + { + "title": "can list all refunds", + "status": "passed" + }, + { + "title": "can delete a refund", + "status": "passed" + } + ] + } + }, + { + "file": "reports\\/reports-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Reports API tests": [ + { + "title": "can view all reports", + "status": "passed" + }, + { + "title": "can view sales reports", + "status": "passed" + }, + { + "title": "can view top sellers reports", + "status": "passed" + }, + { + "title": "can view coupons totals", + "status": "passed" + }, + { + "title": "can view customers totals", + "status": "passed" + }, + { + "title": "can view orders totals", + "status": "passed" + }, + { + "title": "can view products totals", + "status": "passed" + }, + { + "title": "can view reviews totals", + "status": "passed" + } + ] + } + }, + { + "file": "settings\\/settings-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Settings API tests: CRUD": [], + "Settings API tests: CRUD > List all settings groups": [ + { + "title": "can retrieve all settings groups", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all settings options": [ + { + "title": "can retrieve all general settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > Retrieve a settings option": [ + { + "title": "can retrieve a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Update a settings option": [ + { + "title": "can update a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Batch Update a settings option": [ + { + "title": "can batch update settings options", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Products settings options": [ + { + "title": "can retrieve all products settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Tax settings options": [ + { + "title": "can retrieve all tax settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Shipping settings options": [ + { + "title": "can retrieve all shipping settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Checkout settings options": [ + { + "title": "can retrieve all checkout settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Account settings options": [ + { + "title": "can retrieve all account settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email settings options": [ + { + "title": "can retrieve all email settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Advanced settings options": [ + { + "title": "can retrieve all advanced settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email New Order settings": [ + { + "title": "can retrieve all email new order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Failed Order settings": [ + { + "title": "can retrieve all email failed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ + { + "title": "can retrieve all email customer on hold order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ + { + "title": "can retrieve all email customer processing order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ + { + "title": "can retrieve all email customer completed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ + { + "title": "can retrieve all email customer refunded order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Invoice settings": [ + { + "title": "can retrieve all email customer invoice settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Note settings": [ + { + "title": "can retrieve all email customer note settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ + { + "title": "can retrieve all email customer reset password settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer New Account settings": [ + { + "title": "can retrieve all email customer new account settings", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-method.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping methods API tests": [ + { + "title": "cannot create a shipping method", + "status": "passed" + }, + { + "title": "can retrieve all shipping methods", + "status": "passed" + }, + { + "title": "can retrieve a shipping method", + "status": "passed" + }, + { + "title": "cannot update a shipping method", + "status": "passed" + }, + { + "title": "cannot delete a shipping method", + "status": "passed" + }, + { + "title": "can add a Flat rate shipping method", + "status": "passed" + }, + { + "title": "can add a Free shipping shipping method", + "status": "passed" + }, + { + "title": "can add a Local pickup shipping method", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-zones.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping zones API tests": [ + { + "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", + "status": "passed" + }, + { + "title": "cannot update the default shipping zone", + "status": "passed" + }, + { + "title": "can create a shipping zone", + "status": "passed" + }, + { + "title": "can retrieve a shipping zone", + "status": "passed" + }, + { + "title": "can list all shipping zones", + "status": "passed" + }, + { + "title": "can update a shipping zone", + "status": "passed" + }, + { + "title": "can add a shipping region to a shipping zone", + "status": "passed" + }, + { + "title": "can update a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can clear\\/delete a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can delete a shipping zone", + "status": "passed" + } + ] + } + }, + { + "file": "system-status\\/system-status-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "System Status API tests": [ + { + "title": "can view all system status tools", + "status": "passed" + }, + { + "title": "can retrieve a system status tool", + "status": "passed" + }, + { + "title": "can run a tool from system status", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-classes-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Classes API tests: CRUD": [], + "Tax Classes API tests: CRUD > Create a tax class": [ + { + "title": "can enable tax calculations", + "status": "passed" + }, + { + "title": "can create a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax class", + "status": "passed" + }, + { + "title": "can retrieve all tax classes", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Update a tax class": [ + { + "title": "cannot update a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Delete a tax class": [ + { + "title": "can permanently delete a tax class", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-rates-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Rates API tests: CRUD": [], + "Tax Rates API tests: CRUD > Create a tax rate": [ + { + "title": "can create a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax rate", + "status": "passed" + }, + { + "title": "can retrieve all tax rates", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Update a tax rate": [ + { + "title": "can update a tax rate", + "status": "passed" + }, + { + "title": "retrieve after update tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Delete a tax rate": [ + { + "title": "can permanently delete a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Batch tax rate operations": [ + { + "title": "can batch create tax rates", + "status": "passed" + }, + { + "title": "can batch update tax rates", + "status": "passed" + }, + { + "title": "can batch delete tax rates", + "status": "passed" + } + ] + } + }, + { + "file": "webhooks\\/webhooks-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Webhooks API tests": [], + "Webhooks API tests > Create a webhook": [ + { + "title": "can create a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Retrieve after create": [ + { + "title": "can retrieve a webhook", + "status": "passed" + }, + { + "title": "can retrieve all webhooks", + "status": "passed" + } + ], + "Webhooks API tests > Update a webhook": [ + { + "title": "can update a web hook", + "status": "passed" + } + ], + "Webhooks API tests > Delete a webhook": [ + { + "title": "can permanently delete a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Batch webhook operations": [ + { + "title": "can batch create webhooks", + "status": "passed" + }, + { + "title": "can batch update webhooks", + "status": "passed" + }, + { + "title": "can batch delete webhooks", + "status": "passed" + } + ] + } + } + ], + "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." } + }, + { + "debug_log": [ + { + "count": "650", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." + } + ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php index 34fb4a20..c5cf2a5d 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_no_op_woorc_php82_wprc_2b7d6254596db2c73939e0d764cc4ba3__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "failed", + "status": "success", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,29 +31,1363 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test failed before it was executed.", - "debug_log": "", + "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 0, + "numPassedTestSuites": 20, "numPendingTestSuites": 0, - "numTotalTestSuites": 0, + "numTotalTestSuites": 20, "numFailedTests": 0, - "numPassedTests": 0, - "numPendingTests": 0, - "numTotalTests": 0, - "testResults": [], - "summary": "Test failed before it was executed." + "numPassedTests": 255, + "numPendingTests": 2, + "numTotalTests": 257, + "testResults": [ + { + "file": "coupons\\/coupons.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Coupons API tests": [ + { + "title": "can create a coupon", + "status": "passed" + }, + { + "title": "can retrieve a coupon", + "status": "passed" + }, + { + "title": "can update a coupon", + "status": "passed" + }, + { + "title": "can permanently delete a coupon", + "status": "passed" + } + ], + "Batch update coupons": [ + { + "title": "can batch create coupons", + "status": "passed" + }, + { + "title": "can batch update coupons", + "status": "passed" + }, + { + "title": "can batch delete coupons", + "status": "passed" + } + ], + "List coupons": [ + { + "title": "can list all coupons by default", + "status": "passed" + }, + { + "title": "can limit result set to matching code", + "status": "passed" + }, + { + "title": "can paginate results", + "status": "passed" + }, + { + "title": "can limit results to matching string", + "status": "passed" + } + ], + "Add coupon to order": [ + { + "title": "can add coupon to an order", + "status": "passed" + } + ] + } + }, + { + "file": "customers\\/customers-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Customers API tests: CRUD": [], + "Customers API tests: CRUD > Retrieve after env setup": [ + { + "title": "can retrieve admin user", + "status": "passed" + }, + { + "title": "can retrieve subscriber user", + "status": "passed" + }, + { + "title": "retrieve user with id 0 is invalid", + "status": "passed" + }, + { + "title": "can retrieve customers", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Create a customer": [ + { + "title": "can create a customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a customer", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Update a customer": [ + { + "title": "can update the admin user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update admin", + "status": "passed" + }, + { + "title": "can update the subscriber user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update subscriber", + "status": "passed" + }, + { + "title": "can update a customer", + "status": "passed" + }, + { + "title": "retrieve after update customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Delete a customer": [ + { + "title": "can permanently delete an customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Batch update customers": [ + { + "title": "can batch create customers", + "status": "passed" + }, + { + "title": "can batch update customers", + "status": "passed" + }, + { + "title": "can batch delete customers", + "status": "passed" + } + ] + } + }, + { + "file": "data\\/data-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Data API tests": [ + { + "title": "can list all data", + "status": "passed" + }, + { + "title": "can view country data", + "status": "passed" + }, + { + "title": "can view currency data", + "status": "passed" + }, + { + "title": "can view current currency", + "status": "passed" + } + ] + } + }, + { + "file": "hello\\/hello.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Test API connectivity": [ + { + "title": "can access a non-authenticated endpoint", + "status": "passed" + }, + { + "title": "can access an authenticated endpoint", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-complex.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API test": [ + { + "title": "can add complex order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-search.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Order Search API tests": [ + { + "title": "can search by orderId", + "status": "passed" + }, + { + "title": "can search by billing first name", + "status": "passed" + }, + { + "title": "can search by billing company name", + "status": "passed" + }, + { + "title": "can search by billing address 2", + "status": "passed" + }, + { + "title": "can search by billing city name", + "status": "passed" + }, + { + "title": "can search by billing post code", + "status": "passed" + }, + { + "title": "can search by billing phone", + "status": "passed" + }, + { + "title": "can search by billing state", + "status": "passed" + }, + { + "title": "can search by shipping first name", + "status": "passed" + }, + { + "title": "can search by shipping last name", + "status": "passed" + }, + { + "title": "can search by shipping address 2", + "status": "passed" + }, + { + "title": "can search by shipping city", + "status": "passed" + }, + { + "title": "can search by shipping post code", + "status": "passed" + }, + { + "title": "can search by shipping state", + "status": "passed" + }, + { + "title": "can return an empty result set when no matches were found", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests: CRUD": [], + "Orders API tests: CRUD > Create an order": [ + { + "title": "can create a pending order by default", + "status": "passed" + }, + { + "title": "can create an order with status pending", + "status": "passed" + }, + { + "title": "can create an order with status processing", + "status": "passed" + }, + { + "title": "can create an order with status on-hold", + "status": "passed" + }, + { + "title": "can create an order with status completed", + "status": "passed" + }, + { + "title": "can create an order with status cancelled", + "status": "passed" + }, + { + "title": "can create an order with status refunded", + "status": "passed" + }, + { + "title": "can create an order with status failed", + "status": "passed" + } + ], + "Orders API tests: CRUD > Create an order > Order Notes tests": [ + { + "title": "can create a order note", + "status": "passed" + }, + { + "title": "can retrieve an order note", + "status": "passed" + }, + { + "title": "can retrieve all order notes", + "status": "passed" + }, + { + "title": "cannot update an order note", + "status": "passed" + }, + { + "title": "can permanently delete an order note", + "status": "passed" + } + ], + "Orders API tests: CRUD > Retrieve an order": [ + { + "title": "can retrieve an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Update an order": [ + { + "title": "can update status of an order to pending", + "status": "passed" + }, + { + "title": "can update status of an order to processing", + "status": "passed" + }, + { + "title": "can update status of an order to on-hold", + "status": "passed" + }, + { + "title": "can update status of an order to completed", + "status": "passed" + }, + { + "title": "can update status of an order to cancelled", + "status": "passed" + }, + { + "title": "can update status of an order to refunded", + "status": "passed" + }, + { + "title": "can update status of an order to failed", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can add a product to an order", + "status": "passed" + }, + { + "title": "can pay for an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Delete an order": [ + { + "title": "can permanently delete an order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests": [ + { + "title": "can create an order", + "status": "passed" + }, + { + "title": "can retrieve an order", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can permanently delete an order", + "status": "passed" + } + ], + "Orders API tests > List all orders": [ + { + "title": "pagination", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "customer", + "status": "passed" + }, + { + "title": "product", + "status": "passed" + }, + { + "title": "dp (precision)", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + } + ], + "Orders API tests > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + } + ] + } + }, + { + "file": "payment-gateways\\/payment-gateways-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Payment Gateways API tests": [ + { + "title": "can view all payment gateways", + "status": "passed" + }, + { + "title": "can view a payment gateway", + "status": "passed" + }, + { + "title": "can update a payment gateway", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/product-list.test.js", + "status": "passed", + "has_pending": true, + "tests": { + "Products API tests: List All Products": [], + "Products API tests: List All Products > List all products": [ + { + "title": "defaults", + "status": "passed" + }, + { + "title": "pagination", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "slug", + "status": "passed" + }, + { + "title": "sku", + "status": "passed" + }, + { + "title": "type", + "status": "passed" + }, + { + "title": "featured", + "status": "passed" + }, + { + "title": "categories", + "status": "passed" + }, + { + "title": "on sale", + "status": "passed" + }, + { + "title": "price", + "status": "passed" + }, + { + "title": "before \\/ after", + "status": "passed" + }, + { + "title": "attributes", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "shipping class", + "status": "passed" + }, + { + "title": "tax class", + "status": "passed" + }, + { + "title": "stock status", + "status": "passed" + }, + { + "title": "tags", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + } + ], + "Products API tests: List All Products > List all products > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "title", + "status": "passed" + }, + { + "title": "slug orderby", + "status": "passed" + }, + { + "title": "price orderby", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + }, + { + "title": "rating (desc)", + "status": "passed" + }, + { + "title": "rating (asc)", + "status": "pending" + }, + { + "title": "popularity (asc)", + "status": "pending" + }, + { + "title": "popularity (desc)", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/products-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Products API tests: CRUD": [ + { + "title": "can add a simple product", + "status": "passed" + }, + { + "title": "can add a virtual product", + "status": "passed" + }, + { + "title": "can view a single product", + "status": "passed" + }, + { + "title": "can update a single product", + "status": "passed" + }, + { + "title": "can delete a product", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD": [ + { + "title": "can add a product attribute", + "status": "passed" + }, + { + "title": "can retrieve a product attribute", + "status": "passed" + }, + { + "title": "can retrieve all product attribute", + "status": "passed" + }, + { + "title": "can update a product attribute", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute", + "status": "passed" + }, + { + "title": "can batch update product attributes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ + { + "title": "can add a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve all product attribute terms", + "status": "passed" + }, + { + "title": "can update a product attribute term", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute term", + "status": "passed" + }, + { + "title": "can batch update product attribute terms", + "status": "passed" + } + ], + "Products API tests: CRUD > Product categories tests: CRUD": [ + { + "title": "can add a product category", + "status": "passed" + }, + { + "title": "can retrieve a product category", + "status": "passed" + }, + { + "title": "can retrieve all product categories", + "status": "passed" + }, + { + "title": "can update a product category", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product categories", + "status": "passed" + } + ], + "Products API tests: CRUD > Product review tests: CRUD": [ + { + "title": "can add a product review", + "status": "passed" + }, + { + "title": "cannot add a product review with invalid product_id", + "status": "passed" + }, + { + "title": "cannot add a duplicate product review", + "status": "passed" + }, + { + "title": "can retrieve a product review", + "status": "passed" + }, + { + "title": "can retrieve all product reviews", + "status": "passed" + }, + { + "title": "can update a product review", + "status": "passed" + }, + { + "title": "can permanently delete a product review", + "status": "passed" + }, + { + "title": "can batch update product reviews", + "status": "passed" + } + ], + "Products API tests: CRUD > Product shipping classes tests: CRUD": [ + { + "title": "can add a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve all product shipping classes", + "status": "passed" + }, + { + "title": "can update a product shipping class", + "status": "passed" + }, + { + "title": "can permanently delete a product shipping class", + "status": "passed" + }, + { + "title": "can batch update product shipping classes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product tags tests: CRUD": [ + { + "title": "can add a product tag", + "status": "passed" + }, + { + "title": "can retrieve a product tag", + "status": "passed" + }, + { + "title": "can retrieve all product tags", + "status": "passed" + }, + { + "title": "can update a product tag", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product tags", + "status": "passed" + } + ], + "Products API tests: CRUD > Product variation tests: CRUD": [ + { + "title": "can add a variable product", + "status": "passed" + }, + { + "title": "can add a product variation", + "status": "passed" + }, + { + "title": "can retrieve a product variation", + "status": "passed" + }, + { + "title": "can retrieve all product variations", + "status": "passed" + }, + { + "title": "can update a product variation", + "status": "passed" + }, + { + "title": "can permanently delete a product variation", + "status": "passed" + }, + { + "title": "can batch update product variations", + "status": "passed" + } + ], + "Products API tests: CRUD > Batch update products": [ + { + "title": "can batch create products", + "status": "passed" + }, + { + "title": "can batch update products", + "status": "passed" + }, + { + "title": "can batch delete products", + "status": "passed" + } + ] + } + }, + { + "file": "refunds\\/refunds.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Refunds API tests": [ + { + "title": "can create a refund", + "status": "passed" + }, + { + "title": "can retrieve a refund", + "status": "passed" + }, + { + "title": "can list all refunds", + "status": "passed" + }, + { + "title": "can delete a refund", + "status": "passed" + } + ] + } + }, + { + "file": "reports\\/reports-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Reports API tests": [ + { + "title": "can view all reports", + "status": "passed" + }, + { + "title": "can view sales reports", + "status": "passed" + }, + { + "title": "can view top sellers reports", + "status": "passed" + }, + { + "title": "can view coupons totals", + "status": "passed" + }, + { + "title": "can view customers totals", + "status": "passed" + }, + { + "title": "can view orders totals", + "status": "passed" + }, + { + "title": "can view products totals", + "status": "passed" + }, + { + "title": "can view reviews totals", + "status": "passed" + } + ] + } + }, + { + "file": "settings\\/settings-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Settings API tests: CRUD": [], + "Settings API tests: CRUD > List all settings groups": [ + { + "title": "can retrieve all settings groups", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all settings options": [ + { + "title": "can retrieve all general settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > Retrieve a settings option": [ + { + "title": "can retrieve a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Update a settings option": [ + { + "title": "can update a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Batch Update a settings option": [ + { + "title": "can batch update settings options", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Products settings options": [ + { + "title": "can retrieve all products settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Tax settings options": [ + { + "title": "can retrieve all tax settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Shipping settings options": [ + { + "title": "can retrieve all shipping settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Checkout settings options": [ + { + "title": "can retrieve all checkout settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Account settings options": [ + { + "title": "can retrieve all account settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email settings options": [ + { + "title": "can retrieve all email settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Advanced settings options": [ + { + "title": "can retrieve all advanced settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email New Order settings": [ + { + "title": "can retrieve all email new order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Failed Order settings": [ + { + "title": "can retrieve all email failed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ + { + "title": "can retrieve all email customer on hold order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ + { + "title": "can retrieve all email customer processing order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ + { + "title": "can retrieve all email customer completed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ + { + "title": "can retrieve all email customer refunded order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Invoice settings": [ + { + "title": "can retrieve all email customer invoice settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Note settings": [ + { + "title": "can retrieve all email customer note settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ + { + "title": "can retrieve all email customer reset password settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer New Account settings": [ + { + "title": "can retrieve all email customer new account settings", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-method.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping methods API tests": [ + { + "title": "cannot create a shipping method", + "status": "passed" + }, + { + "title": "can retrieve all shipping methods", + "status": "passed" + }, + { + "title": "can retrieve a shipping method", + "status": "passed" + }, + { + "title": "cannot update a shipping method", + "status": "passed" + }, + { + "title": "cannot delete a shipping method", + "status": "passed" + }, + { + "title": "can add a Flat rate shipping method", + "status": "passed" + }, + { + "title": "can add a Free shipping shipping method", + "status": "passed" + }, + { + "title": "can add a Local pickup shipping method", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-zones.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping zones API tests": [ + { + "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", + "status": "passed" + }, + { + "title": "cannot update the default shipping zone", + "status": "passed" + }, + { + "title": "can create a shipping zone", + "status": "passed" + }, + { + "title": "can retrieve a shipping zone", + "status": "passed" + }, + { + "title": "can list all shipping zones", + "status": "passed" + }, + { + "title": "can update a shipping zone", + "status": "passed" + }, + { + "title": "can add a shipping region to a shipping zone", + "status": "passed" + }, + { + "title": "can update a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can clear\\/delete a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can delete a shipping zone", + "status": "passed" + } + ] + } + }, + { + "file": "system-status\\/system-status-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "System Status API tests": [ + { + "title": "can view all system status tools", + "status": "passed" + }, + { + "title": "can retrieve a system status tool", + "status": "passed" + }, + { + "title": "can run a tool from system status", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-classes-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Classes API tests: CRUD": [], + "Tax Classes API tests: CRUD > Create a tax class": [ + { + "title": "can enable tax calculations", + "status": "passed" + }, + { + "title": "can create a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax class", + "status": "passed" + }, + { + "title": "can retrieve all tax classes", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Update a tax class": [ + { + "title": "cannot update a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Delete a tax class": [ + { + "title": "can permanently delete a tax class", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-rates-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Rates API tests: CRUD": [], + "Tax Rates API tests: CRUD > Create a tax rate": [ + { + "title": "can create a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax rate", + "status": "passed" + }, + { + "title": "can retrieve all tax rates", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Update a tax rate": [ + { + "title": "can update a tax rate", + "status": "passed" + }, + { + "title": "retrieve after update tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Delete a tax rate": [ + { + "title": "can permanently delete a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Batch tax rate operations": [ + { + "title": "can batch create tax rates", + "status": "passed" + }, + { + "title": "can batch update tax rates", + "status": "passed" + }, + { + "title": "can batch delete tax rates", + "status": "passed" + } + ] + } + }, + { + "file": "webhooks\\/webhooks-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Webhooks API tests": [], + "Webhooks API tests > Create a webhook": [ + { + "title": "can create a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Retrieve after create": [ + { + "title": "can retrieve a webhook", + "status": "passed" + }, + { + "title": "can retrieve all webhooks", + "status": "passed" + } + ], + "Webhooks API tests > Update a webhook": [ + { + "title": "can update a web hook", + "status": "passed" + } + ], + "Webhooks API tests > Delete a webhook": [ + { + "title": "can permanently delete a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Batch webhook operations": [ + { + "title": "can batch create webhooks", + "status": "passed" + }, + { + "title": "can batch update webhooks", + "status": "passed" + }, + { + "title": "can batch delete webhooks", + "status": "passed" + } + ] + } + } + ], + "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." } + }, + { + "debug_log": [ + { + "count": "650", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." + } + ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php index c0114cf8..72c64b8d 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php74_wprc_a6529ab79fa04ae8b847cfd8480802e9__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "failed", + "status": "success", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,29 +31,1367 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test failed before it was executed.", - "debug_log": "", + "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 0, + "numPassedTestSuites": 20, "numPendingTestSuites": 0, - "numTotalTestSuites": 0, + "numTotalTestSuites": 20, "numFailedTests": 0, - "numPassedTests": 0, - "numPendingTests": 0, - "numTotalTests": 0, - "testResults": [], - "summary": "Test failed before it was executed." + "numPassedTests": 255, + "numPendingTests": 2, + "numTotalTests": 257, + "testResults": [ + { + "file": "coupons\\/coupons.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Coupons API tests": [ + { + "title": "can create a coupon", + "status": "passed" + }, + { + "title": "can retrieve a coupon", + "status": "passed" + }, + { + "title": "can update a coupon", + "status": "passed" + }, + { + "title": "can permanently delete a coupon", + "status": "passed" + } + ], + "Batch update coupons": [ + { + "title": "can batch create coupons", + "status": "passed" + }, + { + "title": "can batch update coupons", + "status": "passed" + }, + { + "title": "can batch delete coupons", + "status": "passed" + } + ], + "List coupons": [ + { + "title": "can list all coupons by default", + "status": "passed" + }, + { + "title": "can limit result set to matching code", + "status": "passed" + }, + { + "title": "can paginate results", + "status": "passed" + }, + { + "title": "can limit results to matching string", + "status": "passed" + } + ], + "Add coupon to order": [ + { + "title": "can add coupon to an order", + "status": "passed" + } + ] + } + }, + { + "file": "customers\\/customers-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Customers API tests: CRUD": [], + "Customers API tests: CRUD > Retrieve after env setup": [ + { + "title": "can retrieve admin user", + "status": "passed" + }, + { + "title": "can retrieve subscriber user", + "status": "passed" + }, + { + "title": "retrieve user with id 0 is invalid", + "status": "passed" + }, + { + "title": "can retrieve customers", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Create a customer": [ + { + "title": "can create a customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a customer", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Update a customer": [ + { + "title": "can update the admin user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update admin", + "status": "passed" + }, + { + "title": "can update the subscriber user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update subscriber", + "status": "passed" + }, + { + "title": "can update a customer", + "status": "passed" + }, + { + "title": "retrieve after update customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Delete a customer": [ + { + "title": "can permanently delete an customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Batch update customers": [ + { + "title": "can batch create customers", + "status": "passed" + }, + { + "title": "can batch update customers", + "status": "passed" + }, + { + "title": "can batch delete customers", + "status": "passed" + } + ] + } + }, + { + "file": "data\\/data-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Data API tests": [ + { + "title": "can list all data", + "status": "passed" + }, + { + "title": "can view country data", + "status": "passed" + }, + { + "title": "can view currency data", + "status": "passed" + }, + { + "title": "can view current currency", + "status": "passed" + } + ] + } + }, + { + "file": "hello\\/hello.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Test API connectivity": [ + { + "title": "can access a non-authenticated endpoint", + "status": "passed" + }, + { + "title": "can access an authenticated endpoint", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-complex.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API test": [ + { + "title": "can add complex order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-search.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Order Search API tests": [ + { + "title": "can search by orderId", + "status": "passed" + }, + { + "title": "can search by billing first name", + "status": "passed" + }, + { + "title": "can search by billing company name", + "status": "passed" + }, + { + "title": "can search by billing address 2", + "status": "passed" + }, + { + "title": "can search by billing city name", + "status": "passed" + }, + { + "title": "can search by billing post code", + "status": "passed" + }, + { + "title": "can search by billing phone", + "status": "passed" + }, + { + "title": "can search by billing state", + "status": "passed" + }, + { + "title": "can search by shipping first name", + "status": "passed" + }, + { + "title": "can search by shipping last name", + "status": "passed" + }, + { + "title": "can search by shipping address 2", + "status": "passed" + }, + { + "title": "can search by shipping city", + "status": "passed" + }, + { + "title": "can search by shipping post code", + "status": "passed" + }, + { + "title": "can search by shipping state", + "status": "passed" + }, + { + "title": "can return an empty result set when no matches were found", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests: CRUD": [], + "Orders API tests: CRUD > Create an order": [ + { + "title": "can create a pending order by default", + "status": "passed" + }, + { + "title": "can create an order with status pending", + "status": "passed" + }, + { + "title": "can create an order with status processing", + "status": "passed" + }, + { + "title": "can create an order with status on-hold", + "status": "passed" + }, + { + "title": "can create an order with status completed", + "status": "passed" + }, + { + "title": "can create an order with status cancelled", + "status": "passed" + }, + { + "title": "can create an order with status refunded", + "status": "passed" + }, + { + "title": "can create an order with status failed", + "status": "passed" + } + ], + "Orders API tests: CRUD > Create an order > Order Notes tests": [ + { + "title": "can create a order note", + "status": "passed" + }, + { + "title": "can retrieve an order note", + "status": "passed" + }, + { + "title": "can retrieve all order notes", + "status": "passed" + }, + { + "title": "cannot update an order note", + "status": "passed" + }, + { + "title": "can permanently delete an order note", + "status": "passed" + } + ], + "Orders API tests: CRUD > Retrieve an order": [ + { + "title": "can retrieve an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Update an order": [ + { + "title": "can update status of an order to pending", + "status": "passed" + }, + { + "title": "can update status of an order to processing", + "status": "passed" + }, + { + "title": "can update status of an order to on-hold", + "status": "passed" + }, + { + "title": "can update status of an order to completed", + "status": "passed" + }, + { + "title": "can update status of an order to cancelled", + "status": "passed" + }, + { + "title": "can update status of an order to refunded", + "status": "passed" + }, + { + "title": "can update status of an order to failed", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can add a product to an order", + "status": "passed" + }, + { + "title": "can pay for an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Delete an order": [ + { + "title": "can permanently delete an order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests": [ + { + "title": "can create an order", + "status": "passed" + }, + { + "title": "can retrieve an order", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can permanently delete an order", + "status": "passed" + } + ], + "Orders API tests > List all orders": [ + { + "title": "pagination", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "customer", + "status": "passed" + }, + { + "title": "product", + "status": "passed" + }, + { + "title": "dp (precision)", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + } + ], + "Orders API tests > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + } + ] + } + }, + { + "file": "payment-gateways\\/payment-gateways-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Payment Gateways API tests": [ + { + "title": "can view all payment gateways", + "status": "passed" + }, + { + "title": "can view a payment gateway", + "status": "passed" + }, + { + "title": "can update a payment gateway", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/product-list.test.js", + "status": "passed", + "has_pending": true, + "tests": { + "Products API tests: List All Products": [], + "Products API tests: List All Products > List all products": [ + { + "title": "defaults", + "status": "passed" + }, + { + "title": "pagination", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "slug", + "status": "passed" + }, + { + "title": "sku", + "status": "passed" + }, + { + "title": "type", + "status": "passed" + }, + { + "title": "featured", + "status": "passed" + }, + { + "title": "categories", + "status": "passed" + }, + { + "title": "on sale", + "status": "passed" + }, + { + "title": "price", + "status": "passed" + }, + { + "title": "before \\/ after", + "status": "passed" + }, + { + "title": "attributes", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "shipping class", + "status": "passed" + }, + { + "title": "tax class", + "status": "passed" + }, + { + "title": "stock status", + "status": "passed" + }, + { + "title": "tags", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + } + ], + "Products API tests: List All Products > List all products > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "title", + "status": "passed" + }, + { + "title": "slug orderby", + "status": "passed" + }, + { + "title": "price orderby", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + }, + { + "title": "rating (desc)", + "status": "passed" + }, + { + "title": "rating (asc)", + "status": "pending" + }, + { + "title": "popularity (asc)", + "status": "pending" + }, + { + "title": "popularity (desc)", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/products-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Products API tests: CRUD": [ + { + "title": "can add a simple product", + "status": "passed" + }, + { + "title": "can add a virtual product", + "status": "passed" + }, + { + "title": "can view a single product", + "status": "passed" + }, + { + "title": "can update a single product", + "status": "passed" + }, + { + "title": "can delete a product", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD": [ + { + "title": "can add a product attribute", + "status": "passed" + }, + { + "title": "can retrieve a product attribute", + "status": "passed" + }, + { + "title": "can retrieve all product attribute", + "status": "passed" + }, + { + "title": "can update a product attribute", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute", + "status": "passed" + }, + { + "title": "can batch update product attributes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ + { + "title": "can add a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve all product attribute terms", + "status": "passed" + }, + { + "title": "can update a product attribute term", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute term", + "status": "passed" + }, + { + "title": "can batch update product attribute terms", + "status": "passed" + } + ], + "Products API tests: CRUD > Product categories tests: CRUD": [ + { + "title": "can add a product category", + "status": "passed" + }, + { + "title": "can retrieve a product category", + "status": "passed" + }, + { + "title": "can retrieve all product categories", + "status": "passed" + }, + { + "title": "can update a product category", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product categories", + "status": "passed" + } + ], + "Products API tests: CRUD > Product review tests: CRUD": [ + { + "title": "can add a product review", + "status": "passed" + }, + { + "title": "cannot add a product review with invalid product_id", + "status": "passed" + }, + { + "title": "cannot add a duplicate product review", + "status": "passed" + }, + { + "title": "can retrieve a product review", + "status": "passed" + }, + { + "title": "can retrieve all product reviews", + "status": "passed" + }, + { + "title": "can update a product review", + "status": "passed" + }, + { + "title": "can permanently delete a product review", + "status": "passed" + }, + { + "title": "can batch update product reviews", + "status": "passed" + } + ], + "Products API tests: CRUD > Product shipping classes tests: CRUD": [ + { + "title": "can add a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve all product shipping classes", + "status": "passed" + }, + { + "title": "can update a product shipping class", + "status": "passed" + }, + { + "title": "can permanently delete a product shipping class", + "status": "passed" + }, + { + "title": "can batch update product shipping classes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product tags tests: CRUD": [ + { + "title": "can add a product tag", + "status": "passed" + }, + { + "title": "can retrieve a product tag", + "status": "passed" + }, + { + "title": "can retrieve all product tags", + "status": "passed" + }, + { + "title": "can update a product tag", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product tags", + "status": "passed" + } + ], + "Products API tests: CRUD > Product variation tests: CRUD": [ + { + "title": "can add a variable product", + "status": "passed" + }, + { + "title": "can add a product variation", + "status": "passed" + }, + { + "title": "can retrieve a product variation", + "status": "passed" + }, + { + "title": "can retrieve all product variations", + "status": "passed" + }, + { + "title": "can update a product variation", + "status": "passed" + }, + { + "title": "can permanently delete a product variation", + "status": "passed" + }, + { + "title": "can batch update product variations", + "status": "passed" + } + ], + "Products API tests: CRUD > Batch update products": [ + { + "title": "can batch create products", + "status": "passed" + }, + { + "title": "can batch update products", + "status": "passed" + }, + { + "title": "can batch delete products", + "status": "passed" + } + ] + } + }, + { + "file": "refunds\\/refunds.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Refunds API tests": [ + { + "title": "can create a refund", + "status": "passed" + }, + { + "title": "can retrieve a refund", + "status": "passed" + }, + { + "title": "can list all refunds", + "status": "passed" + }, + { + "title": "can delete a refund", + "status": "passed" + } + ] + } + }, + { + "file": "reports\\/reports-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Reports API tests": [ + { + "title": "can view all reports", + "status": "passed" + }, + { + "title": "can view sales reports", + "status": "passed" + }, + { + "title": "can view top sellers reports", + "status": "passed" + }, + { + "title": "can view coupons totals", + "status": "passed" + }, + { + "title": "can view customers totals", + "status": "passed" + }, + { + "title": "can view orders totals", + "status": "passed" + }, + { + "title": "can view products totals", + "status": "passed" + }, + { + "title": "can view reviews totals", + "status": "passed" + } + ] + } + }, + { + "file": "settings\\/settings-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Settings API tests: CRUD": [], + "Settings API tests: CRUD > List all settings groups": [ + { + "title": "can retrieve all settings groups", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all settings options": [ + { + "title": "can retrieve all general settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > Retrieve a settings option": [ + { + "title": "can retrieve a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Update a settings option": [ + { + "title": "can update a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Batch Update a settings option": [ + { + "title": "can batch update settings options", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Products settings options": [ + { + "title": "can retrieve all products settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Tax settings options": [ + { + "title": "can retrieve all tax settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Shipping settings options": [ + { + "title": "can retrieve all shipping settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Checkout settings options": [ + { + "title": "can retrieve all checkout settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Account settings options": [ + { + "title": "can retrieve all account settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email settings options": [ + { + "title": "can retrieve all email settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Advanced settings options": [ + { + "title": "can retrieve all advanced settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email New Order settings": [ + { + "title": "can retrieve all email new order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Failed Order settings": [ + { + "title": "can retrieve all email failed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ + { + "title": "can retrieve all email customer on hold order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ + { + "title": "can retrieve all email customer processing order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ + { + "title": "can retrieve all email customer completed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ + { + "title": "can retrieve all email customer refunded order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Invoice settings": [ + { + "title": "can retrieve all email customer invoice settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Note settings": [ + { + "title": "can retrieve all email customer note settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ + { + "title": "can retrieve all email customer reset password settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer New Account settings": [ + { + "title": "can retrieve all email customer new account settings", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-method.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping methods API tests": [ + { + "title": "cannot create a shipping method", + "status": "passed" + }, + { + "title": "can retrieve all shipping methods", + "status": "passed" + }, + { + "title": "can retrieve a shipping method", + "status": "passed" + }, + { + "title": "cannot update a shipping method", + "status": "passed" + }, + { + "title": "cannot delete a shipping method", + "status": "passed" + }, + { + "title": "can add a Flat rate shipping method", + "status": "passed" + }, + { + "title": "can add a Free shipping shipping method", + "status": "passed" + }, + { + "title": "can add a Local pickup shipping method", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-zones.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping zones API tests": [ + { + "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", + "status": "passed" + }, + { + "title": "cannot update the default shipping zone", + "status": "passed" + }, + { + "title": "can create a shipping zone", + "status": "passed" + }, + { + "title": "can retrieve a shipping zone", + "status": "passed" + }, + { + "title": "can list all shipping zones", + "status": "passed" + }, + { + "title": "can update a shipping zone", + "status": "passed" + }, + { + "title": "can add a shipping region to a shipping zone", + "status": "passed" + }, + { + "title": "can update a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can clear\\/delete a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can delete a shipping zone", + "status": "passed" + } + ] + } + }, + { + "file": "system-status\\/system-status-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "System Status API tests": [ + { + "title": "can view all system status tools", + "status": "passed" + }, + { + "title": "can retrieve a system status tool", + "status": "passed" + }, + { + "title": "can run a tool from system status", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-classes-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Classes API tests: CRUD": [], + "Tax Classes API tests: CRUD > Create a tax class": [ + { + "title": "can enable tax calculations", + "status": "passed" + }, + { + "title": "can create a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax class", + "status": "passed" + }, + { + "title": "can retrieve all tax classes", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Update a tax class": [ + { + "title": "cannot update a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Delete a tax class": [ + { + "title": "can permanently delete a tax class", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-rates-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Rates API tests: CRUD": [], + "Tax Rates API tests: CRUD > Create a tax rate": [ + { + "title": "can create a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax rate", + "status": "passed" + }, + { + "title": "can retrieve all tax rates", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Update a tax rate": [ + { + "title": "can update a tax rate", + "status": "passed" + }, + { + "title": "retrieve after update tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Delete a tax rate": [ + { + "title": "can permanently delete a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Batch tax rate operations": [ + { + "title": "can batch create tax rates", + "status": "passed" + }, + { + "title": "can batch update tax rates", + "status": "passed" + }, + { + "title": "can batch delete tax rates", + "status": "passed" + } + ] + } + }, + { + "file": "webhooks\\/webhooks-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Webhooks API tests": [], + "Webhooks API tests > Create a webhook": [ + { + "title": "can create a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Retrieve after create": [ + { + "title": "can retrieve a webhook", + "status": "passed" + }, + { + "title": "can retrieve all webhooks", + "status": "passed" + } + ], + "Webhooks API tests > Update a webhook": [ + { + "title": "can update a web hook", + "status": "passed" + } + ], + "Webhooks API tests > Delete a webhook": [ + { + "title": "can permanently delete a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Batch webhook operations": [ + { + "title": "can batch create webhooks", + "status": "passed" + }, + { + "title": "can batch update webhooks", + "status": "passed" + }, + { + "title": "can batch delete webhooks", + "status": "passed" + } + ] + } + } + ], + "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." } + }, + { + "debug_log": [ + { + "count": "650", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." + }, + { + "count": "550", + "message": "PHP Notice: $order is Automattic\\\\WooCommerce\\\\Admin\\\\Overrides\\\\Order as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 41" + } + ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php index 40897961..9c7b8e3c 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_order_cache_bug_woorc_php82_wprc_2d42a2bf6a893323495c02b92696088d__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "failed", + "status": "success", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,29 +31,1367 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test failed before it was executed.", - "debug_log": "", + "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 0, + "numPassedTestSuites": 20, "numPendingTestSuites": 0, - "numTotalTestSuites": 0, + "numTotalTestSuites": 20, "numFailedTests": 0, - "numPassedTests": 0, - "numPendingTests": 0, - "numTotalTests": 0, - "testResults": [], - "summary": "Test failed before it was executed." + "numPassedTests": 255, + "numPendingTests": 2, + "numTotalTests": 257, + "testResults": [ + { + "file": "coupons\\/coupons.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Coupons API tests": [ + { + "title": "can create a coupon", + "status": "passed" + }, + { + "title": "can retrieve a coupon", + "status": "passed" + }, + { + "title": "can update a coupon", + "status": "passed" + }, + { + "title": "can permanently delete a coupon", + "status": "passed" + } + ], + "Batch update coupons": [ + { + "title": "can batch create coupons", + "status": "passed" + }, + { + "title": "can batch update coupons", + "status": "passed" + }, + { + "title": "can batch delete coupons", + "status": "passed" + } + ], + "List coupons": [ + { + "title": "can list all coupons by default", + "status": "passed" + }, + { + "title": "can limit result set to matching code", + "status": "passed" + }, + { + "title": "can paginate results", + "status": "passed" + }, + { + "title": "can limit results to matching string", + "status": "passed" + } + ], + "Add coupon to order": [ + { + "title": "can add coupon to an order", + "status": "passed" + } + ] + } + }, + { + "file": "customers\\/customers-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Customers API tests: CRUD": [], + "Customers API tests: CRUD > Retrieve after env setup": [ + { + "title": "can retrieve admin user", + "status": "passed" + }, + { + "title": "can retrieve subscriber user", + "status": "passed" + }, + { + "title": "retrieve user with id 0 is invalid", + "status": "passed" + }, + { + "title": "can retrieve customers", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Create a customer": [ + { + "title": "can create a customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a customer", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Update a customer": [ + { + "title": "can update the admin user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update admin", + "status": "passed" + }, + { + "title": "can update the subscriber user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update subscriber", + "status": "passed" + }, + { + "title": "can update a customer", + "status": "passed" + }, + { + "title": "retrieve after update customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Delete a customer": [ + { + "title": "can permanently delete an customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Batch update customers": [ + { + "title": "can batch create customers", + "status": "passed" + }, + { + "title": "can batch update customers", + "status": "passed" + }, + { + "title": "can batch delete customers", + "status": "passed" + } + ] + } + }, + { + "file": "data\\/data-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Data API tests": [ + { + "title": "can list all data", + "status": "passed" + }, + { + "title": "can view country data", + "status": "passed" + }, + { + "title": "can view currency data", + "status": "passed" + }, + { + "title": "can view current currency", + "status": "passed" + } + ] + } + }, + { + "file": "hello\\/hello.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Test API connectivity": [ + { + "title": "can access a non-authenticated endpoint", + "status": "passed" + }, + { + "title": "can access an authenticated endpoint", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-complex.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API test": [ + { + "title": "can add complex order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-search.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Order Search API tests": [ + { + "title": "can search by orderId", + "status": "passed" + }, + { + "title": "can search by billing first name", + "status": "passed" + }, + { + "title": "can search by billing company name", + "status": "passed" + }, + { + "title": "can search by billing address 2", + "status": "passed" + }, + { + "title": "can search by billing city name", + "status": "passed" + }, + { + "title": "can search by billing post code", + "status": "passed" + }, + { + "title": "can search by billing phone", + "status": "passed" + }, + { + "title": "can search by billing state", + "status": "passed" + }, + { + "title": "can search by shipping first name", + "status": "passed" + }, + { + "title": "can search by shipping last name", + "status": "passed" + }, + { + "title": "can search by shipping address 2", + "status": "passed" + }, + { + "title": "can search by shipping city", + "status": "passed" + }, + { + "title": "can search by shipping post code", + "status": "passed" + }, + { + "title": "can search by shipping state", + "status": "passed" + }, + { + "title": "can return an empty result set when no matches were found", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests: CRUD": [], + "Orders API tests: CRUD > Create an order": [ + { + "title": "can create a pending order by default", + "status": "passed" + }, + { + "title": "can create an order with status pending", + "status": "passed" + }, + { + "title": "can create an order with status processing", + "status": "passed" + }, + { + "title": "can create an order with status on-hold", + "status": "passed" + }, + { + "title": "can create an order with status completed", + "status": "passed" + }, + { + "title": "can create an order with status cancelled", + "status": "passed" + }, + { + "title": "can create an order with status refunded", + "status": "passed" + }, + { + "title": "can create an order with status failed", + "status": "passed" + } + ], + "Orders API tests: CRUD > Create an order > Order Notes tests": [ + { + "title": "can create a order note", + "status": "passed" + }, + { + "title": "can retrieve an order note", + "status": "passed" + }, + { + "title": "can retrieve all order notes", + "status": "passed" + }, + { + "title": "cannot update an order note", + "status": "passed" + }, + { + "title": "can permanently delete an order note", + "status": "passed" + } + ], + "Orders API tests: CRUD > Retrieve an order": [ + { + "title": "can retrieve an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Update an order": [ + { + "title": "can update status of an order to pending", + "status": "passed" + }, + { + "title": "can update status of an order to processing", + "status": "passed" + }, + { + "title": "can update status of an order to on-hold", + "status": "passed" + }, + { + "title": "can update status of an order to completed", + "status": "passed" + }, + { + "title": "can update status of an order to cancelled", + "status": "passed" + }, + { + "title": "can update status of an order to refunded", + "status": "passed" + }, + { + "title": "can update status of an order to failed", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can add a product to an order", + "status": "passed" + }, + { + "title": "can pay for an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Delete an order": [ + { + "title": "can permanently delete an order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests": [ + { + "title": "can create an order", + "status": "passed" + }, + { + "title": "can retrieve an order", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can permanently delete an order", + "status": "passed" + } + ], + "Orders API tests > List all orders": [ + { + "title": "pagination", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "customer", + "status": "passed" + }, + { + "title": "product", + "status": "passed" + }, + { + "title": "dp (precision)", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + } + ], + "Orders API tests > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + } + ] + } + }, + { + "file": "payment-gateways\\/payment-gateways-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Payment Gateways API tests": [ + { + "title": "can view all payment gateways", + "status": "passed" + }, + { + "title": "can view a payment gateway", + "status": "passed" + }, + { + "title": "can update a payment gateway", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/product-list.test.js", + "status": "passed", + "has_pending": true, + "tests": { + "Products API tests: List All Products": [], + "Products API tests: List All Products > List all products": [ + { + "title": "defaults", + "status": "passed" + }, + { + "title": "pagination", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "slug", + "status": "passed" + }, + { + "title": "sku", + "status": "passed" + }, + { + "title": "type", + "status": "passed" + }, + { + "title": "featured", + "status": "passed" + }, + { + "title": "categories", + "status": "passed" + }, + { + "title": "on sale", + "status": "passed" + }, + { + "title": "price", + "status": "passed" + }, + { + "title": "before \\/ after", + "status": "passed" + }, + { + "title": "attributes", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "shipping class", + "status": "passed" + }, + { + "title": "tax class", + "status": "passed" + }, + { + "title": "stock status", + "status": "passed" + }, + { + "title": "tags", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + } + ], + "Products API tests: List All Products > List all products > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "title", + "status": "passed" + }, + { + "title": "slug orderby", + "status": "passed" + }, + { + "title": "price orderby", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + }, + { + "title": "rating (desc)", + "status": "passed" + }, + { + "title": "rating (asc)", + "status": "pending" + }, + { + "title": "popularity (asc)", + "status": "pending" + }, + { + "title": "popularity (desc)", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/products-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Products API tests: CRUD": [ + { + "title": "can add a simple product", + "status": "passed" + }, + { + "title": "can add a virtual product", + "status": "passed" + }, + { + "title": "can view a single product", + "status": "passed" + }, + { + "title": "can update a single product", + "status": "passed" + }, + { + "title": "can delete a product", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD": [ + { + "title": "can add a product attribute", + "status": "passed" + }, + { + "title": "can retrieve a product attribute", + "status": "passed" + }, + { + "title": "can retrieve all product attribute", + "status": "passed" + }, + { + "title": "can update a product attribute", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute", + "status": "passed" + }, + { + "title": "can batch update product attributes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ + { + "title": "can add a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve all product attribute terms", + "status": "passed" + }, + { + "title": "can update a product attribute term", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute term", + "status": "passed" + }, + { + "title": "can batch update product attribute terms", + "status": "passed" + } + ], + "Products API tests: CRUD > Product categories tests: CRUD": [ + { + "title": "can add a product category", + "status": "passed" + }, + { + "title": "can retrieve a product category", + "status": "passed" + }, + { + "title": "can retrieve all product categories", + "status": "passed" + }, + { + "title": "can update a product category", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product categories", + "status": "passed" + } + ], + "Products API tests: CRUD > Product review tests: CRUD": [ + { + "title": "can add a product review", + "status": "passed" + }, + { + "title": "cannot add a product review with invalid product_id", + "status": "passed" + }, + { + "title": "cannot add a duplicate product review", + "status": "passed" + }, + { + "title": "can retrieve a product review", + "status": "passed" + }, + { + "title": "can retrieve all product reviews", + "status": "passed" + }, + { + "title": "can update a product review", + "status": "passed" + }, + { + "title": "can permanently delete a product review", + "status": "passed" + }, + { + "title": "can batch update product reviews", + "status": "passed" + } + ], + "Products API tests: CRUD > Product shipping classes tests: CRUD": [ + { + "title": "can add a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve all product shipping classes", + "status": "passed" + }, + { + "title": "can update a product shipping class", + "status": "passed" + }, + { + "title": "can permanently delete a product shipping class", + "status": "passed" + }, + { + "title": "can batch update product shipping classes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product tags tests: CRUD": [ + { + "title": "can add a product tag", + "status": "passed" + }, + { + "title": "can retrieve a product tag", + "status": "passed" + }, + { + "title": "can retrieve all product tags", + "status": "passed" + }, + { + "title": "can update a product tag", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product tags", + "status": "passed" + } + ], + "Products API tests: CRUD > Product variation tests: CRUD": [ + { + "title": "can add a variable product", + "status": "passed" + }, + { + "title": "can add a product variation", + "status": "passed" + }, + { + "title": "can retrieve a product variation", + "status": "passed" + }, + { + "title": "can retrieve all product variations", + "status": "passed" + }, + { + "title": "can update a product variation", + "status": "passed" + }, + { + "title": "can permanently delete a product variation", + "status": "passed" + }, + { + "title": "can batch update product variations", + "status": "passed" + } + ], + "Products API tests: CRUD > Batch update products": [ + { + "title": "can batch create products", + "status": "passed" + }, + { + "title": "can batch update products", + "status": "passed" + }, + { + "title": "can batch delete products", + "status": "passed" + } + ] + } + }, + { + "file": "refunds\\/refunds.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Refunds API tests": [ + { + "title": "can create a refund", + "status": "passed" + }, + { + "title": "can retrieve a refund", + "status": "passed" + }, + { + "title": "can list all refunds", + "status": "passed" + }, + { + "title": "can delete a refund", + "status": "passed" + } + ] + } + }, + { + "file": "reports\\/reports-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Reports API tests": [ + { + "title": "can view all reports", + "status": "passed" + }, + { + "title": "can view sales reports", + "status": "passed" + }, + { + "title": "can view top sellers reports", + "status": "passed" + }, + { + "title": "can view coupons totals", + "status": "passed" + }, + { + "title": "can view customers totals", + "status": "passed" + }, + { + "title": "can view orders totals", + "status": "passed" + }, + { + "title": "can view products totals", + "status": "passed" + }, + { + "title": "can view reviews totals", + "status": "passed" + } + ] + } + }, + { + "file": "settings\\/settings-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Settings API tests: CRUD": [], + "Settings API tests: CRUD > List all settings groups": [ + { + "title": "can retrieve all settings groups", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all settings options": [ + { + "title": "can retrieve all general settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > Retrieve a settings option": [ + { + "title": "can retrieve a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Update a settings option": [ + { + "title": "can update a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Batch Update a settings option": [ + { + "title": "can batch update settings options", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Products settings options": [ + { + "title": "can retrieve all products settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Tax settings options": [ + { + "title": "can retrieve all tax settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Shipping settings options": [ + { + "title": "can retrieve all shipping settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Checkout settings options": [ + { + "title": "can retrieve all checkout settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Account settings options": [ + { + "title": "can retrieve all account settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email settings options": [ + { + "title": "can retrieve all email settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Advanced settings options": [ + { + "title": "can retrieve all advanced settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email New Order settings": [ + { + "title": "can retrieve all email new order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Failed Order settings": [ + { + "title": "can retrieve all email failed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ + { + "title": "can retrieve all email customer on hold order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ + { + "title": "can retrieve all email customer processing order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ + { + "title": "can retrieve all email customer completed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ + { + "title": "can retrieve all email customer refunded order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Invoice settings": [ + { + "title": "can retrieve all email customer invoice settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Note settings": [ + { + "title": "can retrieve all email customer note settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ + { + "title": "can retrieve all email customer reset password settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer New Account settings": [ + { + "title": "can retrieve all email customer new account settings", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-method.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping methods API tests": [ + { + "title": "cannot create a shipping method", + "status": "passed" + }, + { + "title": "can retrieve all shipping methods", + "status": "passed" + }, + { + "title": "can retrieve a shipping method", + "status": "passed" + }, + { + "title": "cannot update a shipping method", + "status": "passed" + }, + { + "title": "cannot delete a shipping method", + "status": "passed" + }, + { + "title": "can add a Flat rate shipping method", + "status": "passed" + }, + { + "title": "can add a Free shipping shipping method", + "status": "passed" + }, + { + "title": "can add a Local pickup shipping method", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-zones.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping zones API tests": [ + { + "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", + "status": "passed" + }, + { + "title": "cannot update the default shipping zone", + "status": "passed" + }, + { + "title": "can create a shipping zone", + "status": "passed" + }, + { + "title": "can retrieve a shipping zone", + "status": "passed" + }, + { + "title": "can list all shipping zones", + "status": "passed" + }, + { + "title": "can update a shipping zone", + "status": "passed" + }, + { + "title": "can add a shipping region to a shipping zone", + "status": "passed" + }, + { + "title": "can update a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can clear\\/delete a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can delete a shipping zone", + "status": "passed" + } + ] + } + }, + { + "file": "system-status\\/system-status-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "System Status API tests": [ + { + "title": "can view all system status tools", + "status": "passed" + }, + { + "title": "can retrieve a system status tool", + "status": "passed" + }, + { + "title": "can run a tool from system status", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-classes-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Classes API tests: CRUD": [], + "Tax Classes API tests: CRUD > Create a tax class": [ + { + "title": "can enable tax calculations", + "status": "passed" + }, + { + "title": "can create a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax class", + "status": "passed" + }, + { + "title": "can retrieve all tax classes", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Update a tax class": [ + { + "title": "cannot update a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Delete a tax class": [ + { + "title": "can permanently delete a tax class", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-rates-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Rates API tests: CRUD": [], + "Tax Rates API tests: CRUD > Create a tax rate": [ + { + "title": "can create a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax rate", + "status": "passed" + }, + { + "title": "can retrieve all tax rates", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Update a tax rate": [ + { + "title": "can update a tax rate", + "status": "passed" + }, + { + "title": "retrieve after update tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Delete a tax rate": [ + { + "title": "can permanently delete a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Batch tax rate operations": [ + { + "title": "can batch create tax rates", + "status": "passed" + }, + { + "title": "can batch update tax rates", + "status": "passed" + }, + { + "title": "can batch delete tax rates", + "status": "passed" + } + ] + } + }, + { + "file": "webhooks\\/webhooks-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Webhooks API tests": [], + "Webhooks API tests > Create a webhook": [ + { + "title": "can create a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Retrieve after create": [ + { + "title": "can retrieve a webhook", + "status": "passed" + }, + { + "title": "can retrieve all webhooks", + "status": "passed" + } + ], + "Webhooks API tests > Update a webhook": [ + { + "title": "can update a web hook", + "status": "passed" + } + ], + "Webhooks API tests > Delete a webhook": [ + { + "title": "can permanently delete a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Batch webhook operations": [ + { + "title": "can batch create webhooks", + "status": "passed" + }, + { + "title": "can batch update webhooks", + "status": "passed" + }, + { + "title": "can batch delete webhooks", + "status": "passed" + } + ] + } + } + ], + "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." } + }, + { + "debug_log": [ + { + "count": "650", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." + }, + { + "count": "550", + "message": "PHP Notice: $order is Automattic\\\\WooCommerce\\\\Admin\\\\Overrides\\\\Order as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 41" + } + ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php index 0b561b0d..b5dcc074 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php74_wprc_21a3b603b13d883e8f40e55359c849d2__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "failed", + "status": "success", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,29 +31,1367 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test failed before it was executed.", - "debug_log": "", + "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 0, + "numPassedTestSuites": 20, "numPendingTestSuites": 0, - "numTotalTestSuites": 0, + "numTotalTestSuites": 20, "numFailedTests": 0, - "numPassedTests": 0, - "numPendingTests": 0, - "numTotalTests": 0, - "testResults": [], - "summary": "Test failed before it was executed." + "numPassedTests": 255, + "numPendingTests": 2, + "numTotalTests": 257, + "testResults": [ + { + "file": "coupons\\/coupons.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Coupons API tests": [ + { + "title": "can create a coupon", + "status": "passed" + }, + { + "title": "can retrieve a coupon", + "status": "passed" + }, + { + "title": "can update a coupon", + "status": "passed" + }, + { + "title": "can permanently delete a coupon", + "status": "passed" + } + ], + "Batch update coupons": [ + { + "title": "can batch create coupons", + "status": "passed" + }, + { + "title": "can batch update coupons", + "status": "passed" + }, + { + "title": "can batch delete coupons", + "status": "passed" + } + ], + "List coupons": [ + { + "title": "can list all coupons by default", + "status": "passed" + }, + { + "title": "can limit result set to matching code", + "status": "passed" + }, + { + "title": "can paginate results", + "status": "passed" + }, + { + "title": "can limit results to matching string", + "status": "passed" + } + ], + "Add coupon to order": [ + { + "title": "can add coupon to an order", + "status": "passed" + } + ] + } + }, + { + "file": "customers\\/customers-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Customers API tests: CRUD": [], + "Customers API tests: CRUD > Retrieve after env setup": [ + { + "title": "can retrieve admin user", + "status": "passed" + }, + { + "title": "can retrieve subscriber user", + "status": "passed" + }, + { + "title": "retrieve user with id 0 is invalid", + "status": "passed" + }, + { + "title": "can retrieve customers", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Create a customer": [ + { + "title": "can create a customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a customer", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Update a customer": [ + { + "title": "can update the admin user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update admin", + "status": "passed" + }, + { + "title": "can update the subscriber user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update subscriber", + "status": "passed" + }, + { + "title": "can update a customer", + "status": "passed" + }, + { + "title": "retrieve after update customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Delete a customer": [ + { + "title": "can permanently delete an customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Batch update customers": [ + { + "title": "can batch create customers", + "status": "passed" + }, + { + "title": "can batch update customers", + "status": "passed" + }, + { + "title": "can batch delete customers", + "status": "passed" + } + ] + } + }, + { + "file": "data\\/data-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Data API tests": [ + { + "title": "can list all data", + "status": "passed" + }, + { + "title": "can view country data", + "status": "passed" + }, + { + "title": "can view currency data", + "status": "passed" + }, + { + "title": "can view current currency", + "status": "passed" + } + ] + } + }, + { + "file": "hello\\/hello.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Test API connectivity": [ + { + "title": "can access a non-authenticated endpoint", + "status": "passed" + }, + { + "title": "can access an authenticated endpoint", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-complex.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API test": [ + { + "title": "can add complex order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-search.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Order Search API tests": [ + { + "title": "can search by orderId", + "status": "passed" + }, + { + "title": "can search by billing first name", + "status": "passed" + }, + { + "title": "can search by billing company name", + "status": "passed" + }, + { + "title": "can search by billing address 2", + "status": "passed" + }, + { + "title": "can search by billing city name", + "status": "passed" + }, + { + "title": "can search by billing post code", + "status": "passed" + }, + { + "title": "can search by billing phone", + "status": "passed" + }, + { + "title": "can search by billing state", + "status": "passed" + }, + { + "title": "can search by shipping first name", + "status": "passed" + }, + { + "title": "can search by shipping last name", + "status": "passed" + }, + { + "title": "can search by shipping address 2", + "status": "passed" + }, + { + "title": "can search by shipping city", + "status": "passed" + }, + { + "title": "can search by shipping post code", + "status": "passed" + }, + { + "title": "can search by shipping state", + "status": "passed" + }, + { + "title": "can return an empty result set when no matches were found", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests: CRUD": [], + "Orders API tests: CRUD > Create an order": [ + { + "title": "can create a pending order by default", + "status": "passed" + }, + { + "title": "can create an order with status pending", + "status": "passed" + }, + { + "title": "can create an order with status processing", + "status": "passed" + }, + { + "title": "can create an order with status on-hold", + "status": "passed" + }, + { + "title": "can create an order with status completed", + "status": "passed" + }, + { + "title": "can create an order with status cancelled", + "status": "passed" + }, + { + "title": "can create an order with status refunded", + "status": "passed" + }, + { + "title": "can create an order with status failed", + "status": "passed" + } + ], + "Orders API tests: CRUD > Create an order > Order Notes tests": [ + { + "title": "can create a order note", + "status": "passed" + }, + { + "title": "can retrieve an order note", + "status": "passed" + }, + { + "title": "can retrieve all order notes", + "status": "passed" + }, + { + "title": "cannot update an order note", + "status": "passed" + }, + { + "title": "can permanently delete an order note", + "status": "passed" + } + ], + "Orders API tests: CRUD > Retrieve an order": [ + { + "title": "can retrieve an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Update an order": [ + { + "title": "can update status of an order to pending", + "status": "passed" + }, + { + "title": "can update status of an order to processing", + "status": "passed" + }, + { + "title": "can update status of an order to on-hold", + "status": "passed" + }, + { + "title": "can update status of an order to completed", + "status": "passed" + }, + { + "title": "can update status of an order to cancelled", + "status": "passed" + }, + { + "title": "can update status of an order to refunded", + "status": "passed" + }, + { + "title": "can update status of an order to failed", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can add a product to an order", + "status": "passed" + }, + { + "title": "can pay for an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Delete an order": [ + { + "title": "can permanently delete an order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests": [ + { + "title": "can create an order", + "status": "passed" + }, + { + "title": "can retrieve an order", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can permanently delete an order", + "status": "passed" + } + ], + "Orders API tests > List all orders": [ + { + "title": "pagination", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "customer", + "status": "passed" + }, + { + "title": "product", + "status": "passed" + }, + { + "title": "dp (precision)", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + } + ], + "Orders API tests > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + } + ] + } + }, + { + "file": "payment-gateways\\/payment-gateways-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Payment Gateways API tests": [ + { + "title": "can view all payment gateways", + "status": "passed" + }, + { + "title": "can view a payment gateway", + "status": "passed" + }, + { + "title": "can update a payment gateway", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/product-list.test.js", + "status": "passed", + "has_pending": true, + "tests": { + "Products API tests: List All Products": [], + "Products API tests: List All Products > List all products": [ + { + "title": "defaults", + "status": "passed" + }, + { + "title": "pagination", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "slug", + "status": "passed" + }, + { + "title": "sku", + "status": "passed" + }, + { + "title": "type", + "status": "passed" + }, + { + "title": "featured", + "status": "passed" + }, + { + "title": "categories", + "status": "passed" + }, + { + "title": "on sale", + "status": "passed" + }, + { + "title": "price", + "status": "passed" + }, + { + "title": "before \\/ after", + "status": "passed" + }, + { + "title": "attributes", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "shipping class", + "status": "passed" + }, + { + "title": "tax class", + "status": "passed" + }, + { + "title": "stock status", + "status": "passed" + }, + { + "title": "tags", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + } + ], + "Products API tests: List All Products > List all products > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "title", + "status": "passed" + }, + { + "title": "slug orderby", + "status": "passed" + }, + { + "title": "price orderby", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + }, + { + "title": "rating (desc)", + "status": "passed" + }, + { + "title": "rating (asc)", + "status": "pending" + }, + { + "title": "popularity (asc)", + "status": "pending" + }, + { + "title": "popularity (desc)", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/products-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Products API tests: CRUD": [ + { + "title": "can add a simple product", + "status": "passed" + }, + { + "title": "can add a virtual product", + "status": "passed" + }, + { + "title": "can view a single product", + "status": "passed" + }, + { + "title": "can update a single product", + "status": "passed" + }, + { + "title": "can delete a product", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD": [ + { + "title": "can add a product attribute", + "status": "passed" + }, + { + "title": "can retrieve a product attribute", + "status": "passed" + }, + { + "title": "can retrieve all product attribute", + "status": "passed" + }, + { + "title": "can update a product attribute", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute", + "status": "passed" + }, + { + "title": "can batch update product attributes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ + { + "title": "can add a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve all product attribute terms", + "status": "passed" + }, + { + "title": "can update a product attribute term", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute term", + "status": "passed" + }, + { + "title": "can batch update product attribute terms", + "status": "passed" + } + ], + "Products API tests: CRUD > Product categories tests: CRUD": [ + { + "title": "can add a product category", + "status": "passed" + }, + { + "title": "can retrieve a product category", + "status": "passed" + }, + { + "title": "can retrieve all product categories", + "status": "passed" + }, + { + "title": "can update a product category", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product categories", + "status": "passed" + } + ], + "Products API tests: CRUD > Product review tests: CRUD": [ + { + "title": "can add a product review", + "status": "passed" + }, + { + "title": "cannot add a product review with invalid product_id", + "status": "passed" + }, + { + "title": "cannot add a duplicate product review", + "status": "passed" + }, + { + "title": "can retrieve a product review", + "status": "passed" + }, + { + "title": "can retrieve all product reviews", + "status": "passed" + }, + { + "title": "can update a product review", + "status": "passed" + }, + { + "title": "can permanently delete a product review", + "status": "passed" + }, + { + "title": "can batch update product reviews", + "status": "passed" + } + ], + "Products API tests: CRUD > Product shipping classes tests: CRUD": [ + { + "title": "can add a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve all product shipping classes", + "status": "passed" + }, + { + "title": "can update a product shipping class", + "status": "passed" + }, + { + "title": "can permanently delete a product shipping class", + "status": "passed" + }, + { + "title": "can batch update product shipping classes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product tags tests: CRUD": [ + { + "title": "can add a product tag", + "status": "passed" + }, + { + "title": "can retrieve a product tag", + "status": "passed" + }, + { + "title": "can retrieve all product tags", + "status": "passed" + }, + { + "title": "can update a product tag", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product tags", + "status": "passed" + } + ], + "Products API tests: CRUD > Product variation tests: CRUD": [ + { + "title": "can add a variable product", + "status": "passed" + }, + { + "title": "can add a product variation", + "status": "passed" + }, + { + "title": "can retrieve a product variation", + "status": "passed" + }, + { + "title": "can retrieve all product variations", + "status": "passed" + }, + { + "title": "can update a product variation", + "status": "passed" + }, + { + "title": "can permanently delete a product variation", + "status": "passed" + }, + { + "title": "can batch update product variations", + "status": "passed" + } + ], + "Products API tests: CRUD > Batch update products": [ + { + "title": "can batch create products", + "status": "passed" + }, + { + "title": "can batch update products", + "status": "passed" + }, + { + "title": "can batch delete products", + "status": "passed" + } + ] + } + }, + { + "file": "refunds\\/refunds.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Refunds API tests": [ + { + "title": "can create a refund", + "status": "passed" + }, + { + "title": "can retrieve a refund", + "status": "passed" + }, + { + "title": "can list all refunds", + "status": "passed" + }, + { + "title": "can delete a refund", + "status": "passed" + } + ] + } + }, + { + "file": "reports\\/reports-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Reports API tests": [ + { + "title": "can view all reports", + "status": "passed" + }, + { + "title": "can view sales reports", + "status": "passed" + }, + { + "title": "can view top sellers reports", + "status": "passed" + }, + { + "title": "can view coupons totals", + "status": "passed" + }, + { + "title": "can view customers totals", + "status": "passed" + }, + { + "title": "can view orders totals", + "status": "passed" + }, + { + "title": "can view products totals", + "status": "passed" + }, + { + "title": "can view reviews totals", + "status": "passed" + } + ] + } + }, + { + "file": "settings\\/settings-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Settings API tests: CRUD": [], + "Settings API tests: CRUD > List all settings groups": [ + { + "title": "can retrieve all settings groups", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all settings options": [ + { + "title": "can retrieve all general settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > Retrieve a settings option": [ + { + "title": "can retrieve a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Update a settings option": [ + { + "title": "can update a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Batch Update a settings option": [ + { + "title": "can batch update settings options", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Products settings options": [ + { + "title": "can retrieve all products settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Tax settings options": [ + { + "title": "can retrieve all tax settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Shipping settings options": [ + { + "title": "can retrieve all shipping settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Checkout settings options": [ + { + "title": "can retrieve all checkout settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Account settings options": [ + { + "title": "can retrieve all account settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email settings options": [ + { + "title": "can retrieve all email settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Advanced settings options": [ + { + "title": "can retrieve all advanced settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email New Order settings": [ + { + "title": "can retrieve all email new order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Failed Order settings": [ + { + "title": "can retrieve all email failed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ + { + "title": "can retrieve all email customer on hold order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ + { + "title": "can retrieve all email customer processing order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ + { + "title": "can retrieve all email customer completed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ + { + "title": "can retrieve all email customer refunded order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Invoice settings": [ + { + "title": "can retrieve all email customer invoice settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Note settings": [ + { + "title": "can retrieve all email customer note settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ + { + "title": "can retrieve all email customer reset password settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer New Account settings": [ + { + "title": "can retrieve all email customer new account settings", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-method.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping methods API tests": [ + { + "title": "cannot create a shipping method", + "status": "passed" + }, + { + "title": "can retrieve all shipping methods", + "status": "passed" + }, + { + "title": "can retrieve a shipping method", + "status": "passed" + }, + { + "title": "cannot update a shipping method", + "status": "passed" + }, + { + "title": "cannot delete a shipping method", + "status": "passed" + }, + { + "title": "can add a Flat rate shipping method", + "status": "passed" + }, + { + "title": "can add a Free shipping shipping method", + "status": "passed" + }, + { + "title": "can add a Local pickup shipping method", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-zones.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping zones API tests": [ + { + "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", + "status": "passed" + }, + { + "title": "cannot update the default shipping zone", + "status": "passed" + }, + { + "title": "can create a shipping zone", + "status": "passed" + }, + { + "title": "can retrieve a shipping zone", + "status": "passed" + }, + { + "title": "can list all shipping zones", + "status": "passed" + }, + { + "title": "can update a shipping zone", + "status": "passed" + }, + { + "title": "can add a shipping region to a shipping zone", + "status": "passed" + }, + { + "title": "can update a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can clear\\/delete a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can delete a shipping zone", + "status": "passed" + } + ] + } + }, + { + "file": "system-status\\/system-status-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "System Status API tests": [ + { + "title": "can view all system status tools", + "status": "passed" + }, + { + "title": "can retrieve a system status tool", + "status": "passed" + }, + { + "title": "can run a tool from system status", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-classes-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Classes API tests: CRUD": [], + "Tax Classes API tests: CRUD > Create a tax class": [ + { + "title": "can enable tax calculations", + "status": "passed" + }, + { + "title": "can create a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax class", + "status": "passed" + }, + { + "title": "can retrieve all tax classes", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Update a tax class": [ + { + "title": "cannot update a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Delete a tax class": [ + { + "title": "can permanently delete a tax class", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-rates-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Rates API tests: CRUD": [], + "Tax Rates API tests: CRUD > Create a tax rate": [ + { + "title": "can create a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax rate", + "status": "passed" + }, + { + "title": "can retrieve all tax rates", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Update a tax rate": [ + { + "title": "can update a tax rate", + "status": "passed" + }, + { + "title": "retrieve after update tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Delete a tax rate": [ + { + "title": "can permanently delete a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Batch tax rate operations": [ + { + "title": "can batch create tax rates", + "status": "passed" + }, + { + "title": "can batch update tax rates", + "status": "passed" + }, + { + "title": "can batch delete tax rates", + "status": "passed" + } + ] + } + }, + { + "file": "webhooks\\/webhooks-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Webhooks API tests": [], + "Webhooks API tests > Create a webhook": [ + { + "title": "can create a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Retrieve after create": [ + { + "title": "can retrieve a webhook", + "status": "passed" + }, + { + "title": "can retrieve all webhooks", + "status": "passed" + } + ], + "Webhooks API tests > Update a webhook": [ + { + "title": "can update a web hook", + "status": "passed" + } + ], + "Webhooks API tests > Delete a webhook": [ + { + "title": "can permanently delete a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Batch webhook operations": [ + { + "title": "can batch create webhooks", + "status": "passed" + }, + { + "title": "can batch update webhooks", + "status": "passed" + }, + { + "title": "can batch delete webhooks", + "status": "passed" + } + ] + } + } + ], + "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." } + }, + { + "debug_log": [ + { + "count": "650", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." + }, + { + "count": "550", + "message": "PHP Notice: New Product Editor is enabled as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 12" + } + ] } ] ]'; diff --git a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php index 3260b934..e98fecf5 100644 --- a/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php +++ b/_tests/tests/__snapshots__/WooapiTest__test_woo_api_valid_features_woorc_php82_wprc_c2dbc31700c141424142df97ef29db7c__1.php @@ -12,7 +12,7 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "failed", + "status": "success", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, @@ -31,29 +31,1367 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test failed before it was executed.", - "debug_log": "", + "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], "workflow_id": "1234567890", "runner": "normalized", - "test_result_json_extracted": "{EXTRACTED}" + "test_result_json_extracted": "{EXTRACTED}", + "debug_log_extracted": "{EXTRACTED}" }, { "test_result_json": { "numFailedTestSuites": 0, - "numPassedTestSuites": 0, + "numPassedTestSuites": 20, "numPendingTestSuites": 0, - "numTotalTestSuites": 0, + "numTotalTestSuites": 20, "numFailedTests": 0, - "numPassedTests": 0, - "numPendingTests": 0, - "numTotalTests": 0, - "testResults": [], - "summary": "Test failed before it was executed." + "numPassedTests": 255, + "numPendingTests": 2, + "numTotalTests": 257, + "testResults": [ + { + "file": "coupons\\/coupons.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Coupons API tests": [ + { + "title": "can create a coupon", + "status": "passed" + }, + { + "title": "can retrieve a coupon", + "status": "passed" + }, + { + "title": "can update a coupon", + "status": "passed" + }, + { + "title": "can permanently delete a coupon", + "status": "passed" + } + ], + "Batch update coupons": [ + { + "title": "can batch create coupons", + "status": "passed" + }, + { + "title": "can batch update coupons", + "status": "passed" + }, + { + "title": "can batch delete coupons", + "status": "passed" + } + ], + "List coupons": [ + { + "title": "can list all coupons by default", + "status": "passed" + }, + { + "title": "can limit result set to matching code", + "status": "passed" + }, + { + "title": "can paginate results", + "status": "passed" + }, + { + "title": "can limit results to matching string", + "status": "passed" + } + ], + "Add coupon to order": [ + { + "title": "can add coupon to an order", + "status": "passed" + } + ] + } + }, + { + "file": "customers\\/customers-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Customers API tests: CRUD": [], + "Customers API tests: CRUD > Retrieve after env setup": [ + { + "title": "can retrieve admin user", + "status": "passed" + }, + { + "title": "can retrieve subscriber user", + "status": "passed" + }, + { + "title": "retrieve user with id 0 is invalid", + "status": "passed" + }, + { + "title": "can retrieve customers", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Create a customer": [ + { + "title": "can create a customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a customer", + "status": "passed" + }, + { + "title": "can retrieve all customers", + "status": "passed" + } + ], + "Customers API tests: CRUD > Update a customer": [ + { + "title": "can update the admin user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update admin", + "status": "passed" + }, + { + "title": "can update the subscriber user\\/customer", + "status": "passed" + }, + { + "title": "retrieve after update subscriber", + "status": "passed" + }, + { + "title": "can update a customer", + "status": "passed" + }, + { + "title": "retrieve after update customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Delete a customer": [ + { + "title": "can permanently delete an customer", + "status": "passed" + } + ], + "Customers API tests: CRUD > Batch update customers": [ + { + "title": "can batch create customers", + "status": "passed" + }, + { + "title": "can batch update customers", + "status": "passed" + }, + { + "title": "can batch delete customers", + "status": "passed" + } + ] + } + }, + { + "file": "data\\/data-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Data API tests": [ + { + "title": "can list all data", + "status": "passed" + }, + { + "title": "can view country data", + "status": "passed" + }, + { + "title": "can view currency data", + "status": "passed" + }, + { + "title": "can view current currency", + "status": "passed" + } + ] + } + }, + { + "file": "hello\\/hello.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Test API connectivity": [ + { + "title": "can access a non-authenticated endpoint", + "status": "passed" + }, + { + "title": "can access an authenticated endpoint", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-complex.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API test": [ + { + "title": "can add complex order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/order-search.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Order Search API tests": [ + { + "title": "can search by orderId", + "status": "passed" + }, + { + "title": "can search by billing first name", + "status": "passed" + }, + { + "title": "can search by billing company name", + "status": "passed" + }, + { + "title": "can search by billing address 2", + "status": "passed" + }, + { + "title": "can search by billing city name", + "status": "passed" + }, + { + "title": "can search by billing post code", + "status": "passed" + }, + { + "title": "can search by billing phone", + "status": "passed" + }, + { + "title": "can search by billing state", + "status": "passed" + }, + { + "title": "can search by shipping first name", + "status": "passed" + }, + { + "title": "can search by shipping last name", + "status": "passed" + }, + { + "title": "can search by shipping address 2", + "status": "passed" + }, + { + "title": "can search by shipping city", + "status": "passed" + }, + { + "title": "can search by shipping post code", + "status": "passed" + }, + { + "title": "can search by shipping state", + "status": "passed" + }, + { + "title": "can return an empty result set when no matches were found", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests: CRUD": [], + "Orders API tests: CRUD > Create an order": [ + { + "title": "can create a pending order by default", + "status": "passed" + }, + { + "title": "can create an order with status pending", + "status": "passed" + }, + { + "title": "can create an order with status processing", + "status": "passed" + }, + { + "title": "can create an order with status on-hold", + "status": "passed" + }, + { + "title": "can create an order with status completed", + "status": "passed" + }, + { + "title": "can create an order with status cancelled", + "status": "passed" + }, + { + "title": "can create an order with status refunded", + "status": "passed" + }, + { + "title": "can create an order with status failed", + "status": "passed" + } + ], + "Orders API tests: CRUD > Create an order > Order Notes tests": [ + { + "title": "can create a order note", + "status": "passed" + }, + { + "title": "can retrieve an order note", + "status": "passed" + }, + { + "title": "can retrieve all order notes", + "status": "passed" + }, + { + "title": "cannot update an order note", + "status": "passed" + }, + { + "title": "can permanently delete an order note", + "status": "passed" + } + ], + "Orders API tests: CRUD > Retrieve an order": [ + { + "title": "can retrieve an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Update an order": [ + { + "title": "can update status of an order to pending", + "status": "passed" + }, + { + "title": "can update status of an order to processing", + "status": "passed" + }, + { + "title": "can update status of an order to on-hold", + "status": "passed" + }, + { + "title": "can update status of an order to completed", + "status": "passed" + }, + { + "title": "can update status of an order to cancelled", + "status": "passed" + }, + { + "title": "can update status of an order to refunded", + "status": "passed" + }, + { + "title": "can update status of an order to failed", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can add a product to an order", + "status": "passed" + }, + { + "title": "can pay for an order", + "status": "passed" + } + ], + "Orders API tests: CRUD > Delete an order": [ + { + "title": "can permanently delete an order", + "status": "passed" + } + ] + } + }, + { + "file": "orders\\/orders.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Orders API tests": [ + { + "title": "can create an order", + "status": "passed" + }, + { + "title": "can retrieve an order", + "status": "passed" + }, + { + "title": "can add shipping and billing contacts to an order", + "status": "passed" + }, + { + "title": "can permanently delete an order", + "status": "passed" + } + ], + "Orders API tests > List all orders": [ + { + "title": "pagination", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "customer", + "status": "passed" + }, + { + "title": "product", + "status": "passed" + }, + { + "title": "dp (precision)", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + } + ], + "Orders API tests > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + } + ] + } + }, + { + "file": "payment-gateways\\/payment-gateways-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Payment Gateways API tests": [ + { + "title": "can view all payment gateways", + "status": "passed" + }, + { + "title": "can view a payment gateway", + "status": "passed" + }, + { + "title": "can update a payment gateway", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/product-list.test.js", + "status": "passed", + "has_pending": true, + "tests": { + "Products API tests: List All Products": [], + "Products API tests: List All Products > List all products": [ + { + "title": "defaults", + "status": "passed" + }, + { + "title": "pagination", + "status": "passed" + }, + { + "title": "search", + "status": "passed" + }, + { + "title": "inclusion \\/ exclusion", + "status": "passed" + }, + { + "title": "slug", + "status": "passed" + }, + { + "title": "sku", + "status": "passed" + }, + { + "title": "type", + "status": "passed" + }, + { + "title": "featured", + "status": "passed" + }, + { + "title": "categories", + "status": "passed" + }, + { + "title": "on sale", + "status": "passed" + }, + { + "title": "price", + "status": "passed" + }, + { + "title": "before \\/ after", + "status": "passed" + }, + { + "title": "attributes", + "status": "passed" + }, + { + "title": "status", + "status": "passed" + }, + { + "title": "shipping class", + "status": "passed" + }, + { + "title": "tax class", + "status": "passed" + }, + { + "title": "stock status", + "status": "passed" + }, + { + "title": "tags", + "status": "passed" + }, + { + "title": "parent", + "status": "passed" + } + ], + "Products API tests: List All Products > List all products > orderby": [ + { + "title": "default", + "status": "passed" + }, + { + "title": "date", + "status": "passed" + }, + { + "title": "id", + "status": "passed" + }, + { + "title": "title", + "status": "passed" + }, + { + "title": "slug orderby", + "status": "passed" + }, + { + "title": "price orderby", + "status": "passed" + }, + { + "title": "include", + "status": "passed" + }, + { + "title": "rating (desc)", + "status": "passed" + }, + { + "title": "rating (asc)", + "status": "pending" + }, + { + "title": "popularity (asc)", + "status": "pending" + }, + { + "title": "popularity (desc)", + "status": "passed" + } + ] + } + }, + { + "file": "products\\/products-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Products API tests: CRUD": [ + { + "title": "can add a simple product", + "status": "passed" + }, + { + "title": "can add a virtual product", + "status": "passed" + }, + { + "title": "can view a single product", + "status": "passed" + }, + { + "title": "can update a single product", + "status": "passed" + }, + { + "title": "can delete a product", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD": [ + { + "title": "can add a product attribute", + "status": "passed" + }, + { + "title": "can retrieve a product attribute", + "status": "passed" + }, + { + "title": "can retrieve all product attribute", + "status": "passed" + }, + { + "title": "can update a product attribute", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute", + "status": "passed" + }, + { + "title": "can batch update product attributes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product attributes tests: CRUD > Product attribute terms tests: CRUD": [ + { + "title": "can add a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve a product attribute term", + "status": "passed" + }, + { + "title": "can retrieve all product attribute terms", + "status": "passed" + }, + { + "title": "can update a product attribute term", + "status": "passed" + }, + { + "title": "can permanently delete a product attribute term", + "status": "passed" + }, + { + "title": "can batch update product attribute terms", + "status": "passed" + } + ], + "Products API tests: CRUD > Product categories tests: CRUD": [ + { + "title": "can add a product category", + "status": "passed" + }, + { + "title": "can retrieve a product category", + "status": "passed" + }, + { + "title": "can retrieve all product categories", + "status": "passed" + }, + { + "title": "can update a product category", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product categories", + "status": "passed" + } + ], + "Products API tests: CRUD > Product review tests: CRUD": [ + { + "title": "can add a product review", + "status": "passed" + }, + { + "title": "cannot add a product review with invalid product_id", + "status": "passed" + }, + { + "title": "cannot add a duplicate product review", + "status": "passed" + }, + { + "title": "can retrieve a product review", + "status": "passed" + }, + { + "title": "can retrieve all product reviews", + "status": "passed" + }, + { + "title": "can update a product review", + "status": "passed" + }, + { + "title": "can permanently delete a product review", + "status": "passed" + }, + { + "title": "can batch update product reviews", + "status": "passed" + } + ], + "Products API tests: CRUD > Product shipping classes tests: CRUD": [ + { + "title": "can add a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve a product shipping class", + "status": "passed" + }, + { + "title": "can retrieve all product shipping classes", + "status": "passed" + }, + { + "title": "can update a product shipping class", + "status": "passed" + }, + { + "title": "can permanently delete a product shipping class", + "status": "passed" + }, + { + "title": "can batch update product shipping classes", + "status": "passed" + } + ], + "Products API tests: CRUD > Product tags tests: CRUD": [ + { + "title": "can add a product tag", + "status": "passed" + }, + { + "title": "can retrieve a product tag", + "status": "passed" + }, + { + "title": "can retrieve all product tags", + "status": "passed" + }, + { + "title": "can update a product tag", + "status": "passed" + }, + { + "title": "can permanently delete a product tag", + "status": "passed" + }, + { + "title": "can batch update product tags", + "status": "passed" + } + ], + "Products API tests: CRUD > Product variation tests: CRUD": [ + { + "title": "can add a variable product", + "status": "passed" + }, + { + "title": "can add a product variation", + "status": "passed" + }, + { + "title": "can retrieve a product variation", + "status": "passed" + }, + { + "title": "can retrieve all product variations", + "status": "passed" + }, + { + "title": "can update a product variation", + "status": "passed" + }, + { + "title": "can permanently delete a product variation", + "status": "passed" + }, + { + "title": "can batch update product variations", + "status": "passed" + } + ], + "Products API tests: CRUD > Batch update products": [ + { + "title": "can batch create products", + "status": "passed" + }, + { + "title": "can batch update products", + "status": "passed" + }, + { + "title": "can batch delete products", + "status": "passed" + } + ] + } + }, + { + "file": "refunds\\/refunds.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Refunds API tests": [ + { + "title": "can create a refund", + "status": "passed" + }, + { + "title": "can retrieve a refund", + "status": "passed" + }, + { + "title": "can list all refunds", + "status": "passed" + }, + { + "title": "can delete a refund", + "status": "passed" + } + ] + } + }, + { + "file": "reports\\/reports-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Reports API tests": [ + { + "title": "can view all reports", + "status": "passed" + }, + { + "title": "can view sales reports", + "status": "passed" + }, + { + "title": "can view top sellers reports", + "status": "passed" + }, + { + "title": "can view coupons totals", + "status": "passed" + }, + { + "title": "can view customers totals", + "status": "passed" + }, + { + "title": "can view orders totals", + "status": "passed" + }, + { + "title": "can view products totals", + "status": "passed" + }, + { + "title": "can view reviews totals", + "status": "passed" + } + ] + } + }, + { + "file": "settings\\/settings-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Settings API tests: CRUD": [], + "Settings API tests: CRUD > List all settings groups": [ + { + "title": "can retrieve all settings groups", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all settings options": [ + { + "title": "can retrieve all general settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > Retrieve a settings option": [ + { + "title": "can retrieve a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Update a settings option": [ + { + "title": "can update a settings option", + "status": "passed" + } + ], + "Settings API tests: CRUD > Batch Update a settings option": [ + { + "title": "can batch update settings options", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Products settings options": [ + { + "title": "can retrieve all products settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Tax settings options": [ + { + "title": "can retrieve all tax settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Shipping settings options": [ + { + "title": "can retrieve all shipping settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Checkout settings options": [ + { + "title": "can retrieve all checkout settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Account settings options": [ + { + "title": "can retrieve all account settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email settings options": [ + { + "title": "can retrieve all email settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Advanced settings options": [ + { + "title": "can retrieve all advanced settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email New Order settings": [ + { + "title": "can retrieve all email new order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Failed Order settings": [ + { + "title": "can retrieve all email failed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer On Hold Order settings": [ + { + "title": "can retrieve all email customer on hold order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Processing Order settings": [ + { + "title": "can retrieve all email customer processing order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Completed Order settings": [ + { + "title": "can retrieve all email customer completed order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Refunded Order settings": [ + { + "title": "can retrieve all email customer refunded order settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Invoice settings": [ + { + "title": "can retrieve all email customer invoice settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Note settings": [ + { + "title": "can retrieve all email customer note settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer Reset Password settings": [ + { + "title": "can retrieve all email customer reset password settings", + "status": "passed" + } + ], + "Settings API tests: CRUD > List all Email Customer New Account settings": [ + { + "title": "can retrieve all email customer new account settings", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-method.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping methods API tests": [ + { + "title": "cannot create a shipping method", + "status": "passed" + }, + { + "title": "can retrieve all shipping methods", + "status": "passed" + }, + { + "title": "can retrieve a shipping method", + "status": "passed" + }, + { + "title": "cannot update a shipping method", + "status": "passed" + }, + { + "title": "cannot delete a shipping method", + "status": "passed" + }, + { + "title": "can add a Flat rate shipping method", + "status": "passed" + }, + { + "title": "can add a Free shipping shipping method", + "status": "passed" + }, + { + "title": "can add a Local pickup shipping method", + "status": "passed" + } + ] + } + }, + { + "file": "shipping\\/shipping-zones.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Shipping zones API tests": [ + { + "title": "cannot delete the default shipping zone \\"Locations not covered by your other zones\\"", + "status": "passed" + }, + { + "title": "cannot update the default shipping zone", + "status": "passed" + }, + { + "title": "can create a shipping zone", + "status": "passed" + }, + { + "title": "can retrieve a shipping zone", + "status": "passed" + }, + { + "title": "can list all shipping zones", + "status": "passed" + }, + { + "title": "can update a shipping zone", + "status": "passed" + }, + { + "title": "can add a shipping region to a shipping zone", + "status": "passed" + }, + { + "title": "can update a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can clear\\/delete a shipping region on a shipping zone", + "status": "passed" + }, + { + "title": "can delete a shipping zone", + "status": "passed" + } + ] + } + }, + { + "file": "system-status\\/system-status-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "System Status API tests": [ + { + "title": "can view all system status tools", + "status": "passed" + }, + { + "title": "can retrieve a system status tool", + "status": "passed" + }, + { + "title": "can run a tool from system status", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-classes-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Classes API tests: CRUD": [], + "Tax Classes API tests: CRUD > Create a tax class": [ + { + "title": "can enable tax calculations", + "status": "passed" + }, + { + "title": "can create a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax class", + "status": "passed" + }, + { + "title": "can retrieve all tax classes", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Update a tax class": [ + { + "title": "cannot update a tax class", + "status": "passed" + } + ], + "Tax Classes API tests: CRUD > Delete a tax class": [ + { + "title": "can permanently delete a tax class", + "status": "passed" + } + ] + } + }, + { + "file": "taxes\\/tax-rates-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Tax Rates API tests: CRUD": [], + "Tax Rates API tests: CRUD > Create a tax rate": [ + { + "title": "can create a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Retrieve after create": [ + { + "title": "can retrieve a tax rate", + "status": "passed" + }, + { + "title": "can retrieve all tax rates", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Update a tax rate": [ + { + "title": "can update a tax rate", + "status": "passed" + }, + { + "title": "retrieve after update tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Delete a tax rate": [ + { + "title": "can permanently delete a tax rate", + "status": "passed" + } + ], + "Tax Rates API tests: CRUD > Batch tax rate operations": [ + { + "title": "can batch create tax rates", + "status": "passed" + }, + { + "title": "can batch update tax rates", + "status": "passed" + }, + { + "title": "can batch delete tax rates", + "status": "passed" + } + ] + } + }, + { + "file": "webhooks\\/webhooks-crud.test.js", + "status": "passed", + "has_pending": false, + "tests": { + "Webhooks API tests": [], + "Webhooks API tests > Create a webhook": [ + { + "title": "can create a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Retrieve after create": [ + { + "title": "can retrieve a webhook", + "status": "passed" + }, + { + "title": "can retrieve all webhooks", + "status": "passed" + } + ], + "Webhooks API tests > Update a webhook": [ + { + "title": "can update a web hook", + "status": "passed" + } + ], + "Webhooks API tests > Delete a webhook": [ + { + "title": "can permanently delete a webhook", + "status": "passed" + } + ], + "Webhooks API tests > Batch webhook operations": [ + { + "title": "can batch create webhooks", + "status": "passed" + }, + { + "title": "can batch update webhooks", + "status": "passed" + }, + { + "title": "can batch delete webhooks", + "status": "passed" + } + ] + } + } + ], + "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." } + }, + { + "debug_log": [ + { + "count": "650", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." + }, + { + "count": "550", + "message": "PHP Notice: New Product Editor is enabled as expected. in \\/var\\/www\\/html\\/wp-content\\/plugins\\/woocommerce-product-feeds\\/woocommerce-product-feeds.php on line 12" + } + ] } ] ]'; From a7c1b310c2fb0f95f8169201ada063d24bb00335 Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 3 Apr 2024 20:34:42 -0600 Subject: [PATCH 3/4] Update e2e snapshots --- ...oorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php | 4 ++-- ...oorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php index 431fa0eb..9118338a 100644 --- a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php +++ b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php @@ -2216,8 +2216,8 @@ { "debug_log": [ { - "count": "20", - "message": "PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in \\/var\\/www\\/html\\/wp-includes\\/formatting.php on line 3557" + "count": "14100", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." } ] } diff --git a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php index 6485016f..56007070 100644 --- a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php +++ b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php @@ -2214,7 +2214,12 @@ } }, { - "debug_log": [] + "debug_log": [ + { + "count": "13925", + "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." + } + ] } ] ]'; From 61ba25b7a7680854598ae8a630257f580210b126 Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Thu, 4 Apr 2024 11:19:52 -0300 Subject: [PATCH 4/4] Skip flaky tests --- ..._wprc_4ee1157429027befae37425348f5bd84__1.php | 16 ++++++++-------- ..._wprc_960168535790f3a7eff463fb11517d63__1.php | 12 ++++++------ ..._wprc_818ebdd6b04d0991fd37d3414ff14307__1.php | 16 ++++++++-------- ..._wprc_865de3b217a16a96d42609a9ca8ebcf0__1.php | 12 ++++++------ 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php index 9118338a..3d9f46bc 100644 --- a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php +++ b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woorc_php82_wprc_4ee1157429027befae37425348f5bd84__1.php @@ -31,7 +31,7 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 22 skipped, 0 failed, 308 passed, 330 total.", + "test_summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 25 skipped, 0 failed, 305 passed, 330 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", @@ -48,8 +48,8 @@ "numPendingTestSuites": 0, "numTotalTestSuites": 90, "numFailedTests": 0, - "numPassedTests": 308, - "numPendingTests": 22, + "numPassedTests": 305, + "numPendingTests": 25, "numTotalTests": 330, "testResults": [ { @@ -1814,11 +1814,11 @@ }, { "title": "can choose different shipping types in the checkout", - "status": "passed" + "status": "pending" }, { "title": "allows guest customer to place an order", - "status": "passed" + "status": "pending" }, { "title": "allows existing customer to place an order", @@ -1826,7 +1826,7 @@ }, { "title": "can create an account during checkout", - "status": "passed" + "status": "pending" } ] } @@ -2210,13 +2210,13 @@ } } ], - "summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 22 skipped, 0 failed, 308 passed, 330 total." + "summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 25 skipped, 0 failed, 305 passed, 330 total." } }, { "debug_log": [ { - "count": "14100", + "count": "13975", "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." } ] diff --git a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woostable_php82_wprc_960168535790f3a7eff463fb11517d63__1.php b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woostable_php82_wprc_960168535790f3a7eff463fb11517d63__1.php index 5cd721ed..02f6ef25 100644 --- a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woostable_php82_wprc_960168535790f3a7eff463fb11517d63__1.php +++ b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_php82_woostable_php82_wprc_960168535790f3a7eff463fb11517d63__1.php @@ -31,7 +31,7 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 19 skipped, 0 failed, 302 passed, 321 total.", + "test_summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 21 skipped, 0 failed, 300 passed, 321 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", @@ -48,8 +48,8 @@ "numPendingTestSuites": 0, "numTotalTestSuites": 81, "numFailedTests": 0, - "numPassedTests": 302, - "numPendingTests": 19, + "numPassedTests": 300, + "numPendingTests": 21, "numTotalTests": 321, "testResults": [ { @@ -1713,7 +1713,7 @@ }, { "title": "allows guest customer to place an order", - "status": "passed" + "status": "pending" }, { "title": "allows existing customer to place an order", @@ -1721,7 +1721,7 @@ }, { "title": "can create an account during checkout", - "status": "passed" + "status": "pending" } ] } @@ -2100,7 +2100,7 @@ } } ], - "summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 19 skipped, 0 failed, 302 passed, 321 total." + "summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 21 skipped, 0 failed, 300 passed, 321 total." } }, { diff --git a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php index 56007070..1496c7ec 100644 --- a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php +++ b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woorc_php74_wprc_818ebdd6b04d0991fd37d3414ff14307__1.php @@ -31,7 +31,7 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 22 skipped, 0 failed, 308 passed, 330 total.", + "test_summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 25 skipped, 0 failed, 305 passed, 330 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", @@ -48,8 +48,8 @@ "numPendingTestSuites": 0, "numTotalTestSuites": 90, "numFailedTests": 0, - "numPassedTests": 308, - "numPendingTests": 22, + "numPassedTests": 305, + "numPendingTests": 25, "numTotalTests": 330, "testResults": [ { @@ -1814,11 +1814,11 @@ }, { "title": "can choose different shipping types in the checkout", - "status": "passed" + "status": "pending" }, { "title": "allows guest customer to place an order", - "status": "passed" + "status": "pending" }, { "title": "allows existing customer to place an order", @@ -1826,7 +1826,7 @@ }, { "title": "can create an account during checkout", - "status": "passed" + "status": "pending" } ] } @@ -2210,13 +2210,13 @@ } } ], - "summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 22 skipped, 0 failed, 308 passed, 330 total." + "summary": "Test Suites: 0 skipped, 0 failed, 90 passed, 90 total | Tests: 25 skipped, 0 failed, 305 passed, 330 total." } }, { "debug_log": [ { - "count": "13925", + "count": "14150", "message": "Automattic\\\\WooCommerce\\\\Admin\\\\DataSourcePoller is deprecated since version 8.8.0! Use Automattic\\\\WooCommerce\\\\Admin\\\\RemoteSpecs\\\\DataSourcePoller instead." } ] diff --git a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woostable_php74_wprc_865de3b217a16a96d42609a9ca8ebcf0__1.php b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woostable_php74_wprc_865de3b217a16a96d42609a9ca8ebcf0__1.php index bc68878b..d1c54925 100644 --- a/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woostable_php74_wprc_865de3b217a16a96d42609a9ca8ebcf0__1.php +++ b/_tests/tests/__snapshots__/Wooe2eTest__test_woo_e2e_no_op_woostable_php74_wprc_865de3b217a16a96d42609a9ca8ebcf0__1.php @@ -31,7 +31,7 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 19 skipped, 0 failed, 302 passed, 321 total.", + "test_summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 21 skipped, 0 failed, 300 passed, 321 total.", "version": "Undefined", "update_complete": true, "ai_suggestion_status": "none", @@ -48,8 +48,8 @@ "numPendingTestSuites": 0, "numTotalTestSuites": 81, "numFailedTests": 0, - "numPassedTests": 302, - "numPendingTests": 19, + "numPassedTests": 300, + "numPendingTests": 21, "numTotalTests": 321, "testResults": [ { @@ -1713,7 +1713,7 @@ }, { "title": "allows guest customer to place an order", - "status": "passed" + "status": "pending" }, { "title": "allows existing customer to place an order", @@ -1721,7 +1721,7 @@ }, { "title": "can create an account during checkout", - "status": "passed" + "status": "pending" } ] } @@ -2100,7 +2100,7 @@ } } ], - "summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 19 skipped, 0 failed, 302 passed, 321 total." + "summary": "Test Suites: 0 skipped, 0 failed, 81 passed, 81 total | Tests: 21 skipped, 0 failed, 300 passed, 321 total." } }, {