Skip to content

V15 Added second level block acceptance tests #19264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: v15/dev
Choose a base branch
from

Conversation

andr317c
Copy link
Contributor

@andr317c andr317c commented May 7, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 7, 2025 09:42
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a suite of acceptance tests to validate the functionality of second-level block properties in various editors including rich text editors, block list editors, and block grid editors. Key changes include tests for nested rich text editors, block grid editors, and block list editors to ensure proper content creation, publication, and notification flow.

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.

File Description
tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/RichTextEditor/SecondLevelBlockProperties.spec.ts New tests validating nested rich text editor block behavior.
tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/BlockList/SecondLevelBlockProperties.spec.ts New tests validating nested block list editors with combinations of nested grids and lists.
tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/BlockGrid/SecondLevelBlockProperties.spec.ts New tests validating nested block grid editors with combinations of nested grids and lists.
Files not reviewed (2)
  • tests/Umbraco.Tests.AcceptanceTest/package-lock.json: Language not supported
  • tests/Umbraco.Tests.AcceptanceTest/package.json: Language not supported

Copy link
Contributor

@nhudinh0309 nhudinh0309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had some comments.
And need to fix the failing tests

const secondBlockListDataTypeName = 'SecondBlockListName';
const blockListElementTypeName = 'BlockListElementName';
const blockListElementGroupName = 'ListElementGroup';
await umbracoApi.dataType.ensureNameNotExists(blockListDataTypeName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove it as it is included in the beforeEach()

expect(documentValues.value.contentData[0].values[0].value.contentData[0].values[0].value).toContain(textStringValue);

// Clean
await umbracoApi.dataType.ensureNameNotExists(blockListDataTypeName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove it as it is included in the afterEach()

expect(secondRTEInBlock.value.markup).toContain(secondExpectedRichTextEditorOutputValue);

// Clean
await umbracoApi.dataType.ensureNameNotExists(richTextDataTypeName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove it as it is included in the afterEach()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants