Skip to content
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

Fix CI: .validationMessage assertion #1194

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

seanpdoyle
Copy link
Contributor

Resolve a CI failure related to a hard-coded English validation message expectation failing due to an internationalized actual validation message value.

Resolve a [CI failure][] related to a hard-coded English validation
message expectation failing due to an internationalized actual
validation message value.

[CI failure]: https://github.com/basecamp/trix/actions/runs/11317691021/job/31471435810#step:5:75
@@ -228,7 +228,7 @@ class ElementInternalsDelegate {
const { required, value } = this.element
const valueMissing = required && !value
const customError = !!customValidationMessage
const input = Object.assign(document.createElement("input"), { required })
const input = makeElement("input", { required })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jorgemanrubia I'm not sure how to make sure it passes CI on main, but I do think this is worth merging on its own merits, since it re-uses an existing helper instead of an ad hoc combination of Object.assign and Document.createElement.

Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

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

Thanks @seanpdoyle 🙏 !

@jorgemanrubia jorgemanrubia merged commit d3cb49c into basecamp:main Oct 15, 2024
1 check passed
@seanpdoyle seanpdoyle deleted the fix-ci-validationMessage branch October 15, 2024 18:51
@seanpdoyle
Copy link
Contributor Author

CI on main passed for this change: https://github.com/basecamp/trix/actions/runs/11352413308/job/31575113364

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