Add filterByFileSize() helper to the BO Files page object#1067
Merged
Conversation
The BO Files grid Size filter is switched from a single LIKE input to a min/max byte range in PrestaShop/PrestaShop#41634. The UI test for that PR (03_filterSortPaginationAndBulkActions) needs a helper to fill both #attachment_file_size_min_field / #attachment_file_size_max_field and submit the filter form. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Progi1984
approved these changes
Jul 15, 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.
filterByFileSize(page, min, max)helper on the BO Files page object. It fills the new#attachment_file_size_min_field/#attachment_file_size_max_fieldrange inputs and submits the filter form.Why
PrestaShop/PrestaShop#41634 replaces the broken single-value
LIKEfilter on the BO Files gridfile_sizecolumn with a min/max byte range (IntegerMinMaxFilterType), the same pattern the Product grid already uses for quantity/price. The03_catalog/06_files/03_filterSortPaginationAndBulkActionscampaign is updated there to drive the new range and needs a page-object helper for the two new inputs.Once this is released and bumped in the core repo, the core PR's UI tests will go green.