remove attempts to add new profile in tests
MODIFY
test/api/BillingTest.ts
test/api/BillingTest.ts
@@ -1005,7 +1005,7 @@ describe('Billing Service', function() {
describe('Where NON-billable basic user', () => {
// eslint-disable-next-line @typescript-eslint/require-await
before(async () => {
- testData.userContext = testData.tenantContext.getUserContext({ id: ContextDefinition.USER_CONTEXTS.BASIC_NON_BILLABLE_USER.id });
+ testData.userContext = testData.tenantContext.getUserContext(ContextDefinition.USER_CONTEXTS.BASIC_USER);
assert(testData.userContext, 'User context cannot be null');
testData.userService = new CentralServerService(
testData.tenantContext.getTenant().subdomain,

MODIFY
test/api/context/ContextDefinition.ts
test/api/context/ContextDefinition.ts
@@ -75,10 +75,7 @@ export default class ContextDefinition {
role: 'A', status: 'A', assignedToSite: false, withTags: true, issuer: true
},
BASIC_USER: {
- role: 'B', status: 'A', assignedToSite: true, withTags: true, issuer: true, id: '5ce249a1a39ae1c056c123ab'
- },
- BASIC_NON_BILLABLE_USER: {
- role: 'B', status: 'A', assignedToSite: true, withTags: true, issuer: true, id: '5ce249a1a39ae1c056c123ff'
+ role: 'B', status: 'A', assignedToSite: true, withTags: true, issuer: true
},
BASIC_USER_UNASSIGNED: {
role: 'B', status: 'A', assignedToSite: false, withTags: true, issuer: true

remove attempts to add new profile in tests