Skip to content

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

Open
rodrigovirgilio wants to merge 1 commit into
rubyforgood:mainfrom
rodrigovirgilio:fix/kit-duplicate-items-spec-selector
Open

#5615 Fix field selector in kit duplicate items spec#5627
rodrigovirgilio wants to merge 1 commit into
rubyforgood:mainfrom
rodrigovirgilio:fix/kit-duplicate-items-spec-selector

Conversation

@rodrigovirgilio

Copy link
Copy Markdown

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

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

1 participant