Skip to content

[TASK] Test the validation parsing of ve-editable-text in a browser - #155

Merged
Kanti merged 1 commit into
mainfrom
test/ve-editable-text-validation
Nov 9, 2026
Merged

Kanti merged 1 commit into
mainfrom
test/ve-editable-text-validation

Conversation

@Kanti

@Kanti Kanti commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

ve-editable-text declares validation as an Object property, so Lit parses the attribute in attributeChangedCallback. Since 1.7.3, connectedCallback, which runs afterwards, assigned the raw attribute again and replaced the parsed object with a string. This silently disabled the required, min, max and eval validation of f:render.text.

The new test renders the component in Chromium with Playwright and checks upgraded elements, elements inserted after the definition and elements created with createElement. The JavaScript test job installs Chromium for it.

@Kanti
Kanti added this pull request to stack #157 November 9, 2026 12:40
ve-editable-text declares validation as an Object property, so Lit
parses the attribute in attributeChangedCallback. Since 1.7.3,
connectedCallback, which runs afterwards, assigned the raw attribute
again and replaced the parsed object with a string. This silently
disabled the required, min, max and eval validation of f:render.text.

The new test renders the component in Chromium with Playwright and
checks upgraded elements, elements inserted after the definition and
elements created with createElement. The JavaScript test job installs
Chromium for it.
@Kanti
Kanti force-pushed the test/ve-editable-text-validation branch from fd09035 to f905f39 Compare November 9, 2026 12:49
@Kanti
Kanti marked this pull request as ready for review November 9, 2026 12:56
@Kanti
Kanti merged commit ec27cc7 into main Nov 9, 2026
33 checks passed
@Kanti
Kanti deleted the test/ve-editable-text-validation branch November 9, 2026 16:42
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.

1 participant