jhedstrom / drupalextension

An integration layer between Behat, Mink Extension, and Drupal.
GNU General Public License v2.0
209 stars 192 forks source link

Fix failing D10 tests #650

Open jhedstrom opened 1 year ago

jhedstrom commented 1 year ago

Seeing this fatal error in tests:

PHP Fatal error: Declaration of Drupal\Core\TypedData\Validation\ExecutionContext::setGroup($group) must be compatible with Symfony\Component\Validator\Context\ExecutionContextInterface::setGroup(?string $group): void

See related core issue.

jhedstrom commented 1 year ago

Updating to 10.1 where the initial error is resolved results in this failure

001 Scenario: Target links within table rows # features/d8.feature:7
      And I should see the link "Add field"  # features/d8.feature:12
        No link to 'Add field' on the page http://drupal/admin/structure/types/manage/article/fields (Exception)

So perhaps the UI has changed in 10.1, and we'll need to either adjust the test or the underlying feature context code.

jhedstrom commented 1 year ago

The language on the field overview has changed for the link:

Screen Shot 2023-06-16 at 9 54 32 AM