Ensure that the template is deleted when creating a new documentType

This commit is contained in:
Nikolaj
2020-08-13 09:09:15 +02:00
parent cc696ade1c
commit e76ffc865c

View File

@@ -10,6 +10,7 @@ context('Document Types', () => {
const name = "Test document type";
cy.umbracoEnsureDocumentTypeNameNotExists(name);
cy.umbracoEnsureTemplateNameNotExists(name);
cy.umbracoSection('settings');
cy.get('li .umb-tree-root:contains("Settings")').should("be.visible");
@@ -44,6 +45,7 @@ context('Document Types', () => {
//Assert
cy.umbracoSuccessNotification().should('be.visible');
cy.umbracoEnsureTemplateNameNotExists(name);
//Clean up
cy.umbracoEnsureDocumentTypeNameNotExists(name);