Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: Add assertTableFilterHidden and assertTableFilterVisible test methods #15310

Conversation

chester-sykes
Copy link
Contributor

@chester-sykes chester-sykes commented Jan 10, 2025

Description

This PR allows you to test if a filter is visiable, like you can do with assertTableColumnVisible and assertTableColumnHidden.

I've had to refactor the getFilters and getFilter functions to allow you to pass in a $withHidden variable to just return all the filters without the scope of isVisible().

Visual changes

No visual changes.

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@chester-sykes chester-sykes changed the title New: add assertTableFilterHidden and assertTableFilterVisible test methods New: Add assertTableFilterHidden and assertTableFilterVisible test methods Jan 10, 2025
packages/tables/src/Testing/TestsFilters.php Outdated Show resolved Hide resolved
packages/tables/src/Testing/TestsFilters.php Outdated Show resolved Hide resolved
packages/tables/src/Testing/TestsFilters.php Outdated Show resolved Hide resolved
packages/tables/src/Testing/TestsFilters.php Outdated Show resolved Hide resolved
packages/tables/.stubs.php Outdated Show resolved Hide resolved
tests/src/Tables/Filters/FilterTest.php Outdated Show resolved Hide resolved
tests/src/Tables/Filters/FilterTest.php Outdated Show resolved Hide resolved
@danharrin danharrin added the enhancement New feature or request label Jan 10, 2025
@danharrin danharrin added this to the v3 milestone Jan 10, 2025
@danharrin danharrin merged commit 4585d62 into filamentphp:3.x Jan 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants