Repository navigation
Release 1.1.0: table footer, datepicker fix, select search - #2
Merged
Merged
Conversation
The datepicker's fade-out kept it over the Filter button after set returned, so the next click could land on the picker. Co-Authored-By: Clanker
Co-Authored-By: Clanker
There was a problem hiding this comment.
🟡 Changes recommended
The datepicker assertion matches hidden elements when Capybara.ignore_hidden_elements = false, causing DateRangeFilter#set and DatePickerField#fill to time out after the picker closes.
1 open issue
What changed in this PR
Prepares version 1.1.0 of the ActiveAdmin 3 page-object library on the 1.x line.
Changes:
- Adds table footer access by column key.
- Waits for datepickers to close after entering dates.
- Adds optional select-widget search text, with documentation and regression coverage.
| File | Description |
|---|---|
| spec/dummy/config/application.rb | Loads the table-footer plugin. |
| spec/dummy/app/admin/customers.rb | Adds optional totals cells. |
| spec/active_admin_page_objects/text_spec.rb | Updates the expected version. |
| spec/active_admin_page_objects/table_spec.rb | Tests footer cell access. |
| spec/active_admin_page_objects/rspec_matchers_spec.rb | Changes the fallback matcher example. |
| spec/active_admin_page_objects/filters_spec.rb | Tests search compatibility and datepicker closure. |
| spec/active_admin_page_objects/extension_spec.rb | Checks search keyword forwarding. |
| README.md | Documents footer, datepicker, and search behavior. |
| lib/active_admin_page_objects/version.rb | Sets version 1.1.0. |
| lib/active_admin_page_objects/table.rb | Adds footer sections and shared row behavior. |
| lib/active_admin_page_objects/selectors.rb | Adds footer and datepicker selectors. |
| lib/active_admin_page_objects/select_control.rb | Accepts optional search text. |
| lib/active_admin_page_objects/section.rb | Waits for datepicker closure. |
| lib/active_admin_page_objects/form/select_field.rb | Forwards form select search text. |
| lib/active_admin_page_objects/filters/select_filter.rb | Forwards filter select search text. |
| Gemfile | Adds the dummy app’s table-footer dependency. |
| CHANGELOG.md | Records the 1.1.0 release changes. |
Review effort: Balanced
Also close the datepicker through jQuery UI: an Escape sent after the picker closed would close an enclosing modal dialog. Co-Authored-By: Clanker
jQuery UI keeps the hidden picker node, so a suite with ignore_hidden_elements off timed out. CI also saw the picker open again right after the hide; blurring the input and waiting for the fade to finish closes that window. Co-Authored-By: Clanker
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.

Prepares 1.1.0 on the 1.x line for ActiveAdmin 3. It ships the three commits already on
1-x-stablesince 1.0.0, plus three changes found while moving an app off capybara_active_admin:Table#footerreads the<tfoot>row, such as the totals row of activeadmin_table_footer, by column key. The dummy app adds that gem as a development dependency and shows the row on?with_totals=1.DateRangeFilter#setandForm::DatePickerField#fillwait until the jQuery UI datepicker is hidden. Its fade-out kept it over the Filter button aftersetreturned.select_optionandfillon select controls takesearch:for select widgets. It reacheschoose_optiononly when given, so existing widget modules keep working.More 1.x fixes may land on this branch before the merge. The tag
v1.1.0and the release follow the merge into1-x-stable.