Resolve #3589811 "Phpunit functional robust"

https://www.drupal.org/project/block_class/issues/3589811

Made the Functional tests a bit less likely to break with changes to the Drupal core themes, with different versions, by using an xpath expression to look for the target DOM Element tag:

  • with an ID ending with
  • and the tested CSS classes.

Additional commit to fix Kernel tests compatibility with D9.
Problem introduced in previous commit 350f20d8.

Merge request reports

Loading