Closed CGuether closed 3 months ago
The call to create a new user fails, if an application is assigned to this user: cy.createUser(testUser, ['business'], ['Cockpit']);
cy.createUser(testUser, ['business'], ['Cockpit']);
Reason is a faulty check for the query /application/applicationsByName/
/application/applicationsByName/
const applications = applicationResponse?.body?.applications || applicationResponse?.body; if (!applications || _.isArrayLike(applications)) { throwError( `Application ${appName} not found. No or empty response.` ); }
_.isArrayLike(applications) must be negated, otherwise an Error is thrown, if the applications exist.
_.isArrayLike(applications)
The call to create a new user fails, if an application is assigned to this user:
cy.createUser(testUser, ['business'], ['Cockpit']);
Reason is a faulty check for the query
/application/applicationsByName/
_.isArrayLike(applications)
must be negated, otherwise an Error is thrown, if the applications exist.