Skip to content

#5615 Fix field selector in kit duplicate items spec - #5627

Merged
dorner merged 1 commit into
rubyforgood:mainfrom
rodrigovirgilio:fix/kit-duplicate-items-spec-selector
Jul 10, 2026
Merged

dorner merged 1 commit into
rubyforgood:mainfrom
rodrigovirgilio:fix/kit-duplicate-items-spec-selector

Conversation

@rodrigovirgilio

Copy link
Copy Markdown
Contributor

Resolves #5615

Description

The "detects duplicate items" system test used the "item_..." field prefix, but the kit form builds nested fields via fields_for @kit.kit_item, where kit_item is a KitItem (STI of Item), so Rails generates ids prefixed "kit_item_...". This mismatch made Capybara unable to find the select/input, failing CI.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • exhaustively in the local environment and in the pipeline

Screenshots

@dorner dorner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Better than waiting for mine to be merged! 😁

@dorner
dorner merged commit aecd7fc into rubyforgood:main Jul 10, 2026
11 checks passed
@dorner dorner mentioned this pull request Jul 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@rodrigovirgilio: Your PR #5615 Fix field selector in kit duplicate items spec is part of today's Human Essentials production release: 2026.07.19.
Thank you very much for your contribution!

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.

[BUG]: kit_system_spec failing in CI

2 participants