From 868d8deac2d95715184ed8ae759ab263f0bdc939 Mon Sep 17 00:00:00 2001 From: annakotiuk Date: Fri, 29 Nov 2024 19:17:54 +0100 Subject: [PATCH] FRW-8354: fix fixtures for b2b-mp --- .../dynamic-publish-and-synchronize-dms.json | 75 ++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/cypress/fixtures/b2b-mp/yves/product/dynamic-publish-and-synchronize-dms.json b/cypress/fixtures/b2b-mp/yves/product/dynamic-publish-and-synchronize-dms.json index 97ba0630..9b29cafb 100644 --- a/cypress/fixtures/b2b-mp/yves/product/dynamic-publish-and-synchronize-dms.json +++ b/cypress/fixtures/b2b-mp/yves/product/dynamic-publish-and-synchronize-dms.json @@ -10,18 +10,91 @@ "key": "locale", "arguments": { "id_locale": 66, "locale_name": "en_US" } }, + { + "type": "helper", + "name": "haveStore", + "key": "store", + "arguments": [{ "name": "TEST_STORE" }] + }, + { + "type": "helper", + "name": "haveCountry", + "key": "country" + }, { "type": "helper", "name": "haveCustomer", "key": "customer", "arguments": [{ "locale": "#locale", "password": "change123" }] }, + { + "type": "helper", + "name": "haveCustomerAddress", + "key": "address", + "arguments": [{ "fkCustomer": "#customer.id_customer", "fkCountry": "#country.id_country" }] + }, { "type": "helper", "name": "confirmCustomer", - "key": "confirmedCustomer", "arguments": ["#customer"] }, + { + "type": "builder", + "name": "MerchantProfileBuilder", + "key": "merchantProfile" + }, + { + "type": "helper", + "name": "haveMerchant", + "key": "merchant", + "arguments": [ + { + "merchantProfile": "#merchantProfile", + "isActive": true, + "status": "approved", + "storeRelation": { + "idStores": ["#store.id_store"] + } + } + ] + }, + { + "type": "helper", + "name": "haveCompany", + "key": "company", + "arguments": [{ "isActive": true, "status": "approved" }] + }, + + { + "type": "helper", + "name": "havePermissionByKey", + "key": "permission1", + "arguments": ["AddCartItemPermissionPlugin"] + }, + { + "type": "helper", + "name": "haveCompanyRoleWithPermissions", + "arguments": [{ "isDefault": true, "fkCompany": "#company.id_company" }, ["#permission1"]] + }, + { + "type": "helper", + "name": "haveCompanyBusinessUnit", + "key": "businessUnit", + "arguments": [{ "fkCompany": "#company.id_company" }] + }, + { + "type": "helper", + "name": "haveCompanyUser", + "key": "companyUser", + "arguments": [ + { + "customer": "#customer", + "fkCustomer": "#customer.id_customer", + "fkCompany": "#company.id_company", + "fkCompanyBusinessUnit": "#businessUnit.id_company_business_unit" + } + ] + }, { "type": "helper", "name": "haveUser",