v16 QA Updated flaky tests (#20052)

Updated flaky tests
This commit is contained in:
Andreas Zerbst
2025-09-03 09:03:38 +02:00
committed by GitHub
parent 843344f06a
commit 1d6490b5a8
3 changed files with 8 additions and 9 deletions

View File

@@ -391,7 +391,7 @@ test('can add a variant block element with invariant RTE Tiptap in the content',
const customRTEDataTypeId = await umbracoApi.dataType.createDefaultTiptapDataType(customRTEDataTypeName);
const customElementTypeId = await umbracoApi.documentType.createDefaultElementType(customElementTypeName, groupName, customRTEDataTypeName, customRTEDataTypeId);
const customDataTypeId = await umbracoApi.dataType.createBlockGridWithPermissions(customDataTypeName, customElementTypeId, true, true);
const documentTypeId = await umbracoApi.documentType.createVariantDocumentTypeWithInvariantPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId, 'testGroup', true);
const documentTypeId = await umbracoApi.documentType.createVariantDocumentTypeWithInvariantPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId);
await umbracoApi.document.createDefaultDocumentWithCulture(contentName, documentTypeId, 'en-US');
await umbracoUi.goToBackOffice();
await umbracoUi.content.goToSection(ConstantHelper.sections.content);
@@ -416,4 +416,4 @@ test('can add a variant block element with invariant RTE Tiptap in the content',
await umbracoApi.dataType.ensureNameNotExists(customRTEDataTypeName);
await umbracoApi.documentType.ensureNameNotExists(customElementTypeName);
await umbracoApi.language.ensureNameNotExists('Danish');
});
});

View File

@@ -185,7 +185,7 @@ test('can add settings model for the block in the content', async ({umbracoApi,
const textAreaDataTypeName = 'Textarea';
const textAreaData = await umbracoApi.dataType.getByName(textAreaDataTypeName);
const settingsElementTypeId = await umbracoApi.documentType.createDefaultElementType(settingModelName, groupName, textAreaDataTypeName, textAreaData.id);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithContentAndSettingsElementType(customDataTypeName, elementTypeId, settingsElementTypeId, true);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithContentAndSettingsElementType(customDataTypeName, elementTypeId, settingsElementTypeId);
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId);
await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);
await umbracoUi.goToBackOffice();
@@ -194,6 +194,7 @@ test('can add settings model for the block in the content', async ({umbracoApi,
// Act
await umbracoUi.content.goToContentWithName(contentName);
await umbracoUi.content.clickAddBlockElementButton();
await umbracoUi.content.clickTextButtonWithName(elementTypeName);
await umbracoUi.content.enterTextstring(contentBlockInputText);
await umbracoUi.content.clickAddBlockSettingsTabButton();
await umbracoUi.content.enterTextArea(settingBlockInputText);
@@ -266,7 +267,7 @@ test('can add an invariant block element with invariant RTE Tiptap in the conten
const customElementTypeName = 'BlockListWithRTEElement';
const customRTEDataTypeId = await umbracoApi.dataType.createDefaultTiptapDataType(customRTEDataTypeName);
const customElementTypeId = await umbracoApi.documentType.createDefaultElementType(customElementTypeName, groupName, customRTEDataTypeName, customRTEDataTypeId);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithABlock(customDataTypeName, customElementTypeId, true, true);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithABlock(customDataTypeName, customElementTypeId);
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId);
await umbracoApi.document.createDefaultDocument(contentName, documentTypeId);
await umbracoUi.goToBackOffice();
@@ -300,7 +301,7 @@ test('can add a variant block element with variant RTE Tiptap in the content', a
await umbracoApi.language.createDanishLanguage();
const customRTEDataTypeId = await umbracoApi.dataType.createDefaultTiptapDataType(customRTEDataTypeName);
const customElementTypeId = await umbracoApi.documentType.createDefaultElementType(customElementTypeName, groupName, customRTEDataTypeName, customRTEDataTypeId);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithABlock(customDataTypeName, customElementTypeId, true, true);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithABlock(customDataTypeName, customElementTypeId);
const documentTypeId = await umbracoApi.documentType.createDocumentTypeWithPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId, 'testGroup', true);
await umbracoApi.document.createDefaultDocumentWithCulture(contentName, documentTypeId, 'en-US');
await umbracoUi.goToBackOffice();
@@ -336,8 +337,8 @@ test('can add a variant block element with invariant RTE Tiptap in the content',
await umbracoApi.language.createDanishLanguage();
const customRTEDataTypeId = await umbracoApi.dataType.createDefaultTiptapDataType(customRTEDataTypeName);
const customElementTypeId = await umbracoApi.documentType.createDefaultElementType(customElementTypeName, groupName, customRTEDataTypeName, customRTEDataTypeId);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithABlock(customDataTypeName, customElementTypeId, true, true);
const documentTypeId = await umbracoApi.documentType.createVariantDocumentTypeWithInvariantPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId, 'testGroup', true);
const customDataTypeId = await umbracoApi.dataType.createBlockListDataTypeWithABlock(customDataTypeName, customElementTypeId);
const documentTypeId = await umbracoApi.documentType.createVariantDocumentTypeWithInvariantPropertyEditor(documentTypeName, customDataTypeName, customDataTypeId);
await umbracoApi.document.createDefaultDocumentWithCulture(contentName, documentTypeId, 'en-US');
await umbracoUi.goToBackOffice();
await umbracoUi.content.goToSection(ConstantHelper.sections.content);

View File

@@ -175,12 +175,10 @@ test('can add a media image to a media picker in variant content, remove it and
await umbracoUi.content.clickChooseButtonAndSelectMediaWithKey(mediaFileId);
await umbracoUi.content.clickChooseModalButton();
await umbracoUi.content.clickSaveAndPublishButton();
await umbracoUi.content.clickContainerSaveAndPublishButton();
await umbracoUi.content.isSuccessStateVisibleForSaveAndPublishButton();
// Removes media item from the media picker
await umbracoUi.content.removeMediaPickerByName(mediaFileName);
await umbracoUi.content.clickSaveAndPublishButton();
await umbracoUi.content.clickContainerSaveAndPublishButton();
await umbracoUi.content.isSuccessStateVisibleForSaveAndPublishButton();
// Adds media item to a media picker again