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 SaveCodeFile extends CommandBase {
commandName = 'saveCodeFile';
method(codeFile) {
const cy = this.cy;
if (codeFile == null) {
return;
}
return cy.umbracoApiRequest(
this.relativeBackOfficePath + '/backoffice/UmbracoApi/CodeFile/PostSave',
'POST',
codeFile,
);
}
}