Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ describe(
],
},
(): void => {
if (Cypress.env('repositoryId') !== 'suite') {
it.skip('skipped because tests run only for suite', () => {});
if (!['suite', 'b2b-mp'].includes(Cypress.env('repositoryId'))) {
it.skip('skipped because tests run only for suite and b2b-mp', () => {});
return;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"data": {
"type": "dynamic-fixtures",
"attributes": {
"synchronize": false,
"operations": [
{
"type": "helper",
"name": "haveUser",
"key": "rootUser",
"arguments": [{ "password": "change123" }]
},
{
"type": "helper",
"name": "addUserToGroup",
"arguments": ["#rootUser.id_user", 1]
},
{
"type": "helper",
"name": "haveCustomer",
"key": "customer",
"arguments": [{}]
},
{
"type": "helper",
"name": "haveCustomer",
"key": "customerToKeep",
"arguments": [{}]
},
{
"type": "helper",
"name": "haveCompany",
"key": "company",
"arguments": [{ "status": "approved", "is_active": true }]
},
{
"type": "helper",
"name": "haveCompanyBusinessUnit",
"key": "businessUnit",
"arguments": [{ "fk_company": "#company.id_company" }]
},
{
"type": "helper",
"name": "haveCompany",
"key": "companyToKeep",
"arguments": [{ "status": "approved", "is_active": true }]
},
{
"type": "helper",
"name": "haveCompanyBusinessUnit",
"key": "businessUnitToKeep",
"arguments": [{ "fk_company": "#companyToKeep.id_company" }]
},
{
"type": "helper",
"name": "haveCustomerGroup",
"key": "customerGroupWithMemberships",
"arguments": [
{
"customerAssignment": {
"idsCustomerToAssign": ["#customer.id_customer", "#customerToKeep.id_customer"]
},
"companyAssignment": {
"idsCompanyToAssign": ["#company.id_company", "#companyToKeep.id_company"]
},
"companyBusinessUnitAssignment": {
"idsCompanyBusinessUnitToAssign": [
"#businessUnit.id_company_business_unit",
"#businessUnitToKeep.id_company_business_unit"
]
}
}
]
},
{
"type": "builder",
"name": "CustomerGroupBuilder",
"key": "newCustomerGroup"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"defaultPassword": "change123"
}
3 changes: 3 additions & 0 deletions cypress/support/utils/inversify/inversify.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ const b2bMpMappings: BindingsMap = {
[REPOSITORIES.CategoryCreateRepository]: B2bMpCategoryCreateRepository,
[REPOSITORIES.CategoryEditRepository]: B2bMpCategoryEditRepository,
[REPOSITORIES.CategoryReSortRepository]: B2bMpCategoryReSortRepository,
[REPOSITORIES.CustomerGroupFormRepository]: SuiteCustomerGroupFormRepository,
[REPOSITORIES.CustomerGroupViewRepository]: SuiteCustomerGroupViewRepository,
[REPOSITORIES.CustomerGroupListRepository]: SuiteCustomerGroupListRepository,
};

const mappings = {
Expand Down
Loading