fix(promotion): check currency when computing actions for promotions (#13084)
* fix(promotion): check currency when computing actions for promotions * chore: fix tests * chore: fix more specs
This commit is contained in:
@@ -240,11 +240,6 @@ medusaIntegrationTestRunner({
|
||||
operator: "in",
|
||||
values: ["cus_test"],
|
||||
},
|
||||
{
|
||||
attribute: "currency_code",
|
||||
operator: "in",
|
||||
values: ["eur"],
|
||||
},
|
||||
],
|
||||
application_method: {
|
||||
type: "fixed",
|
||||
@@ -275,11 +270,6 @@ medusaIntegrationTestRunner({
|
||||
operator: "in",
|
||||
values: ["cus_test"],
|
||||
},
|
||||
{
|
||||
attribute: "currency_code",
|
||||
operator: "in",
|
||||
values: ["eur"],
|
||||
},
|
||||
],
|
||||
application_method: {
|
||||
type: "fixed",
|
||||
@@ -300,7 +290,7 @@ medusaIntegrationTestRunner({
|
||||
])
|
||||
|
||||
const cart = await cartModuleService.createCarts({
|
||||
currency_code: "eur",
|
||||
currency_code: "usd",
|
||||
customer_id: "cus_test",
|
||||
items: [
|
||||
{
|
||||
|
||||
@@ -191,11 +191,6 @@ medusaIntegrationTestRunner({
|
||||
operator: "in",
|
||||
values: ["cus_test"],
|
||||
},
|
||||
{
|
||||
attribute: "currency_code",
|
||||
operator: "in",
|
||||
values: ["eur"],
|
||||
},
|
||||
],
|
||||
application_method: {
|
||||
type: "fixed",
|
||||
@@ -225,11 +220,6 @@ medusaIntegrationTestRunner({
|
||||
operator: "in",
|
||||
values: ["cus_test"],
|
||||
},
|
||||
{
|
||||
attribute: "currency_code",
|
||||
operator: "in",
|
||||
values: ["eur"],
|
||||
},
|
||||
],
|
||||
application_method: {
|
||||
type: "fixed",
|
||||
@@ -249,7 +239,7 @@ medusaIntegrationTestRunner({
|
||||
})
|
||||
|
||||
const cart = await cartModuleService.createCarts({
|
||||
currency_code: "eur",
|
||||
currency_code: "usd",
|
||||
customer_id: "cus_test",
|
||||
items: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user