Open tkd-hgoertz opened 4 years ago
I could be wrong, but I think I know which project you are on 😄 I think you can use sth like:
Then the row "1" should contain "O: order@foo.de" on column "Order & Claim Email" (use data-name: "orderEmail")
Please search for data-name usage
on Filter and Form Fields there are no data properties. I've no problem to check listview row values after filtering.
when using custom labels I can't fill the corresponding filter input field. sonata generates the element properties with the entity field name. so only the label html contains the custom label.
public function iFilterWith($name, $value) { $this->iShouldSeeTheFilters(); $this->iClickFilters(); $this->iSelectFilter($name); <---- selection via label $this->iShouldSeeFilter($name); <---- selection via name property $this->iClickFilters(); $this->minkContext->fillField($name, $value); $this->iFilterTheList(); }
Environment
Version
Symfony packages
PHP version
Subject
The Sonata Admin Bundle generates form fields with the entity field name. If you use a custom label which differs from the entity field name then tests like iShoudSeeFilter or iFilterWith and so on doesnt works. You can't use the name instead of custom label for tests, because some of them searches for label others for the entity field name inside attributes from html tags.
Steps to reproduce
Expected results
Actual results