Commit 846a2f3
committed
minor #7579 Add regression test for CollectionField::renderExpanded() on nested CRUD forms (lacatoire)
This PR was merged into the 5.x branch.
Discussion
----------
Add regression test for CollectionField::renderExpanded() on nested CRUD forms
Following issue #7529, I wasn't able to reproduce the bug on current `5.x`: `renderExpanded(true)` does propagate to the accordion (the `show` class lands on `.accordion-collapse` and `collapsed` is stripped from `.accordion-button`). This PR adds a functional test pinning that behaviour so we catch any future regression.
Happy to extend the coverage or dig further if you can share a reproducer that still fails, I may have missed a specific setup.
Fixes #7529
Commits
-------
aec3d5a add regression test covering CollectionField renderExpanded on nested CRUD forms2 files changed
Lines changed: 34 additions & 0 deletions
File tree
- tests/Functional
- Apps/DefaultApp/src/Controller/NestedCrudForm
- Fields/Collection
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
89 | 122 | | |
90 | 123 | | |
91 | 124 | | |
| |||
0 commit comments