Skip to content

Commit 17468c9

Browse files
committed
update product on orders mock files
1 parent 51b1a71 commit 17468c9

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

WooCommerce/WooCommerceUITests/Mocks/mappings/jetpack-blogs/wc/orders/orders_3337_add_customer_details.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"urlPath": "/rest/v1.1/jetpack-blogs/161477129/rest-api/",
55
"bodyPatterns": [
66
{ "matches": ".*path=/wc/v3/orders/3337%26_method%3Dpost.*" },
7-
{ "contains": "%22product_id%22%3A2129" },
7+
{ "contains": "%22product_id%22%3A2130" },
88
{ "contains": "%22fee_lines%22%3A%5B%5D" },
99
{ "contains": "%22shipping_lines%22%3A%5B%5D" },
1010
{ "contains": "%22first_name%22%3A%22Mira%22" }
@@ -70,19 +70,19 @@
7070
"meta_data": [],
7171
"line_items": [{
7272
"id": 1,
73-
"name": "Akoya Pearl shades",
74-
"product_id": 2129,
73+
"name": "Black Coral shades",
74+
"product_id": 2130,
7575
"variation_id": 0,
7676
"quantity": 1,
7777
"tax_class": "",
78-
"subtotal": "110.00",
78+
"subtotal": "150.00",
7979
"subtotal_tax": "0.00",
80-
"total": "110.00",
80+
"total": "150.00",
8181
"total_tax": "0.00",
8282
"taxes": [],
8383
"meta_data": [],
8484
"sku": "",
85-
"price": 110
85+
"price": 150
8686
}],
8787
"tax_lines": [],
8888
"shipping_lines": [],

WooCommerce/WooCommerceUITests/Mocks/mappings/jetpack-blogs/wc/orders/orders_3337_add_fee.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"urlPath": "/rest/v1.1/jetpack-blogs/161477129/rest-api/",
55
"bodyPatterns": [
66
{ "matches": ".*path=/wc/v3/orders/3337%26_method%3Dpost.*" },
7-
{ "contains": "%22product_id%22%3A2129" },
7+
{ "contains": "%22product_id%22%3A2130" },
88
{ "contains": "%22name%22%3A%22Fee%22" },
99
{ "contains": "%22method_title%22%3A%22Flat%20Rate%22" },
1010
{ "contains": "%22first_name%22%3A%22Mira%22" }
@@ -70,19 +70,19 @@
7070
"meta_data": [],
7171
"line_items": [{
7272
"id": 1,
73-
"name": "Akoya Pearl shades",
74-
"product_id": 2129,
73+
"name": "Black Coral shades",
74+
"product_id": 2130,
7575
"variation_id": 0,
7676
"quantity": 1,
7777
"tax_class": "",
78-
"subtotal": "110.00",
78+
"subtotal": "150.00",
7979
"subtotal_tax": "0.00",
80-
"total": "110.00",
80+
"total": "150.00",
8181
"total_tax": "0.00",
8282
"taxes": [],
8383
"meta_data": [],
8484
"sku": "",
85-
"price": 110
85+
"price": 150
8686
}],
8787
"tax_lines": [],
8888
"shipping_lines": [{

WooCommerce/WooCommerceUITests/Mocks/mappings/jetpack-blogs/wc/orders/orders_3337_add_product.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"bodyPatterns": [
66
{ "matches": ".*path=/wc/v3/orders%26_method%3Dpost.*" },
77
{ "contains": "%22status%22%3A%22auto-draft%22" },
8-
{ "contains": "%22product_id%22%3A2129" }
8+
{ "contains": "%22product_id%22%3A2130" }
99
]
1010
},
1111
"response": {
@@ -68,19 +68,19 @@
6868
"meta_data": [],
6969
"line_items": [{
7070
"id": 1,
71-
"name": "Akoya Pearl shades",
72-
"product_id": 2129,
71+
"name": "Black Coral shades",
72+
"product_id": 2130,
7373
"variation_id": 0,
7474
"quantity": 1,
7575
"tax_class": "",
76-
"subtotal": "110.00",
76+
"subtotal": "150.00",
7777
"subtotal_tax": "0.00",
78-
"total": "110.00",
78+
"total": "150.00",
7979
"total_tax": "0.00",
8080
"taxes": [],
8181
"meta_data": [],
8282
"sku": "",
83-
"price": 110
83+
"price": 150
8484
}],
8585
"tax_lines": [],
8686
"shipping_lines": [],

WooCommerce/WooCommerceUITests/Mocks/mappings/jetpack-blogs/wc/orders/orders_3337_add_shipping.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"urlPath": "/rest/v1.1/jetpack-blogs/161477129/rest-api/",
55
"bodyPatterns": [
66
{ "matches": ".*path=/wc/v3/orders/3337%26_method%3Dpost.*" },
7-
{ "contains": "%22product_id%22%3A2129" },
7+
{ "contains": "%22product_id%22%3A2130" },
88
{ "contains": "%22fee_lines%22%3A%5B%5D" },
99
{ "contains": "%22method_title%22%3A%22Flat%20Rate%22" },
1010
{ "contains": "%22first_name%22%3A%22Mira%22" }
@@ -70,19 +70,19 @@
7070
"meta_data": [],
7171
"line_items": [{
7272
"id": 1,
73-
"name": "Akoya Pearl shades",
74-
"product_id": 2129,
73+
"name": "Black Coral shades",
74+
"product_id": 2130,
7575
"variation_id": 0,
7676
"quantity": 1,
7777
"tax_class": "",
78-
"subtotal": "110.00",
78+
"subtotal": "150.00",
7979
"subtotal_tax": "0.00",
80-
"total": "110.00",
80+
"total": "150.00",
8181
"total_tax": "0.00",
8282
"taxes": [],
8383
"meta_data": [],
8484
"sku": "",
85-
"price": 110
85+
"price": 150
8686
}],
8787
"tax_lines": [],
8888
"shipping_lines": [{

0 commit comments

Comments
 (0)