Skip to content

Commit e20e001

Browse files
authored
V14 QA Added skip to the failing test due to UI changes (#16076)
* Added skip to the failing test due to UI changes * Added skip tests * Added skip tests
1 parent 55f68f4 commit e20e001

5 files changed

Lines changed: 62 additions & 62 deletions

File tree

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/Script/Script.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.describe('Script tests', () => {
1515
await umbracoApi.script.ensureNameNotExists(scriptName);
1616
});
1717

18-
test('can create a empty script', async ({umbracoApi, umbracoUi}) => {
18+
test.skip('can create a empty script', async ({umbracoApi, umbracoUi}) => {
1919
// Act
2020
await umbracoUi.script.clickActionsMenuAtRoot();
2121
await umbracoUi.script.clickCreateButton();
@@ -30,7 +30,7 @@ test.describe('Script tests', () => {
3030
await umbracoUi.script.isScriptTreeItemVisibile(scriptName);
3131
});
3232

33-
test('can create a script with content', async ({umbracoApi, umbracoUi}) => {
33+
test.skip('can create a script with content', async ({umbracoApi, umbracoUi}) => {
3434
// Arrange
3535
const scriptContent = 'TestContent';
3636

@@ -51,7 +51,7 @@ test.describe('Script tests', () => {
5151
await umbracoUi.script.isScriptTreeItemVisibile(scriptName);
5252
});
5353

54-
test('can update a script', async ({umbracoApi, umbracoUi}) => {
54+
test.skip('can update a script', async ({umbracoApi, umbracoUi}) => {
5555
// Arrange
5656
await umbracoApi.script.create(scriptName, 'test');
5757
const updatedScriptContent = 'const test = {\r\n script = \u0022Test\u0022,\r\n extension = \u0022.js\u0022,\r\n scriptPath: function() {\r\n return this.script \u002B this.extension;\r\n }\r\n};\r\n';
@@ -67,7 +67,7 @@ test.describe('Script tests', () => {
6767
expect(updatedScript.content).toBe(updatedScriptContent);
6868
});
6969

70-
test('can delete a script', async ({umbracoApi, umbracoUi}) => {
70+
test.skip('can delete a script', async ({umbracoApi, umbracoUi}) => {
7171
// Arrange
7272
await umbracoApi.script.create(scriptName, '');
7373

@@ -82,7 +82,7 @@ test.describe('Script tests', () => {
8282
await umbracoUi.script.isScriptTreeItemVisibile(scriptName, false);
8383
});
8484

85-
test('can rename a script', async ({umbracoApi, umbracoUi}) => {
85+
test.skip('can rename a script', async ({umbracoApi, umbracoUi}) => {
8686
// Arrange
8787
const wrongScriptName = 'WrongTestScript.js';
8888
await umbracoApi.script.create(wrongScriptName, '');

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/Script/ScriptFolder.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.describe('Script tests', () => {
1515
await umbracoApi.script.ensureNameNotExists(scriptFolderName);
1616
});
1717

18-
test('can create a folder', async ({umbracoApi, umbracoUi}) => {
18+
test.skip('can create a folder', async ({umbracoApi, umbracoUi}) => {
1919
// Act
2020
await umbracoUi.script.clickActionsMenuAtRoot();
2121
await umbracoUi.script.createFolder(scriptFolderName);
@@ -27,7 +27,7 @@ test.describe('Script tests', () => {
2727
await umbracoUi.script.isScriptTreeItemVisibile(scriptFolderName);
2828
});
2929

30-
test('can delete a folder', async ({umbracoApi, umbracoUi}) => {
30+
test.skip('can delete a folder', async ({umbracoApi, umbracoUi}) => {
3131
// Arrange
3232
await umbracoApi.script.createFolder(scriptFolderName);
3333

@@ -42,7 +42,7 @@ test.describe('Script tests', () => {
4242
await umbracoUi.script.isScriptTreeItemVisibile(scriptFolderName, false);
4343
});
4444

45-
test('can create a script in a folder', async ({umbracoApi, umbracoUi}) => {
45+
test.skip('can create a script in a folder', async ({umbracoApi, umbracoUi}) => {
4646
// Arrange
4747
await umbracoApi.script.createFolder(scriptFolderName);
4848
const scriptContent = 'const test = {\r\n script = \u0022Test\u0022,\r\n extension = \u0022.js\u0022,\r\n scriptPath: function() {\r\n return this.script \u002B this.extension;\r\n }\r\n};\r\n';
@@ -67,7 +67,7 @@ test.describe('Script tests', () => {
6767
await umbracoUi.script.isScriptTreeItemVisibile(scriptName);
6868
});
6969

70-
test('can create a folder in a folder', async ({umbracoApi, umbracoUi}) => {
70+
test.skip('can create a folder in a folder', async ({umbracoApi, umbracoUi}) => {
7171
// Arrange
7272
await umbracoApi.script.createFolder(scriptFolderName);
7373
const childFolderName = 'childFolderName';
@@ -86,7 +86,7 @@ test.describe('Script tests', () => {
8686
await umbracoUi.script.isScriptTreeItemVisibile(childFolderName);
8787
});
8888

89-
test('can create a folder in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
89+
test.skip('can create a folder in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
9090
// Arrange
9191
const childFolderName = 'ChildFolderName';
9292
const childOfChildFolderName = 'ChildOfChildFolderName';
@@ -108,7 +108,7 @@ test.describe('Script tests', () => {
108108
await umbracoUi.script.isScriptTreeItemVisibile(childOfChildFolderName);
109109
});
110110

111-
test('can create a script in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
111+
test.skip('can create a script in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
112112
// Arrange
113113
const childFolderName = 'ChildFolderName';
114114
await umbracoApi.script.createFolder(scriptFolderName);

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/Stylesheet/Stylesheet.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test.describe('Stylesheets tests', () => {
1717
await umbracoApi.stylesheet.ensureNameNotExists(stylesheetName);
1818
});
1919

20-
test('can create a empty stylesheet', async ({umbracoApi, umbracoUi}) => {
20+
test.skip('can create a empty stylesheet', async ({umbracoApi, umbracoUi}) => {
2121
// Act
2222
await umbracoUi.stylesheet.clickActionsMenuAtRoot();
2323
await umbracoUi.stylesheet.clickCreateButton();
@@ -32,7 +32,7 @@ test.describe('Stylesheets tests', () => {
3232
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(stylesheetName);
3333
});
3434

35-
test('can create a stylesheet with content', async ({umbracoApi, umbracoUi}) => {
35+
test.skip('can create a stylesheet with content', async ({umbracoApi, umbracoUi}) => {
3636
// Arrange
3737
const stylesheetContent = 'TestContent';
3838

@@ -53,7 +53,7 @@ test.describe('Stylesheets tests', () => {
5353
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(stylesheetName);
5454
});
5555

56-
test('can create a new Rich Text Editor stylesheet file', async ({umbracoApi, umbracoUi}) => {
56+
test.skip('can create a new Rich Text Editor stylesheet file', async ({umbracoApi, umbracoUi}) => {
5757
// Arrange
5858
const stylesheetContent = '/**umb_name:' + styleName + '*/\n' + styleSelector + ' {\n\t' + styleStyles + '\n}';
5959

@@ -74,7 +74,7 @@ test.describe('Stylesheets tests', () => {
7474
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(stylesheetName);
7575
});
7676

77-
test('can update a stylesheet', async ({umbracoApi, umbracoUi}) => {
77+
test.skip('can update a stylesheet', async ({umbracoApi, umbracoUi}) => {
7878
// Arrange
7979
const stylesheetContent = '/**umb_name:' + styleName + '*/\n' + styleSelector + ' {\n\t' + styleStyles + '\n}';
8080
await umbracoApi.stylesheet.create(stylesheetName, '', '/');
@@ -91,7 +91,7 @@ test.describe('Stylesheets tests', () => {
9191
expect(stylesheetData.content).toEqual(stylesheetContent);
9292
});
9393

94-
test('can delete a stylesheet', async ({umbracoApi, umbracoUi}) => {
94+
test.skip('can delete a stylesheet', async ({umbracoApi, umbracoUi}) => {
9595
// Arrange
9696
await umbracoApi.stylesheet.create(stylesheetName, '', '/');
9797

@@ -106,7 +106,7 @@ test.describe('Stylesheets tests', () => {
106106
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(stylesheetName, false);
107107
});
108108

109-
test('can rename a stylesheet', async ({umbracoApi, umbracoUi}) => {
109+
test.skip('can rename a stylesheet', async ({umbracoApi, umbracoUi}) => {
110110
// Arrange
111111
const wrongStylesheetName = 'WrongStylesheetName.css';
112112
await umbracoApi.stylesheet.create(wrongStylesheetName, '', '/');
@@ -122,7 +122,7 @@ test.describe('Stylesheets tests', () => {
122122
expect(await umbracoApi.stylesheet.doesNameExist(wrongStylesheetName)).toBeFalsy();
123123
});
124124

125-
test('can edit rich text editor styles', async ({umbracoApi, umbracoUi}) => {
125+
test.skip('can edit rich text editor styles', async ({umbracoApi, umbracoUi}) => {
126126
// Arrange
127127
const newStyleName = 'TestNewStyleName';
128128
const newStyleSelector = 'h2';
@@ -143,7 +143,7 @@ test.describe('Stylesheets tests', () => {
143143
expect(stylesheetData.content).toEqual(newStylesheetContent);
144144
});
145145

146-
test('can remove rich text editor styles', async ({umbracoApi, umbracoUi}) => {
146+
test.skip('can remove rich text editor styles', async ({umbracoApi, umbracoUi}) => {
147147
// Arrange
148148
const stylesheetContent = '/**umb_name:' + styleName + '*/\n' + styleSelector + ' {\n\t' + styleStyles + '\n}';
149149
await umbracoApi.stylesheet.create(stylesheetName, stylesheetContent, '/');

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/Stylesheet/StylesheetFolder.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.describe('Stylesheets tests', () => {
1515
await umbracoApi.stylesheet.ensureNameNotExists(stylesheetFolderName);
1616
});
1717

18-
test('can create a folder', async ({umbracoApi, umbracoUi}) => {
18+
test.skip('can create a folder', async ({umbracoApi, umbracoUi}) => {
1919
// Act
2020
await umbracoUi.stylesheet.clickActionsMenuAtRoot();
2121
await umbracoUi.stylesheet.createFolder(stylesheetFolderName);
@@ -27,7 +27,7 @@ test.describe('Stylesheets tests', () => {
2727
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(stylesheetFolderName);
2828
});
2929

30-
test('can delete a folder', async ({umbracoApi, umbracoUi}) => {
30+
test.skip('can delete a folder', async ({umbracoApi, umbracoUi}) => {
3131
// Arrange
3232
await umbracoApi.stylesheet.createFolder(stylesheetFolderName, '');
3333

@@ -42,7 +42,7 @@ test.describe('Stylesheets tests', () => {
4242
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(stylesheetFolderName, false);
4343
});
4444

45-
test('can create a folder in a folder', async ({umbracoApi, umbracoUi}) => {
45+
test.skip('can create a folder in a folder', async ({umbracoApi, umbracoUi}) => {
4646
// Arrange
4747
await umbracoApi.stylesheet.createFolder(stylesheetFolderName);
4848
const childFolderName = 'ChildFolderName';
@@ -61,7 +61,7 @@ test.describe('Stylesheets tests', () => {
6161
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(childFolderName);
6262
});
6363

64-
test('can create a folder in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
64+
test.skip('can create a folder in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
6565
// Arrange
6666
const childFolderName = 'ChildFolderName';
6767
const childOfChildFolderName = 'ChildOfChildFolderName';
@@ -83,7 +83,7 @@ test.describe('Stylesheets tests', () => {
8383
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(childOfChildFolderName);
8484
});
8585

86-
test('can create a stylesheet in a folder', async ({umbracoApi, umbracoUi}) => {
86+
test.skip('can create a stylesheet in a folder', async ({umbracoApi, umbracoUi}) => {
8787
// Arrange
8888
await umbracoApi.stylesheet.createFolder(stylesheetFolderName);
8989
const stylesheetContent = 'TestContent';
@@ -108,7 +108,7 @@ test.describe('Stylesheets tests', () => {
108108
await umbracoUi.stylesheet.isStylesheetTreeItemVisibile(stylesheetName);
109109
});
110110

111-
test('can create a stylesheet in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
111+
test.skip('can create a stylesheet in a folder in a folder', async ({umbracoApi, umbracoUi}) => {
112112
// Arrange
113113
const childFolderName = 'ChildFolderName';
114114
await umbracoApi.stylesheet.createFolder(stylesheetFolderName);

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/Template/Templates.spec.ts

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.describe('Template tests', () => {
1515
await umbracoApi.template.ensureNameNotExists(templateName);
1616
});
1717

18-
test('can create a template', async ({umbracoApi, umbracoUi}) => {
18+
test.skip('can create a template', async ({umbracoApi, umbracoUi}) => {
1919
// Act
2020
await umbracoUi.template.clickActionsMenuAtRoot();
2121
await umbracoUi.template.clickCreateButton();
@@ -29,7 +29,7 @@ test.describe('Template tests', () => {
2929
await umbracoUi.template.isTemplateTreeItemVisibile(templateName);
3030
});
3131

32-
test('can update content of a template', async ({umbracoApi, umbracoUi}) => {
32+
test.skip('can update content of a template', async ({umbracoApi, umbracoUi}) => {
3333
// Arrange
3434
const updatedTemplateContent =
3535
defaultTemplateContent + '\r\n' + '<p>AcceptanceTests</p>';
@@ -48,7 +48,7 @@ test.describe('Template tests', () => {
4848
expect(updatedTemplate.content).toBe(updatedTemplateContent);
4949
});
5050

51-
test('can rename a template', async ({umbracoApi, umbracoUi}) => {
51+
test.skip('can rename a template', async ({umbracoApi, umbracoUi}) => {
5252
// Arrange
5353
const wrongTemplateName = 'WrongTemplateName';
5454
const templateAlias = AliasHelper.toAlias(wrongTemplateName);
@@ -67,7 +67,7 @@ test.describe('Template tests', () => {
6767
expect(templateData.name).toBe(templateName);
6868
});
6969

70-
test('can delete a template', async ({umbracoApi, umbracoUi}) => {
70+
test.skip('can delete a template', async ({umbracoApi, umbracoUi}) => {
7171
// Arrange
7272
await umbracoApi.template.createDefaultTemplate(templateName);
7373

@@ -82,7 +82,7 @@ test.describe('Template tests', () => {
8282
await umbracoUi.template.isTemplateTreeItemVisibile(templateName, false);
8383
});
8484

85-
test('can set a template as master template', async ({umbracoApi, umbracoUi}) => {
85+
test.skip('can set a template as master template', async ({umbracoApi, umbracoUi}) => {
8686
// Arrange
8787
const childTemplateName = 'ChildTemplate';
8888
await umbracoApi.template.ensureNameNotExists(childTemplateName);
@@ -108,7 +108,7 @@ test.describe('Template tests', () => {
108108
await umbracoApi.template.ensureNameNotExists(childTemplateName);
109109
});
110110

111-
test('can remove a master template', async ({umbracoApi, umbracoUi}) => {
111+
test.skip('can remove a master template', async ({umbracoApi, umbracoUi}) => {
112112
// Arrange
113113
const childTemplateName = 'ChildTemplate';
114114
const templateAlias = AliasHelper.toAlias(templateName);
@@ -173,7 +173,7 @@ test.describe('Template tests', () => {
173173
expect(templateData.content).toBe(expectedTemplateContent);
174174
});
175175

176-
test('can use query builder with Where statement for a template', async ({umbracoApi, umbracoUi}) => {
176+
test.skip('can use query builder with Where statement for a template', async ({umbracoApi, umbracoUi}) => {
177177
// Arrange
178178
//Arrange
179179
const propertyAliasValue = 'Name';
@@ -214,7 +214,7 @@ test.describe('Template tests', () => {
214214
expect(templateData.content).toBe(expectedTemplateContent);
215215
});
216216

217-
test('can insert sections - render child template into a template', async ({umbracoApi, umbracoUi}) => {
217+
test.skip('can insert sections - render child template into a template', async ({umbracoApi, umbracoUi}) => {
218218
// Arrange
219219
const sectionType = 'Render child template';
220220
const insertedContent = '@RenderBody()';
@@ -233,7 +233,7 @@ test.describe('Template tests', () => {
233233
expect(templateData.content).toBe(templateContent);
234234
});
235235

236-
test('can insert sections - render a named section into a template', async ({umbracoApi, umbracoUi}) => {
236+
test.skip('can insert sections - render a named section into a template', async ({umbracoApi, umbracoUi}) => {
237237
// Arrange
238238
const sectionType = 'Render a named section';
239239
const sectionName = 'TestSectionName';
@@ -253,7 +253,7 @@ test.describe('Template tests', () => {
253253
expect(templateData.content).toBe(templateContent);
254254
});
255255

256-
test('can insert sections - define a named section into a template', async ({umbracoApi, umbracoUi}) => {
256+
test.skip('can insert sections - define a named section into a template', async ({umbracoApi, umbracoUi}) => {
257257
// Arrange
258258
const sectionType = 'Define a named section';
259259
const sectionName = 'TestSectionName';
@@ -273,7 +273,7 @@ test.describe('Template tests', () => {
273273
expect(templateData.content).toBe(templateContent);
274274
});
275275

276-
test('can insert dictionary item into a template', async ({umbracoApi, umbracoUi}) => {
276+
test.skip('can insert dictionary item into a template', async ({umbracoApi, umbracoUi}) => {
277277
// Arrange
278278
await umbracoApi.template.createDefaultTemplate(templateName);
279279
const dictionaryName = 'TestDictionary';
@@ -296,7 +296,7 @@ test.describe('Template tests', () => {
296296
await umbracoApi.dictionary.ensureNameNotExists(dictionaryName);
297297
});
298298

299-
test('can insert partial view into a template', async ({umbracoApi, umbracoUi}) => {
299+
test.skip('can insert partial view into a template', async ({umbracoApi, umbracoUi}) => {
300300
// Arrange
301301
await umbracoApi.template.createDefaultTemplate(templateName);
302302
const partialViewName = 'TestPartialView';
@@ -317,7 +317,7 @@ test.describe('Template tests', () => {
317317
expect(templateData.content).toBe(templateContent);
318318
});
319319

320-
test('can insert value into a template', async ({umbracoApi, umbracoUi}) => {
320+
test.skip('can insert value into a template', async ({umbracoApi, umbracoUi}) => {
321321
// Arrange
322322
await umbracoApi.template.createDefaultTemplate(templateName);
323323
const systemFieldValue = 'createDate';
@@ -335,31 +335,31 @@ test.describe('Template tests', () => {
335335
expect(templateData.content).toBe(templateContent);
336336
});
337337

338-
// TODO: Remove skip when the front-end is ready. Currently the returned items count is not updated after choosing the root content.
339-
test.skip('can show returned items in query builder ', async ({umbracoApi, umbracoUi}) => {
340-
//Arrange
341-
// Create content at root with a child
342-
const documentTypeName = 'ParentDocumentType';
343-
const childDocumentTypeName = 'ChildDocumentType';
344-
const contentName = 'ContentName';
345-
const childContentName = 'ChildContentName';
346-
const childDocumentTypeId = await umbracoApi.documentType.createDefaultDocumentTypeWithAllowAsRoot(childDocumentTypeName);
347-
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithAllowedChildNode(documentTypeName, childDocumentTypeId);
348-
const contentId = await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);
349-
await umbracoApi.document.createDefaultDocumentWithParent(childContentName, childDocumentTypeId, contentId);
350-
// Create template
351-
await umbracoApi.template.createDefaultTemplate(templateName);
338+
// TODO: Remove skip when the front-end is ready. Currently the returned items count is not updated after choosing the root content.
339+
test.skip('can show returned items in query builder ', async ({umbracoApi, umbracoUi}) => {
340+
// Arrange
341+
// Create content at root with a child
342+
const documentTypeName = 'ParentDocumentType';
343+
const childDocumentTypeName = 'ChildDocumentType';
344+
const contentName = 'ContentName';
345+
const childContentName = 'ChildContentName';
346+
const childDocumentTypeId = await umbracoApi.documentType.createDefaultDocumentTypeWithAllowAsRoot(childDocumentTypeName);
347+
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithAllowedChildNode(documentTypeName, childDocumentTypeId);
348+
const contentId = await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);
349+
await umbracoApi.document.createDefaultDocumentWithParent(childContentName, childDocumentTypeId, contentId);
350+
// Create template
351+
await umbracoApi.template.createDefaultTemplate(templateName);
352352

353-
//Act
354-
await umbracoUi.template.goToTemplate(templateName);
355-
await umbracoUi.template.clickQueryBuilderButton();
356-
await umbracoUi.template.chooseRootContentInQueryBuilder('(' + contentName + ')');
353+
// Act
354+
await umbracoUi.template.goToTemplate(templateName);
355+
await umbracoUi.template.clickQueryBuilderButton();
356+
await umbracoUi.template.chooseRootContentInQueryBuilder('(' + contentName + ')');
357357

358-
// Assert
359-
await umbracoUi.template.doesReturnedItemsHaveCount(1);
360-
await umbracoUi.template.doesQueryResultHaveContentName(childContentName);
358+
// Assert
359+
await umbracoUi.template.doesReturnedItemsHaveCount(1);
360+
await umbracoUi.template.doesQueryResultHaveContentName(childContentName);
361361

362-
// Clean
363-
await umbracoApi.documentType.ensureNameNotExists(documentTypeName);
364-
});
362+
// Clean
363+
await umbracoApi.documentType.ensureNameNotExists(documentTypeName);
364+
});
365365
});

0 commit comments

Comments
 (0)