forked from symfony/ux
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature symfony#1992 [LiveComponent] Add a new helper to interact wit…
…h forms in functional tests (yoye) This PR was squashed before being merged into the 2.x branch. Discussion ---------- [LiveComponent] Add a new helper to interact with forms in functional tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | License | MIT Add a new method in `TestLiveComponent` to interact with live components that contains forms. Submitted data must be passed as an array like you'll do with `KernelBrowser`. ```php $component = $this->createLiveComponent(name: Component::class); $component->submitForm(['foo' => ['bar' => 'baz']]); // The method will change this values in ['foo.bar' => 'baz'] as expected by the component. ``` Commits ------- b23eaee [LiveComponent] Add a new helper to interact with forms in functional tests
- Loading branch information
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters