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

Allow selectFieldOptions to deselect all values #142

Closed
wants to merge 1 commit into from

Conversation

notFloran
Copy link
Contributor

I have a select multiple and in one of my test I need to unselect all values, I try ->selectFieldOption('Réparateur(s)', []) without result.

The method selectFieldOptions use a foreach and theselectFieldOption of Mink and so do nothing when I pass an empty array.

After some digging, I found that Mink use the following syntax to do that : ->page()->fillField($selector, []); (see minkphp/Mink#374 (comment)).

@kbond
Copy link
Member

kbond commented Feb 7, 2024

Nice addition @notFloran! I made some tweaks to get the Panther tests passing and merged your commit in #143 (I didn't have permission to update your fork's branch).

@kbond kbond closed this Feb 7, 2024
@notFloran
Copy link
Contributor Author

Nice addition @notFloran! I made some tweaks to get the Panther tests passing and merged your commit in #143 (I didn't have permission to update your fork's branch).

Oh thanks ! I was unable to correct the Panther part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants