drupalextension icon indicating copy to clipboard operation
drupalextension copied to clipboard

Fix failing D10 tests

Open jhedstrom opened this issue 2 years ago • 2 comments

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 avatar Jun 15 '23 18:06 jhedstrom

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 avatar Jun 15 '23 18:06 jhedstrom

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

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

jhedstrom avatar Jun 16 '23 16:06 jhedstrom