Conversation
Agent-Logs-Url: https://github.com/activeadmin-plugins/capybara_active_admin/sessions/ba3cc7b3-4229-4aa9-b458-e4fee87e4c66 Co-authored-by: senid231 <8393857+senid231@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add #have_fields_date_range and #within_table_footer helpers
Add table header, date range, status tag, action item, and scope helpers
Apr 8, 2026
senid231
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a batch of missing DSL helpers for testing Active Admin pages — covering table headers, date range filters, status tags, action item links, table scopes, and sidebar scoping.
New matchers
have_fields_date_range(label, from:, to:, exact:)— asserts afilter_date_rangeinput pair exists with expected valueshave_table_header(text, column:, sortable:, sort_direction:)— asserts athead > tr > th.colwith optional sortable/sort-direction class checkshave_action_item_link(title, exact:, href:)— asserts an action item<a>with optional href attribute matchinghave_status_tag(type, **options)— assertsspan.status_tag.<type>New finders
within_table_footer— scopes withintfoot > trfind_table_header(text, options)— returns the matching header nodefind_action_item(title, exact:)— returns the matching action item nodewithin_action_item_dropdown— scopes within.dropdown_menu_list_wrapperNew actions
click_table_scope(text)— clicks a scope tab by exact textclick_table_header(text, options)— clicks the sort link inside a headerUpdated
table_header_selectornow accepts optionaltext,column:,sortable:,sort_direction:— returns a fully qualifiedthead > tr > th.col.col-<name>[.sortable][.sorted-asc|desc]selectorwithin_sidebarreplacedwithin_paneltraversal with directancestor('.sidebar_section')lookup — more robust against markup variationshave_table_scopegains an optional positionaltitlearg and aselected:keyword, e.g.: