minkphp / MinkBrowserKitDriver

Symfony2 BrowserKit driver for Mink framework
MIT License
550 stars 80 forks source link

Cannot set numeric values in fields #172

Closed fjgarlin closed 1 year ago

fjgarlin commented 1 year ago

https://github.com/minkphp/MinkBrowserKitDriver/blob/4459adc6d1673ce229ac8d8cd203efc47913e2f0/src/BrowserKitDriver.php#L426

Even if the input types are defined as type="number" and a number is provided, the is_string validation will fail for these, making it impossible to set numeric values for numeric inputs. You can wrap them around quotes but I think this is a regression.

The code that "forces" inputs to be strings was introduced here: https://github.com/minkphp/MinkBrowserKitDriver/commit/c1c3a2fd143e78ccfe8ec4363d42edcc46e3fdfa