Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[DomCrawler] impossible to test a value out of the options in ChoiceFormField#47642
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:7.4
Are you sure you want to change the base?
[DomCrawler] impossible to test a value out of the options in ChoiceFormField#47642
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedSep 21, 2022
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
carsonbot commentedOct 29, 2022
Hey! I think@localheinz has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
Does nobody test autocomplete fields? 😅 |
If the option doesn't exist is because it's added dynamically via Javascript, so you'll need to simulate that behavior by using I don't think we should remove the validation check. |
Uh oh!
There was an error while loading.Please reload this page.
I couldn't test a value outside of the ChoiceForm field option nodes.
For example, even if my combobox does not offer the empty field, I want to test my NotBlank validator.
in Symfony\Component\BrowserKit\AbstractBrowser::submit ($client->submit())
InvalidArgumentException: Input "Item[vat]" cannot take "" as a value (possible values: "0", "700", "1900").
maybe there is another solution ? (like add arguments bool $throw = true to setValues or another ...)
Thanks