palantirnet / palantir-behat-extension

Additional step definitions for testing Drupal sites using Behat.
1 stars 4 forks source link

Entity reference fields with the autocomplete widget are not found #9

Closed patrickfweston closed 8 years ago

patrickfweston commented 8 years ago

Entity reference fields with the autocomplete widget are not picked up as existing on the edit page. When the widget is changed to another type, it is picked up as existing.

This is when using And I should see a "Department" field and there are an unlimited number of values allowed.

I believe this may be a larger issue than with the Palantir Behat Extension, possibly with the findField function here: https://github.com/palantirnet/palantir-behat-extension/blob/1c2d2948b4abf76bbf494c5fadd31aafc5a858f4/src/Palantirnet/PalantirBehatExtension/Context/MarkupContext.php#L79

becw commented 8 years ago

I think this was happening because you were using the And I should see a "Department" field syntax, which is provided by the MinkExtension and which examines the HTML, not the Drupal fields. Is that right? Or is there still a fix needed here?

patrickfweston commented 8 years ago

Correct. I believe this is no longer needed. I had forgotten to come back and close this ticket.