Skip to content

Add filterByFileSize() helper to the BO Files page object#1067

Merged
Progi1984 merged 1 commit into
PrestaShop:mainfrom
PrestaEdit:feat-files-size-filter
Jul 15, 2026
Merged

Add filterByFileSize() helper to the BO Files page object#1067
Progi1984 merged 1 commit into
PrestaShop:mainfrom
PrestaEdit:feat-files-size-filter

Conversation

@PrestaEdit

Copy link
Copy Markdown
Contributor
Questions Answers
Branch? main
Description? Adds a filterByFileSize(page, min, max) helper on the BO Files page object. It fills the new #attachment_file_size_min_field / #attachment_file_size_max_field range inputs and submits the filter form.
Type? new feature
Category? BO
BC breaks? no
Deprecations? no
Fixed issue or discussion? Companion to PrestaShop/PrestaShop#41634 (fixes #11054)
Related PRs PrestaShop/PrestaShop#41634
Sponsor company

Why

PrestaShop/PrestaShop#41634 replaces the broken single-value LIKE filter on the BO Files grid file_size column with a min/max byte range (IntegerMinMaxFilterType), the same pattern the Product grid already uses for quantity/price. The 03_catalog/06_files/03_filterSortPaginationAndBulkActions campaign 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.

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
Progi1984 merged commit 050fc90 into PrestaShop:main Jul 15, 2026
2 checks passed
@Progi1984 Progi1984 added this to the 0.0.12 milestone Jul 15, 2026
@github-project-automation github-project-automation Bot moved this from Ready for review to Merged in PR Dashboard Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

3 participants