Skip to content

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