-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
base: v15/dev
Are you sure you want to change the base?
Conversation
…level-block-tests
…level-block-tests # Conflicts: # tests/Umbraco.Tests.AcceptanceTest/package-lock.json # tests/Umbraco.Tests.AcceptanceTest/package.json
There was a problem hiding this 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
...ests.AcceptanceTest/tests/DefaultConfig/Content/BlockList/SecondLevelBlockProperties.spec.ts
Outdated
Show resolved
Hide resolved
...ests.AcceptanceTest/tests/DefaultConfig/Content/BlockGrid/SecondLevelBlockProperties.spec.ts
Show resolved
Hide resolved
There was a problem hiding this 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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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()
No description provided.