feat(fulfillment): shipping options context field (#7169)
This commit is contained in:
@@ -601,7 +601,7 @@ medusaIntegrationTestRunner({
|
||||
])
|
||||
|
||||
cart = await cartModuleService.retrieve(cart.id, {
|
||||
select: ["id", "region_id", "currency_code"],
|
||||
select: ["id", "region_id", "currency_code", "sales_channel_id"],
|
||||
})
|
||||
|
||||
await addToCartWorkflow(appContainer).run({
|
||||
@@ -707,7 +707,7 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(errors).toEqual([
|
||||
{
|
||||
action: "get-variant-price-sets",
|
||||
action: "confirm-inventory-step",
|
||||
handlerType: "invoke",
|
||||
error: expect.objectContaining({
|
||||
message: `Variants with IDs ${product.variants[0].id} do not have a price`,
|
||||
@@ -736,10 +736,11 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(errors).toEqual([
|
||||
{
|
||||
action: "validate-variants-exist",
|
||||
action: "use-remote-query",
|
||||
handlerType: "invoke",
|
||||
error: expect.objectContaining({
|
||||
message: `Variants with IDs prva_foo do not exist`,
|
||||
// TODO: Implement error message handler for Remote Query throw_if_key_not_found
|
||||
message: `productService id not found: prva_foo`,
|
||||
}),
|
||||
},
|
||||
])
|
||||
@@ -1280,7 +1281,7 @@ medusaIntegrationTestRunner({
|
||||
expect(updatedPaymentCollection).toEqual(
|
||||
expect.objectContaining({
|
||||
id: paymentCollection.id,
|
||||
amount: 4242,
|
||||
amount: 5000,
|
||||
})
|
||||
)
|
||||
|
||||
@@ -1879,13 +1880,9 @@ medusaIntegrationTestRunner({
|
||||
})
|
||||
|
||||
expect(errors).toEqual([
|
||||
{
|
||||
action: "get-shipping-option-price-sets",
|
||||
error: expect.objectContaining({
|
||||
message: `Shipping options with IDs ${shippingOption.id} do not have a price`,
|
||||
}),
|
||||
handlerType: "invoke",
|
||||
},
|
||||
expect.objectContaining({
|
||||
message: `Shipping options with IDs ${shippingOption.id} do not have a price`,
|
||||
}),
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
@@ -666,10 +666,7 @@ medusaIntegrationTestRunner({
|
||||
email: "tony@stark.com",
|
||||
sales_channel_id: salesChannel.id,
|
||||
})
|
||||
console.log(
|
||||
"updated.data.cart --- ",
|
||||
JSON.stringify(updated.data.cart, null, 4)
|
||||
)
|
||||
|
||||
expect(updated.status).toEqual(200)
|
||||
expect(updated.data.cart).toEqual(
|
||||
expect.objectContaining({
|
||||
|
||||
Reference in New Issue
Block a user