umbraco-cypress-testhelpers
Version:
Test helpers for making Cypress tests for Umbraco solutions
20 lines (15 loc) • 398 B
text/typescript
import CommandBase from './commandBase';
export default class SaveUserGroup extends CommandBase {
commandName = 'saveUserGroup';
method(userGroup) {
const cy = this.cy;
if (userGroup == null) {
return;
}
return cy.umbracoApiRequest(
this.relativeBackOfficePath + '/backoffice/umbracoapi/usergroups/PostSaveUserGroup',
'POST',
userGroup,
);
}
}