-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add case-sensitive comparison option to function WebAssert::elementContains #829
Comments
@MurzNN , the As for the mentioned Drupal issue, you can use the By the way, the Drupal issue uses the |
Yeah, sorry, I've mixed up So, for But seems we have no similar function |
What do you think about adding third non-required argument like this to enable case-sensitive comparison, like this https://github.com/minkphp/Mink/pull/830/files ? If it's ok, I can expand it to all other |
Let's wait for @stof opinion on this. Looking back at the source of all this case-sensitivity issue/PR (checking |
@stof, can you please give a short message about your opinion on this? |
Now function
WebAssert::responseContains
does comparison in case-insensitive mode because of usagestripos
php function:Mink/src/WebAssert.php
Lines 319 to 325 in 34c0ae0
And I see no ways to make case-sensitive comparison. So will be good to add option to enable case-sensitive comparison mode via some option. Or it is already exists, please point me out to the solution.
And will be good to explain that this function does case-sensitive comparison by default, because it is a surprise for many developers. For example, this nuance brings that issue in Drupal module: https://www.drupal.org/project/layout_builder_restrictions/issues/3278651
The text was updated successfully, but these errors were encountered: