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