File tree Expand file tree Collapse file tree 2 files changed +12
-54
lines changed
WooCommerce/WooCommerceUITests/Mocks/mappings/jetpack-blogs/wc/orders Expand file tree Collapse file tree 2 files changed +12
-54
lines changed Original file line number Diff line number Diff line change 22 "request" : {
33 "method" : " POST" ,
44 "urlPath" : " /rest/v1.1/jetpack-blogs/161477129/rest-api/" ,
5- "bodyPatterns" : [ {
6- "matches" : " .*path=/wc/v3/orders/3337%26_method%3Dpost.*" ,
7- "equalToJson" : {
8- "line_items" : [{
9- "quantity" : 1 ,
10- "total" : " 110.00" ,
11- "subtotal" : " 110.00" ,
12- "id" : 1 ,
13- "product_id" : 2129
14- }],
15- "fee_lines" : [],
16- "shipping_lines" : [],
17- "billing" : {
18- "first_name" : " Mira" ,
19- "last_name" : " " ,
20- "company" : " " ,
21- "address_1" : " " ,
22- "address_2" : " " ,
23- "city" : " " ,
24- "state" : " " ,
25- "postcode" : " " ,
26- "country" : " " ,
27- "email" : null ,
28- "phone" : " "
29- },
30- "shipping" : {
31- "first_name" : " Mira" ,
32- "last_name" : " " ,
33- "company" : " " ,
34- "address_1" : " " ,
35- "address_2" : " " ,
36- "city" : " " ,
37- "state" : " " ,
38- "postcode" : " " ,
39- "country" : " " ,
40- "email" : null ,
41- "phone" : " "
42- }
43- }
44- } ]
5+ "bodyPatterns" : [
6+ { "matches" : " .*path=/wc/v3/orders/3337%26_method%3Dpost.*" },
7+ { "contains" : " %22product_id%22%3A2129" },
8+ { "contains" : " %22fee_lines%22%3A%5B%5D" },
9+ { "contains" : " %22shipping_lines%22%3A%5B%5D" },
10+ { "contains" : " %22first_name%22%3A%22Mira%22" }
11+ ]
4512 },
4613 "response" : {
4714 "status" : 200 ,
Original file line number Diff line number Diff line change 22 "request" : {
33 "method" : " POST" ,
44 "urlPath" : " /rest/v1.1/jetpack-blogs/161477129/rest-api/" ,
5- "bodyPatterns" : [ {
6- "matches" : " .*path=/wc/v3/orders%26_method%3Dpost.*" ,
7- "equalToJson" : {
8- "line_items" : [{
9- "quantity" : 1 ,
10- "id" : 0 ,
11- "product_id" : 2129
12- }],
13- "customer_note" : " " ,
14- "status" : " auto-draft" ,
15- "fee_lines" : [],
16- "shipping_lines" : []
17- }
18- } ]
5+ "bodyPatterns" : [
6+ { "matches" : " .*path=/wc/v3/orders%26_method%3Dpost.*" },
7+ { "contains" : " %22status%22%3A%22auto-draft%22" },
8+ { "contains" : " %22product_id%22%3A2129" }
9+ ]
1910 },
2011 "response" : {
2112 "status" : 200 ,
You can’t perform that action at this time.
0 commit comments