Do not override `admin_update_order_base` in `merchant/add-order.js` perf test to prevent duplicate order IDs
This commit is contained in:
parent
82e3eb6701
commit
79b05ad71c
|
@ -50,6 +50,7 @@ let admin_created_order_assert;
|
||||||
let admin_open_order_base;
|
let admin_open_order_base;
|
||||||
let admin_open_order_assert;
|
let admin_open_order_assert;
|
||||||
let admin_update_order_base;
|
let admin_update_order_base;
|
||||||
|
let admin_update_order;
|
||||||
let admin_update_order_id;
|
let admin_update_order_id;
|
||||||
let admin_update_order_params;
|
let admin_update_order_params;
|
||||||
let admin_update_order_assert;
|
let admin_update_order_assert;
|
||||||
|
@ -375,14 +376,15 @@ export function addOrder() {
|
||||||
] );
|
] );
|
||||||
|
|
||||||
if ( cot_status === true ) {
|
if ( cot_status === true ) {
|
||||||
admin_update_order_base = `${ admin_update_order_base }&id=${ hpos_post_id }`;
|
admin_update_order = `${ admin_update_order_base }&id=${ hpos_post_id }`;
|
||||||
admin_update_order_params = cotOrderParams.toString();
|
admin_update_order_params = cotOrderParams.toString();
|
||||||
} else {
|
} else {
|
||||||
|
admin_update_order = admin_update_order_base;
|
||||||
admin_update_order_params = orderParams.toString();
|
admin_update_order_params = orderParams.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
response = http.post(
|
response = http.post(
|
||||||
`${ base_url }/wp-admin/${ admin_update_order_base }`,
|
`${ base_url }/wp-admin/${ admin_update_order }`,
|
||||||
admin_update_order_params.toString(),
|
admin_update_order_params.toString(),
|
||||||
{
|
{
|
||||||
headers: requestHeaders,
|
headers: requestHeaders,
|
||||||
|
|
Loading…
Reference in New Issue