drupalextension
drupalextension copied to clipboard
Fix failing D10 tests
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.
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.
The language on the field overview has changed for the link: