From 2fcab52e7e17b28bcd38c2f0f323e5c68f356538 Mon Sep 17 00:00:00 2001 From: Mole Date: Fri, 9 Oct 2020 10:07:04 +0200 Subject: [PATCH] Indent nested builders Makes it easier to see what calls belongs where --- .../cypress/integration/Content/content.ts | 82 +++++++++---------- .../cypress/integration/Settings/templates.ts | 2 +- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts index c63031532c..e52f109b1a 100644 --- a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts +++ b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts @@ -48,8 +48,8 @@ context('Content', () => { .withContentTypeAlias(rootDocTypeAlias) .withAction("saveNew") .addVariant() - .withName(nodeName) - .withSave(true) + .withName(nodeName) + .withSave(true) .done() .build(); @@ -60,8 +60,8 @@ context('Content', () => { .withAction("saveNew") .withParent(contentNode["id"]) .addVariant() - .withName(childNodeName) - .withSave(true) + .withName(childNodeName) + .withSave(true) .done() .build(); @@ -72,8 +72,8 @@ context('Content', () => { .withContentTypeAlias(rootDocTypeAlias) .withAction("saveNew") .addVariant() - .withName(anotherNodeName) - .withSave(true) + .withName(anotherNodeName) + .withSave(true) .done() .build(); @@ -132,8 +132,8 @@ context('Content', () => { .withContentTypeAlias(rootDocTypeAlias) .withAction("saveNew") .addVariant() - .withName(nodeName) - .withSave(true) + .withName(nodeName) + .withSave(true) .done() .build(); @@ -144,8 +144,8 @@ context('Content', () => { .withAction("saveNew") .withParent(contentNode["id"]) .addVariant() - .withName(childNodeName) - .withSave(true) + .withName(childNodeName) + .withSave(true) .done() .build(); @@ -156,8 +156,8 @@ context('Content', () => { .withContentTypeAlias(rootDocTypeAlias) .withAction("saveNew") .addVariant() - .withName(anotherNodeName) - .withSave(true) + .withName(anotherNodeName) + .withSave(true) .done() .build(); @@ -215,8 +215,8 @@ context('Content', () => { .withContentTypeAlias(generatedRootDocType["alias"]) .withAction("saveNew") .addVariant() - .withName(nodeName) - .withSave(true) + .withName(nodeName) + .withSave(true) .done() .build(); @@ -229,8 +229,8 @@ context('Content', () => { .withAction("saveNew") .withParent(parentId) .addVariant() - .withName(firstChildNodeName) - .withSave(true) + .withName(firstChildNodeName) + .withSave(true) .done() .build(); @@ -242,8 +242,8 @@ context('Content', () => { .withAction("saveNew") .withParent(parentId) .addVariant() - .withName(secondChildNodeName) - .withSave(true) + .withName(secondChildNodeName) + .withSave(true) .done() .build(); @@ -293,8 +293,8 @@ context('Content', () => { const rootContentNode = new ContentBuilder() .withContentTypeAlias(generatedRootDocType["alias"]) .addVariant() - .withName(initialNodeName) - .withSave(true) + .withName(initialNodeName) + .withSave(true) .done() .build(); @@ -348,9 +348,9 @@ context('Content', () => { .withName(rootDocTypeName) .withAllowAsRoot(true) .addGroup() - .addTextBoxProperty() - .withLabel(labelName) - .done() + .addTextBoxProperty() + .withLabel(labelName) + .done() .done() .build(); @@ -361,8 +361,8 @@ context('Content', () => { const rootContentNode = new ContentBuilder() .withContentTypeAlias(generatedRootDocType["alias"]) .addVariant() - .withName(nodeName) - .withSave(true) + .withName(nodeName) + .withSave(true) .done() .build(); @@ -402,8 +402,8 @@ context('Content', () => { .withContentTypeAlias(generatedRootDocType["alias"]) .withAction("saveNew") .addVariant() - .withName(nodeName) - .withSave(true) + .withName(nodeName) + .withSave(true) .done() .build(); @@ -440,8 +440,8 @@ context('Content', () => { .withContentTypeAlias(generatedRootDocType["alias"]) .withAction("saveNew") .addVariant() - .withName(nodeName) - .withSave(true) + .withName(nodeName) + .withSave(true) .done() .build(); @@ -480,8 +480,8 @@ context('Content', () => { const rootContentNode = new ContentBuilder() .withContentTypeAlias(generatedRootDocType["alias"]) .addVariant() - .withName(nodeName) - .withSave(true) + .withName(nodeName) + .withSave(true) .done() .build(); @@ -502,10 +502,10 @@ context('Content', () => { }); it('Content with contentpicker', () => { - const pickerDocTypeName = 'Content Picker Type'; + const pickerDocTypeName = 'Content picker doc type'; const groupName = 'ContentPickerGroup'; const alias = AliasHelper.toAlias(pickerDocTypeName); - const pickedDocTypeName = 'Picked Content Type'; + const pickedDocTypeName = 'Picked content document type'; const pickedNodeName = 'Content to pick'; cy.deleteAllContent(); @@ -518,8 +518,8 @@ context('Content', () => { .withName(pickedDocTypeName) .withAllowAsRoot(true) .addGroup() - .addTextBoxProperty() - .withAlias('text') + .addTextBoxProperty() + .withAlias('text') .done() .done() .build(); @@ -533,8 +533,8 @@ context('Content', () => { .withSave(true) .withPublish(true) .addProperty() - .withAlias('text') - .withValue('Acceptance test') + .withAlias('text') + .withValue('Acceptance test') .done() .withSave(true) .withPublish(true) @@ -550,10 +550,10 @@ context('Content', () => { .withAllowAsRoot(true) .withDefaultTemplate(alias) .addGroup() - .withName(groupName) - .addContentPickerProperty() - .withAlias('picker') - .done() + .withName(groupName) + .addContentPickerProperty() + .withAlias('picker') + .done() .done() .build(); diff --git a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/templates.ts b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/templates.ts index 39e303a486..da1adedaeb 100644 --- a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/templates.ts +++ b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/templates.ts @@ -19,7 +19,7 @@ context('Templates', () => { } it('Create template', () => { - const name = "Create Template test"; + const name = "Create template test"; cy.umbracoEnsureTemplateNameNotExists(name); createTemplate();