Indent nested builders
Makes it easier to see what calls belongs where
This commit is contained in:
@@ -48,8 +48,8 @@ context('Content', () => {
|
|||||||
.withContentTypeAlias(rootDocTypeAlias)
|
.withContentTypeAlias(rootDocTypeAlias)
|
||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(nodeName)
|
.withName(nodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -60,8 +60,8 @@ context('Content', () => {
|
|||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.withParent(contentNode["id"])
|
.withParent(contentNode["id"])
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(childNodeName)
|
.withName(childNodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -72,8 +72,8 @@ context('Content', () => {
|
|||||||
.withContentTypeAlias(rootDocTypeAlias)
|
.withContentTypeAlias(rootDocTypeAlias)
|
||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(anotherNodeName)
|
.withName(anotherNodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -132,8 +132,8 @@ context('Content', () => {
|
|||||||
.withContentTypeAlias(rootDocTypeAlias)
|
.withContentTypeAlias(rootDocTypeAlias)
|
||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(nodeName)
|
.withName(nodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -144,8 +144,8 @@ context('Content', () => {
|
|||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.withParent(contentNode["id"])
|
.withParent(contentNode["id"])
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(childNodeName)
|
.withName(childNodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -156,8 +156,8 @@ context('Content', () => {
|
|||||||
.withContentTypeAlias(rootDocTypeAlias)
|
.withContentTypeAlias(rootDocTypeAlias)
|
||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(anotherNodeName)
|
.withName(anotherNodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -215,8 +215,8 @@ context('Content', () => {
|
|||||||
.withContentTypeAlias(generatedRootDocType["alias"])
|
.withContentTypeAlias(generatedRootDocType["alias"])
|
||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(nodeName)
|
.withName(nodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -229,8 +229,8 @@ context('Content', () => {
|
|||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.withParent(parentId)
|
.withParent(parentId)
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(firstChildNodeName)
|
.withName(firstChildNodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -242,8 +242,8 @@ context('Content', () => {
|
|||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.withParent(parentId)
|
.withParent(parentId)
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(secondChildNodeName)
|
.withName(secondChildNodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -293,8 +293,8 @@ context('Content', () => {
|
|||||||
const rootContentNode = new ContentBuilder()
|
const rootContentNode = new ContentBuilder()
|
||||||
.withContentTypeAlias(generatedRootDocType["alias"])
|
.withContentTypeAlias(generatedRootDocType["alias"])
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(initialNodeName)
|
.withName(initialNodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -348,9 +348,9 @@ context('Content', () => {
|
|||||||
.withName(rootDocTypeName)
|
.withName(rootDocTypeName)
|
||||||
.withAllowAsRoot(true)
|
.withAllowAsRoot(true)
|
||||||
.addGroup()
|
.addGroup()
|
||||||
.addTextBoxProperty()
|
.addTextBoxProperty()
|
||||||
.withLabel(labelName)
|
.withLabel(labelName)
|
||||||
.done()
|
.done()
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -361,8 +361,8 @@ context('Content', () => {
|
|||||||
const rootContentNode = new ContentBuilder()
|
const rootContentNode = new ContentBuilder()
|
||||||
.withContentTypeAlias(generatedRootDocType["alias"])
|
.withContentTypeAlias(generatedRootDocType["alias"])
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(nodeName)
|
.withName(nodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -402,8 +402,8 @@ context('Content', () => {
|
|||||||
.withContentTypeAlias(generatedRootDocType["alias"])
|
.withContentTypeAlias(generatedRootDocType["alias"])
|
||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(nodeName)
|
.withName(nodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -440,8 +440,8 @@ context('Content', () => {
|
|||||||
.withContentTypeAlias(generatedRootDocType["alias"])
|
.withContentTypeAlias(generatedRootDocType["alias"])
|
||||||
.withAction("saveNew")
|
.withAction("saveNew")
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(nodeName)
|
.withName(nodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -480,8 +480,8 @@ context('Content', () => {
|
|||||||
const rootContentNode = new ContentBuilder()
|
const rootContentNode = new ContentBuilder()
|
||||||
.withContentTypeAlias(generatedRootDocType["alias"])
|
.withContentTypeAlias(generatedRootDocType["alias"])
|
||||||
.addVariant()
|
.addVariant()
|
||||||
.withName(nodeName)
|
.withName(nodeName)
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@@ -502,10 +502,10 @@ context('Content', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('Content with contentpicker', () => {
|
it('Content with contentpicker', () => {
|
||||||
const pickerDocTypeName = 'Content Picker Type';
|
const pickerDocTypeName = 'Content picker doc type';
|
||||||
const groupName = 'ContentPickerGroup';
|
const groupName = 'ContentPickerGroup';
|
||||||
const alias = AliasHelper.toAlias(pickerDocTypeName);
|
const alias = AliasHelper.toAlias(pickerDocTypeName);
|
||||||
const pickedDocTypeName = 'Picked Content Type';
|
const pickedDocTypeName = 'Picked content document type';
|
||||||
const pickedNodeName = 'Content to pick';
|
const pickedNodeName = 'Content to pick';
|
||||||
|
|
||||||
cy.deleteAllContent();
|
cy.deleteAllContent();
|
||||||
@@ -518,8 +518,8 @@ context('Content', () => {
|
|||||||
.withName(pickedDocTypeName)
|
.withName(pickedDocTypeName)
|
||||||
.withAllowAsRoot(true)
|
.withAllowAsRoot(true)
|
||||||
.addGroup()
|
.addGroup()
|
||||||
.addTextBoxProperty()
|
.addTextBoxProperty()
|
||||||
.withAlias('text')
|
.withAlias('text')
|
||||||
.done()
|
.done()
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
@@ -533,8 +533,8 @@ context('Content', () => {
|
|||||||
.withSave(true)
|
.withSave(true)
|
||||||
.withPublish(true)
|
.withPublish(true)
|
||||||
.addProperty()
|
.addProperty()
|
||||||
.withAlias('text')
|
.withAlias('text')
|
||||||
.withValue('Acceptance test')
|
.withValue('Acceptance test')
|
||||||
.done()
|
.done()
|
||||||
.withSave(true)
|
.withSave(true)
|
||||||
.withPublish(true)
|
.withPublish(true)
|
||||||
@@ -550,10 +550,10 @@ context('Content', () => {
|
|||||||
.withAllowAsRoot(true)
|
.withAllowAsRoot(true)
|
||||||
.withDefaultTemplate(alias)
|
.withDefaultTemplate(alias)
|
||||||
.addGroup()
|
.addGroup()
|
||||||
.withName(groupName)
|
.withName(groupName)
|
||||||
.addContentPickerProperty()
|
.addContentPickerProperty()
|
||||||
.withAlias('picker')
|
.withAlias('picker')
|
||||||
.done()
|
.done()
|
||||||
.done()
|
.done()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ context('Templates', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
it('Create template', () => {
|
it('Create template', () => {
|
||||||
const name = "Create Template test";
|
const name = "Create template test";
|
||||||
cy.umbracoEnsureTemplateNameNotExists(name);
|
cy.umbracoEnsureTemplateNameNotExists(name);
|
||||||
|
|
||||||
createTemplate();
|
createTemplate();
|
||||||
|
|||||||
Reference in New Issue
Block a user