feat(core-flows): calculate SO price on cart ops (#10563)
**What** - calculate the shipping option price when creating a shipping method - calculate the shipping option price when refreshing cart - add testing for calculated SO flow - fix validation on calculated SO creation - add manual fulfillment provider for testing - add `from_location` to calculation context --- RESOLVES CMRC-778 RESOLVES CMRC-602 RESOLVES SUP-136
This commit is contained in:
@@ -31,12 +31,18 @@ medusaIntegrationTestRunner({
|
||||
)
|
||||
|
||||
expect(response.status).toEqual(200)
|
||||
expect(response.data.fulfillment_providers).toEqual([
|
||||
expect.objectContaining({
|
||||
id: "manual_test-provider",
|
||||
is_enabled: true,
|
||||
}),
|
||||
])
|
||||
expect(response.data.fulfillment_providers).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
id: "manual_test-provider",
|
||||
is_enabled: true,
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: "manual-calculated_test-provider-calculated",
|
||||
is_enabled: true,
|
||||
}),
|
||||
])
|
||||
)
|
||||
})
|
||||
|
||||
it("should list all fulfillment providers scoped by stock location", async () => {
|
||||
|
||||
Reference in New Issue
Block a user