umbraco-cypress-testhelpers
Version:
Test helpers for making Cypress tests for Umbraco solutions
20 lines (15 loc) • 390 B
text/typescript
import CommandBase from './commandBase';
export default class SaveDocumentType extends CommandBase {
commandName = 'saveDocumentType';
method(docType) {
const cy = this.cy;
if (docType == null) {
return;
}
return cy.umbracoApiRequest(
this.relativeBackOfficePath + '/backoffice/UmbracoApi/ContentType/PostSave',
'POST',
docType,
);
}
}