Skip to content

Conversation

@seanpdoyle
Copy link
Collaborator

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
const valueMissing = required && !value
const customError = !!customValidationMessage
const input = Object.assign(document.createElement("input"), { required })
const input = makeElement("input", { required })
Copy link
Collaborator 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
Collaborator 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